mohit04
02-07-2003, 08:29 PM
i wanna show the initial viewing situation like the wca and the u v n axes how do i do that?
GameMaker
02-08-2003, 08:24 AM
This will draw the world axis at 0,0,0
// draw axis
glDisable(GL_LIGHTING);
glLineWidth(5.0f);
glBegin(GL_LINES);
glColor3f(1.0f, 0.0f, 0.0f);
glVertex3f(0.0f, 0.0f, 0.0);
glVertex3f(1.0f, 0.0f, 0.0);
glColor3f(0.0f, 1.0f, 0.0f);
glVertex3f(0.0f, 0.0f, 0.0);
glVertex3f(0.0f, 1.0f, 0.0);
glColor3f(0.0f, 0.0f, 1.0f);
glVertex3f(0.0f, 0.0f, 0.0);
glVertex3f(0.0f, 0.0f, -1.0);
glEnd();
glEnable(GL_LIGHTING);
mohit04
02-08-2003, 08:41 AM
i wanna draw he whole scene ....and i want the wca to be aligned with window with origin being at left bottom corner
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.