Solved

Draw walls and a pyramid roof

Posted on 2007-04-07
3
675 Views
Last Modified: 2008-02-01
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
Comment
Question by:kamalgopi
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
trigger-happy earned 500 total points
Comment Utility
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

by:kamalgopi
Comment Utility
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

by:trigger-happy
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Article by: SunnyDark
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…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now