Jump to content

Create a illumination light on a tree in procedural?


Haya8810

Recommended Posts

Hi guys, I'm currently finding a way to create an illumination light with cable on a tree in procedural. My personal goal is to make like the pictures that I attached here.

Does anyone have a great idea?  Especially, I would like to figure out how to create the spiral curve along with a tree shape. 

 

Thanks!

10M-100LEDs-String-Lights-LED-Christmas-Garland-Decor-for-Street-Trees-Garden-Park-Party-Wedding-Outdoor.jpg_q50.jpg

how-to-wrap-trees-with-outdoor-lights-2736361-10-c3fe67cb7b9b44dd9765abd7ccc619ca.jpg

PR50CYWB_Warm-White-Christmas-Tree-Lights-Outdoor-Close_71bd90ec-2359-4271-9341-ef032e7f349b_2000x2000.jpg

Link to comment
Share on other sites

I would look into making a helix out of a curve. If your tree model has a skeleton or curve as a base I would use them otherwise you will have to make the curves manually. I think there are also some forum posts here on making a skeleton out of 3d geometry.

Link to comment
Share on other sites

Hey Haya,

you could shift (and sine wave) the surface distance based on the surface orientation:

vector perp = normalize(cross(v@gradient, v@N));
perp *= dihedral(v@gradient, {0,1,0});
float angle = atan(perp.z, perp.x) / 2.0 + M_PI_2;
f@wave = sin((f@dist + angle * shift) * freq);

image.png.8772b19e743c3b38392f47bb15afffe2.pngimage.png.bbdb09355a0caf084f4db9fc3281e3af.png

tree_lights_simple.hiplc

Edited by konstantin magnus
  • Like 4
Link to comment
Share on other sites

  • 4 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...