Wednesday, June 28, 2006

Rotation and Point Mode

Rotation is finally done. This enables a user to rotate an object about the x, y or z axis and update the point locations in real-time. I needed a way to remember the locations so they could be saved to a text file when editing was complete.

The renormalization process is a little flaky. The smooth normals should only be assigned 1 per vertex and they're showing up in pairs, which cuts down on the overall smoothness of the model. It's hardly noticable, but it's a problem that should be addressed.

Future optimizations will be to place the current rotation angles in the object structure itself, and allowing OpenGL rotate the object on screen with its own rotation functions. Only when the object(s) is/are saved will the hard-coded point manipulations take place.

Also, point mode was added, which permits the addition of "stray points". These stray points will be used by themselves or in conjunction with current vertices to generate new faces.

Resume

The Home Stretch >>>

0 Comments:

Post a Comment

<< Home