Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Draw walls and a pyramid roof

Posted on 2007-04-07
3
Medium Priority
?
682 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 14

Accepted Solution

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

610 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