View Full Version : a single face
Dogcow
10-23-2002, 09:12 AM
I know how to create cube's and other complex objects out of vertices, but how can I just make a solid face? I'm wanting to create a floor to build my 3d world on top of...
TIA,
-Dogcow "moof!"
Visit The Underground (http://theunderground.eon.com.au)
coredump
10-23-2002, 10:35 AM
1. 2 triangles using GL_TRIANGLES | GL_TRIANGLE_FAN | GL_TRIANGLE_STRIP
2. GL_QUAD
3. GL_POLYGON
these are a few options you can use
b
adityagaddam
10-23-2002, 11:14 AM
yeah... like he said.. I dont know why you are having a problem when you are already creating each face in the cube.. if you are using the glut thing then here how:
glRotatef(angleofFloor,1.0,0.0,0.0);
glBegin(GL_POLYGON);
glVertex3f(x,y,z);
glVertex3f(x,y-height,z);
glVertex3f(x+width,y-height,z);
glVertex3f(x+width,y,z);
glEnd();
Dogcow
10-23-2002, 11:58 AM
yeah...duh.
On my way to class I realized how easy this is... "d'oh!"
Thanks,
-Dogcow "moof!"
Visit The Underground (http://theunderground.eon.com.au)
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.