Jump to content

  • Log In with Google      Sign In   
  • Create Account


simple 3D game program


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 KalyanReddy   Members   -  Reputation: 111

Like
0Likes
Like

Posted 18 February 2013 - 08:48 AM

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.

 


@Kalyan@


Sponsor:

#2 rip-off   Moderators   -  Reputation: 7651

Like
0Likes
Like

Posted 18 February 2013 - 10:39 AM

What have you got working so far?



#3 KalyanReddy   Members   -  Reputation: 111

Like
0Likes
Like

Posted 18 February 2013 - 10:44 AM

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, 18 February 2013 - 10:45 AM.

@Kalyan@


#4 ifthen   Members   -  Reputation: 820

Like
0Likes
Like

Posted 18 February 2013 - 04:48 PM

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.



#5 powly k   Members   -  Reputation: 630

Like
0Likes
Like

Posted 18 February 2013 - 06:38 PM

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.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS