Skip to main content
gamedev.net
🔒 Locked

simple 3D game program

Started by vardhireddy 3 replies 1.7k views
Original Post
vardhireddy
vardhireddy

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@
rip-off
rip-off

What have you got working so far?

vardhireddy
vardhireddy

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..

@Kalyan@
ifthen
ifthen

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.

powly k
powly k

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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.