PDA

View Full Version : Rotate ortho decline in x



opessoa
11-26-2014, 11:05 AM
Hi, I have an 2D GIS application thats have a lot of 3d points (lines/polylines/polygons) (ZERO on Z).

My ortho config is this:



glMatrixMode(GL_PROJECTION);

glLoadIdentity();

glOrtho(m_ptWorldX1, m_ptWorldX2, m_ptWorldY1, m_ptWorldY2, -1, 1);

glTranslated(-m_movedX, m_movedY, 0.0);

// Set the model matrix as the current matrix
glMatrixMode(GL_MODELVIEW);

glLoadIdentity();


So I need to decline on my Y2 to do a fake 3D vision?

How to do it?

| | to / \ (on image, from A to C)

http://allefant.com/pics/misc/rotated_coordinates.png

I dont know if I went clear...