Solved

Draw walls and a pyramid roof

Posted on 2007-04-07
3
678 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
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

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

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create string splitting user defined function in C++ 23 317
Prototype for MessageDlg in Embacadero XE 2 2 42
How to copy an image file into clipboard C/C++? 1 197
C++ question 3 70
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

840 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