Solved

# Draw walls and a pyramid roof

Posted on 2007-04-07
677 Views
hi guys i want to design a room with walls and a ceiling with a pyramid roof  on it.. i am new to openGL. can some one help me on this...
0
Question by:kamalgopi
• 2

LVL 14

Accepted Solution

trigger-happy earned 500 total points
ID: 18871680
If you're completely new to OpenGL then I would suggest reading up on some tutorials on it. The best place to start is: http://nehe.gamedev.net/ Once you get the hang of it, you can practically create anything else using simple primitives. Common rule is that almost anything can be made with triangles alone.

For creating the room with walls and a ceiling, the best thing to do would be to create 4 quads for the walls, 2 quads for the floor and ceiling and then use 4 triangles that are leaning a bit to create the roof. It's that simple but you'll have to do some math to accomplish it.

--trigger-happy
0

LVL 11

Author Comment

ID: 18929345
Hi,

Sorry for the late reply. I was actually going through the nehe tutorials right now in Tutorial 8. I just want to check if there a software that can help me to detemine what is the vertices , angle and those stuff?

Thanks
Kamal
0

LVL 14

Expert Comment

ID: 18950609
I'm not that experienced in opengl and I haven't gotten that deep into it yet so I'm not sure if there are any for that kind of stuff.

--trigger-happy
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

### Suggested Solutions

This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.