Advertisement

FPS, model animation, and camera paths

Started by October 19, 2000 08:05 PM
2 comments, last by sinistrx 24 years, 1 month ago
Need some help guys. Following Nehe''s timer code how can I use that to make an fps counter in my programs (and an accurate one too, I noticed Asteroids 3d shows 200-300fps on my comp which I KNOW ain''t right because there''s an occasional blip of slowdown due to windows timeslicing). Also, how do I go about manipulating a camera in my scene? Whenever I use gluLookAt in my programs everything magically disappears (and I''m following the parameters given in the msdn help guide for vc6) Do I basically have to translate/rotate the whole scene by a given set of coordinates or I can just manipulate the parameters of glulookat? Finally, if I have a model I''ve made into a cpp file via 3d Exploration is there a way to animate it? I imagine I''ll have to make about 100 copies of the verticies all in their new positions and save them as one big ass array but I don''t know. Maybe someone can shed some light on the subject or direct me to some code that''ll help.
*200-300 depends on how larger window and what card u have but it ceratinly is believable (bollux to blips i say)
*gotta refresh to matrix every loop me frienbd
LoadIdentity()
gluLookAt(..)
glPushMatrix();
// tranform + draw someit
glPopMatrix();

*i suppose u could animate it (i aint looked at it but i can imagine it being a very big file) youre better off using a binary format eg 3ds , md2 etc


http://members.xoom.com/myBollux
Advertisement
>Finally, if I have a model I''ve made into a cpp file via 3d >Exploration is there a way to animate it? I imagine I''ll have >to make about 100 copies of the verticies all in their new >positions and save them as one big ass array but I don''t know.

easiest way is probably to do the anim in a modeling package and convert the whole lot (at least I THINK 3dexplorer will convert anim frames...)

If not try using milkshape3d (cool shareware modeling prog). It does groovy skeletal animation and has its own ascii file format. Theres a sdk type thing for the fileformat with example code etc

can''t remember the exact url but theres a link from somewhere at www.planethalflife.com
[size="1"]
Cool I think I''ve got milkshape still lying around my hd somewhere.

This topic is closed to new replies.

Advertisement