Creating spiral sphere

   1959   2   4
User Avatar
Member
350 posts
Joined: June 2016
Offline
Trying to model a ‘spiral sphere’ similar to the outer spiral in this image

https://i.stack.imgur.com/2fRhQ.png [i.stack.imgur.com]
And then animate its growth from the bottom to top.

Would it be best to accomplish this entirely thru code/Vex or is there some combination of SOPs that will create the same end result?
User Avatar
Member
89 posts
Joined: Jan. 2015
Offline
Super lame solution using creep sop

Attachments:
SpriralSphereCreep.hip (73.0 KB)
SpiralSphereCreep.gif (620.5 KB)
SprialSphereCreep.jpg (269.0 KB)

Gameloft
User Avatar
Member
670 posts
Joined: Sept. 2013
Offline
You can turn a vertical line with lots of subdivisions into a spherical spiral with sample_sphere_uniform():
float turns = chf('turns');

float u = @ptnum / float(@numpt - 1);
float v = u * turns % 1.0;
vector uvw = set(v, u, 1.0);

@P = sample_sphere_uniform(uvw);
@P = @P.xzy;

For making it grow, just delete less and less points over time:
float remove = @Time * chf('speed');
if(1 - u > remove) removepoint(0, @ptnum);

Attachments:
spherical_spiral.hiplc (69.9 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
  • Quick Links