PDA

View Full Version : Help me to find the right angle



rogerdv
08-08-2003, 01:38 PM
Im trying to simulate an isometric tile engine with open gl. I can correctly rotate the tiles and the viewpoint up and down, but I dont know how to fix the angle of the tile plane, see the image here: http://www.granhotelstgo.cu/x/isometric.png
At beginning, i translate the image using this code:
glTranslatef(xd, yd, zd);
glRotatef(yrot,0.0f,1.0f,0.0f);
glRotatef(xrot,1.0f,0.0f,0.0f);

yrot starting value: -40.0
xrot starting value: -80.0
xd= -10.0, yd= -5.0,zd= -18.0

Any suggestion?

gator
08-09-2003, 04:06 AM
If you're doing it in 3D, you probably need a projection matrix that gives you
an isometric view. Or if you're doing it in 2D, then you need to use an othographic
projection and draw them isometrically.

rogerdv
08-11-2003, 04:13 AM
Originally posted by gator:
If you're doing it in 3D, you probably need a projection matrix that gives you
an isometric view. Or if you're doing it in 2D, then you need to use an othographic
projection and draw them isometrically.


Well, I dont really know how Im doing it http://www.opengl.org/discussion_boards/ubb/frown.gif