# finding cube coordinates

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

## Recommended Posts

I would like to draw a cube. The coordinates of the vertices of the floor is : glVertex3f (-5.0f, 0.0f, 5.0f); glVertex3f ( 5.0f, 0.0f, 5.0f); glVertex3f ( 5.0f, 0.0f, -5.0f); glVertex3f (-5.0f, 0.0f, -5.0f); How can I find out the coordinates of the other faces?

##### Share on other sites
You gave us the coordinates of a square (drawed with quads, which isn't recommanded btw you should use 2 triangles). Now you want to make a cube out of it? Expend the Y (second) parameter ranging from -5 to 5 keeping the same logic. You will need 6 times these 4 vertex call for all 6 faces.

##### Share on other sites
i recommend you to draw the xyz axis and the cube on a paper. it makes it very easy to find the other coordinates

1. 1
Rutin
24
2. 2
3. 3
JoeJ
20
4. 4
5. 5

• 9
• 46
• 41
• 23
• 13
• ### Forum Statistics

• Total Topics
631746
• Total Posts
3002021
×

## Important Information

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!