View Full Version : More complicated shape
07-26-2010, 07:23 PM
I'm trying to create a somewhat more complicated shape in OpenGL, but I'm not really sure how to go about doing it. Basically, it's a triangular prism with a circular hole down the center. I've looked through all the built-in glut shapes, but I'm not sure what to use. Any advice would be greatly appreciated!
07-28-2010, 06:03 AM
glut don't manage all possible shapes, is also very outdated.
In this case you want to create a boolean.
If you want to proceed with the procedural approach you must compute the vertexes and the indexes (normal and uvmap) by yourself using your maths skill.
Otherwise download blender, model you object that you like and save it as .obj, then parse the obj file and load the model.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.