Parametric Sphere

Software: Away3D 3.x

Avatar
Darcey, Moderator
Posted: 26 April 2012 03:53 AM   Total Posts: 209

Anyone know how or got the code to create a parametric sphere in Away3D 3.6 out of planes?

I need to create a paramateric sphere out of planes which then needs to be overlaid by a paramateric sphere primitive which will have the WireFrameMaterial applied to it for a grid system.

Example:
http://mathworld.wolfram.com/Sphere.html

Thanks

Darcey

   

Avatar
Darcey, Moderator
Posted: 26 April 2012 04:21 AM   Total Posts: 209   [ # 1 ]

I’ve been attempting looping through a sphere’s vertices creating a custom primitive (hybrid of a plane) with no joy so far. The sphere primitive seems to have it’s 1st and 2nd vertices in the wrong order for each row on the horizontal. eg Rough representation of vertices index position via looping through each vertex on length:

              3
          2   1   4   5
        7     6   8   9
          11 10 12 13
          15 14 16 17

etc


Is there an equation that can be applied to a sphere primitive to create a plane out of the 2 triangles/faces that up a square section on the sphere? And how is accessing the planes vertices for manual positioning of a,b,c,d done these in 3.6?

I am attempting to get an interactive grid system.

I’m a bit rusty.

Thanks

Darcey

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X