Advertisement

NeHe make tutorials on Polyhedras with OpenGL

Started by May 15, 2003 02:50 PM
8 comments, last by sakky 21 years, 9 months ago
Hey NeHe, I would like to see some tutorials on how to make polyhedras. I think a tutorial on how to make a texture mapped docecahedron with lighting would be a perfect intro to a Astroids game. A tutorial on making polyhedras would be a good computer graphics lesson from NeHe. So try and hurry up and make one so I can go read it please.
Take back the internet with the most awsome browser around, FireFox
Umm... There's a tutorial on both solid shapes and one on quadrics. So try and hurry up and read them so you can learn to make polyhedrons.


-~-The Cow of Darkness-~-

If you see the image I am online


[edited by - cowsarenotevil on May 15, 2003 4:24:01 PM]
-~-The Cow of Darkness-~-
Advertisement
Moving this to NeHe''s forum.

Trent Polack
trent.codershq.com
trent@codershq.com
Author of Focus on 3D Terrain Programming
It''s sad to see people asking others to do things they should do themselves. I will direct you to a really cool site.
Here are the coordinates to build your docecahedron model. Building up from NeHe''s tutorials, it shouldn''t be too hard to implement. Now, since you have free time, why not make the tutorial yourself and post it on NeHe''s site !

Have fun.

--------------------------------------Halcyon
I don''t get it, I didn''t see any thing that told me how to create a dodecahedron at all. I''ve already got the coordinates for a dodeca but it would take way to long to pick out each vertex and make sure its in the right order. So i was looking for more of an algorithm that will produce a sphere in OpenGL. Then I could use that algorithm to produce a dodecahedron. Were can you find CAD formulas at?
Take back the internet with the most awsome browser around, FireFox
lesson 1 : Learn how to use google.

You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.
Advertisement
And when you do find out, I hope you do write a tutorial, since you are so eager!
Yes, yes I do know how to use Google. When I can''t find it on Google, I assume that I might have better luck here. I lost my internet, so I can''t surf it like I use to any more. I''m now stuck using the school computers for a 10 minute limit.
Take back the internet with the most awsome browser around, FireFox
Have a look at the openGL red book.. I managed to find a version you could download (unfortunately I can''t remember where from).

In chapter 2 or 3, it discusses how you can create your 3d objects, and gives an example of a 20 sided polyhedron.

basically you need to set up two array lists.. one gives the position of all the points, and the second lists all the triangles as indices to the point array. you then just need to loop through each to create the object.

float points[n][m] = { {x1, y1, z1}, {x2, y2, z2}, {x3, y3, z3}, {x4, y4, z4}, etc... }

float trianglesLink
something went wrong with the last line of my reply. should say..

float triangles[v] = { {0,2,3}, {0,3,1}, etc.. }

This topic is closed to new replies.

Advertisement