Jump to content
Haya8810

Create a illumination light on a tree in procedural?

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

Share this post


Link to post
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.

Share this post


Link to post
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 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×