Tuesday, June 20, 2006

Ellipsoids Work


Ellipsoids were finished up early this morning. The shape of the object is governed by 3 floating point values which denote its radius along the x, y and z axes. If the values are the same, it results in a sphere. If two are the same it forms a mashed/elongated sphere (spheroid), and if all three are different it makes an ellipsoid which is egg-shaped.

Note that one of the objects is yellow--the reason for this is because a function was implemented to select an object via right-clicking and dragging it around to rotate it about the x and y axes. Something similar will be in the final release, since an "object" will be made of many sub-objects.

Currently, I'm working in conjunction with a friend to determine where the points of a primitive object would be after all rotations are done. This way the object can be drawn in the correct orientation without wasting valuable rendering time rotating all sub-objects. A complete object will be treated just as a pile of polygons so the rendering engine can run through the list seamlessly.

Resume

Normals >>>

0 Comments:

Post a Comment

<< Home