Sign in to follow this  

simple 3D game program

This topic is 1793 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,

Recently I started learning OpenGL in C++. Now I am familiar with OpenGL, but I am confused with updating values of object. 

 

I started working on a free fall ball and collision with ground.

 

My question is where do I have to update my object values?

 

Simple program must be very helpful.

 

Thanks in advance.

 

Share this post


Link to post
Share on other sites

What have you got working so far?

I am fallowing openGL superbible 5th edition, based on the examples in that book, I can able to move object with keyboard but I am applying dynamics to objects. Here I am missing where to update values of object.

 

Hope this makes clear of query..

Edited by KalyanReddy

Share this post


Link to post
Share on other sites

Well, could you paste code which you have so far? We are not wizards and we have not seen your code, so we do not know what is wrong with it.

Share this post


Link to post
Share on other sites

The same thing that moves the ball when you press a button should move it based on gravity and collisions. Probably a glUniform with the object location. Make your shader active, update the values, render.

Share this post


Link to post
Share on other sites
Sign in to follow this