# Right perspective view for a RTS

This topic is 4482 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi all! Im trying to satisfy my willing of writing a little RTS in my free time. Ive thought about a lot of things, but I can't get how to set camera, rotation... to have the right view. I want to obtain the trapezium, so that perspective can be seen but not the inclintaion of the plane, i hope u get what i mean :) Any answer will be thanked :P

##### Share on other sites
I will try to better explain, i'd like to know Where to position the camera, Where to set teh viewVector of the camera to get an "age of mythology" type of view rotating everything back a bit before drawing to 'watch' a trapezium.
I know I can't well explain, I'm noob :)

##### Share on other sites
Obviously, isometric view (30 degrees between x and z, -30 degrees between this plane and the y axis) is a good start.
You will then put the camera at a given height above the battefield.

##### Share on other sites
Quote:
 Original post by lucemObviously, isometric view (30 degrees between x and z, -30 degrees between this plane and the y axis) is a good start. You will then put the camera at a given height above the battefield.

So(OpenGL)
------------------------------------>
//before drawing anything
glRotatef(30, 1, 0, 1);
glRotatef(-30, 0, 1, 0);
glLookAt(0,3.5f,6,
0,1.5f,0,
0,1,0); //handled with my own camera class
/* Draw the hell you want */
<-------------------------------------

I dont' well know how to use angles and camera positioning, directioning, but.. Am I on the right track?

[Edited by - ForestMaster on March 17, 2006 2:43:12 PM]

1. 1
2. 2
Rutin
18
3. 3
4. 4
5. 5
• ### Forum Statistics

• Total Topics
631428
• Total Posts
3000027
×