Good job. I only can load Milkshape :|
"There are people who live in the reality. We recreate it!"
I DID IT!!!!
To further explain what _DarkWIng_ was saying...
Each vertex has 3 coordinates(x, y, z)
Each triangle(aka face, polygon) is made up from 3 vertices(plural of vertex)
So the triangle has 3 properties. Vertex1, vertex2 and vertex3. if Vertex1 has the value 243 for example that would mean that the first point in the triangle is at vertexlist[243].x, vertexlist[Vertex1].y, vertexlist[242+3].z
Hope this makes sense
Each vertex has 3 coordinates(x, y, z)
Each triangle(aka face, polygon) is made up from 3 vertices(plural of vertex)
So the triangle has 3 properties. Vertex1, vertex2 and vertex3. if Vertex1 has the value 243 for example that would mean that the first point in the triangle is at vertexlist[243].x, vertexlist[Vertex1].y, vertexlist[242+3].z
Hope this makes sense

if (!understand) ask;
Yeah, I know all about verts, normals, and faces. I have the data from my cube in the file whitch has all 8 verts. Its just I didn''t know that the file used normals for the data. What I thought earlyer is that it had the data to each face giving me all 36 verts
Now I know better. I have never used arrays before and I am reading up on how to do that now. Once I understand the commands and stuff I am hoping to finish this tonight. Was going to do it last night but I passed out
---------------------------
The pipes clangor all the time.


---------------------------
The pipes clangor all the time.
---------------------------The pipes clangor all the time.
Well vertex arrays was a waste of time. Not saying that the help sucked I did appereceat all your guys help but I didn''t need the vertex array stuff. The reason I couldn''t put togeather the model''s verts is because I got some bad info about 0x4120. I was first told that this was the same as 0x4110. But its not 0x4120 is just a part of the 3ds file that tells me what verts are used in each face and now that I know that I was able to finish this little project! The URL is at the bottom to show you that it works. Now all I need is to get the tex cords so I can texture my loaded models! This is so great! Maybe now I will probly enter in the new contest! And make a tut for you guys so you can all load 3ds files in your projects. I don''t meen to diss on GameTutorials.com but thier tut on loading 3ds is just too hard to read when I tryed to understand it and I still can''t understand it. But I have made my own that is ALOT less complex and alot smaller in code. Go ahead and use another model and load it into my program to see if it works. Just rename it to cube.3ds. Warning, it does not test what ver of the format and I have read that there are different versions so it may not work. But as far as I know if it loads or is made in Wings 3d then it should load in this. I am very tiered now and I am going to sleep now that this works. WOW my openGL engien is acctually comming togeather! Me so happy. Sorry if stuff what I just said is mispelled or anything but I am hopped up on coffee and my hands are shakey from both beeing tiered and caffinated! But here is the link:
http://www.angelfire.com/bug/pipes555/project.zip
Good night!
---------------------------
The pipes clangor all the time.
http://www.angelfire.com/bug/pipes555/project.zip
Good night!
---------------------------
The pipes clangor all the time.
---------------------------The pipes clangor all the time.
If you own a full version of 3d studio max I would seriously suggest cheking in to UVW mapping for texturing purposes as it allows you to use one single texture containing several "images" and just adjust the vertex coordinates. It saves space and is IMHO alot easier to code. Just to save you some headache.
if (!understand) ask;
quote:
Original post by cowsarenotevil
Excellent! File I/O is my greatest weakness.
You''ll get used to it after writing lots of model/save-game importers/exporters... (which''s what I did

If anyone requires 3DS loading code, I can supply the code (not my creation). Just send me an email.
Hopefully there will a tut on the subject very soon.
Hopefully there will a tut on the subject very soon.
It sure fills good dont it !...... I did a md2 loader componet for c++ builder with anamation took me forever but it sure felt good .......
JIm
November 06, 2003 04:53 AM
Nice! I was like that too i remember. It was terrible and i just copied the code of the tutorials without actually knowing what i''m doing. It''s much different now. Hopefully you''ll have the same luck too

This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement