PDA

View Full Version : moving checkerboard surface



fleurmtl
08-17-2009, 08:12 AM
Hello everyone,

I am programmer but I don't have that much experience in OpenGL. I am also new to forum.

My main goal is to create a "ground" surface with a checkerboard pattern. The camera is aimed ahead and it appears as if you are walking on the surface.

I know how to generate and bind and wrap the checkerboard texture (using mipmaps). I am wondering what is the best way to simulate the walking over effect ?

any help, demos or suggestions are greatly appreciated :)

fleurmtl
08-18-2009, 09:28 AM
anyone?

ZbuffeR
08-18-2009, 01:06 PM
What do you mean "walking over" ?
A simple glTranslatef is enough ?
Read this page to learn more about transformations :
http://www.glprogramming.com/red/chapter03.html

Heiko
08-18-2009, 03:00 PM
For very simple `walking' or moving you can indeed use glTranslatef. If you want to make a turn, use glRotatef(degrees, x, y, z) with (x,y,z) being the axis arround which you'll want to turn (which is probably the vertical axis: 0, 1, 0).