Haya8810 Posted September 2, 2021 Share Posted September 2, 2021 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! Quote Link to comment Share on other sites More sharing options...
Sean-R Posted September 2, 2021 Share Posted September 2, 2021 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. Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted September 2, 2021 Share Posted September 2, 2021 (edited) 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); tree_lights_simple.hiplc Edited September 2, 2021 by konstantin magnus 4 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.