rendering

in a win32 opengl app, what is the default camera position? im rendering a bunch of stuff at the origin, but can never see it even if i translate all over the place.
thanks
Dave

If you don’t alter the projection matrix stack to include a camera position (ala gluLookAt or some such), objects drawn will be at the origin when you load the identity matrix after switching to the modelview matrix.

Try switching to the modelview matrix, loading identity, translating -100 along the z axis and drawing an object. It should appear 100 increments “into” the screen.

Glossifah

Also make sure the 3D coord values are correct in case you import files.
If these value were far from the origin of 3D exporter app (3ds max, milkshape, etc.) the same will happen in your opengl app.

Originally posted by Glossifah:
[b]If you don’t alter the projection matrix stack to include a camera position (ala gluLookAt or some such), objects drawn will be at the origin when you load the identity matrix after switching to the modelview matrix.

Glossifah[/b]

Make sure you put your camera on the ModelView stack, not the Projection stack.