Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


OpenGL Demo

This topic is 5476 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I''m wondering, how to make opengl demo self moving and loading? What should be framework to make a demo self moving without any user interaction? How can i load and play effect one after another? is there any easy way? please help me if you can

Share this post

Link to post
Share on other sites
for simple stuff, GLUT takes care or the boring stuff, like windows and inputs. For a slideshow, write your own simple state machine and cycle though the effects.

Initialise the glut sub-system (glutInit()), setup a timer callback for updating the state machine and effects, the display function callback, setup your camera (gluLookAt()) in the display function, render the current effect, and there you go.

Have a look at my simple rigid body demo, or the carmack''s stencil shadow demo for using glut. It''s dead simple.

you can download the toolkit from pretty much anywhere on the web. Google for it, it''s only a couple of files.

- Oli.


rigid body demo

Simple Z-fail Stencil shadows demo

Sphere/cube/Triangle Collision And Physics demo

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!