Where are those 2-dimension array's entries come from? How do we generate them?
Hi Everyone,
I am very new to OpenGl. Please help me to understand my follow
question. I ordered NeHe''s CD and looked at NeHe''s Halloween
project. I have no idea how NeHe came up with all the entry
values for pumpkin_indicies and stem_indicies. There are more
or less a thousand entries.
static short pumpkin_indicies[1000][6]= {2,4,3,0,1,2},....
{5,522,488,692,514,504}
and
static GLint stem_indicies[599][6]= {539,545,541,765,766,767},
...{546,547,863,1098,1095,1100}
My feeling is that there must be a way for NeHe to generate
those entries automatically. Please explain to me how things
work or direct me to links where I can read for myself.
Thanks
Some people are working hard on lowering the unemployment rate. Just think about how many people can could keep busy for days by making them draw the pumpkin on millimeter paper first, then measure all the values, then let them enter all the numbers into your computer... 
Serious now. My guess is that he used some 3D Modeling tool. This will give you some kind of 3D file. Now you write a converter that will read the data from the file and generate any output you like. This could very well be a binary to text file converter.
PS: This ain't really an OpenGL specific question. Such a converter doesn't require any OpenGl-related knowledge at all. And if he really entered all of this by hand... it required a lot of patience
Or a bunch of well trained monkeys.
[edited by - Wildfire on July 10, 2003 9:31:46 AM]

Serious now. My guess is that he used some 3D Modeling tool. This will give you some kind of 3D file. Now you write a converter that will read the data from the file and generate any output you like. This could very well be a binary to text file converter.
PS: This ain't really an OpenGL specific question. Such a converter doesn't require any OpenGl-related knowledge at all. And if he really entered all of this by hand... it required a lot of patience

[edited by - Wildfire on July 10, 2003 9:31:46 AM]
How do I set my laser printer on stun?
IIRC, Milkshape 3d has such an exporter....
--------<a href="http://www.icarusindie.com/rpc>Reverse Pop Culture
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement