Click to See Complete Forum and Search --> : How to create a 3d room outline by MFC Appwizard


dathatreya
April 2nd, 2008, 08:21 AM
Hello all,

I have some knowledge on MFC(VC++ 6.0) and I want to create a 3d room outline in MFC Appwizard(vc++ 6.0),can any one tell me steps to follow.
And where I can found these API' for 3d image creation.

Lindley
April 2nd, 2008, 08:31 AM
You looking for OpenGL, Direct3D, or something else?

Also, how complex a room? Because the simplest "room" is just six planes.....


glBegin(GL_QUADS);
glVertex3d(0,0,0);
glVertex3d(0,1,0);
glVertex3d(1,1,0);
glVertex3d(1,0,0);
glEnd();

glBegin(GL_QUADS);
glVertex3d(0,0,1);
glVertex3d(0,1,1);
glVertex3d(1,1,1);
glVertex3d(1,0,1);
glEnd();

glBegin(GL_QUADS);
glVertex3d(0,0,0);
glVertex3d(0,1,0);
glVertex3d(0,1,1);
glVertex3d(0,0,1);
glEnd();

glBegin(GL_QUADS);
glVertex3d(1,0,0);
glVertex3d(1,1,0);
glVertex3d(1,1,1);
glVertex3d(1,0,1);
glEnd();

glBegin(GL_QUADS);
glVertex3d(0,0,0);
glVertex3d(0,0,1);
glVertex3d(1,0,1);
glVertex3d(1,0,0);
glEnd();

glBegin(GL_QUADS);
glVertex3d(0,1,0);
glVertex3d(0,1,1);
glVertex3d(1,1,1);
glVertex3d(1,1,0);
glEnd();