OpenGL I want a script! Newbie question!

This topic is 4891 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Im kinda new in openGL. I want to make a simple scene, something like the one from nehe tutorial 10, but a little bigger. To do that i have to make it in an editor and export to a file, right? My question is: it exist a script to read the coordinates from the file easier? How do you make larger scenes(what editor do you use, 3d MAX)? Thanx!

Share on other sites
Hi,
you should understand that the NeHe's tutorials are just tutorials. They teach you how to make something in only few steps. That's why there's (10th. tutorial) only simple text file loader. If you want to make more rooms in the demo, you either have to make your own editor on top of this nehe's loader (which would be good if you want to make it bigger) or just write directly to that file (which is very impractical when it comes to bigger scenes).
But note that the structure of that file is rather simple and you can't expect to make really shocking scenes.
If you however want to make something more serious, you shold take a look on more advanced topics, about indoor rendering, etc. It still depends how big your demo should be.
And yes you could also make your scene in (e.g. 3DMAX ) then use some 3ds loader to load it into your project and there you go..
Hope this helps a little.. :)

Y.

Share on other sites

Yes, it helps a little :P. What im searching for are those 3ds loaders...where do i find them? For example i tryed to make in 3d Max a cub and export in a .ase file. There are some loaders to help me read from that file or should i make it by my self? Or are other ways to do a scene and read coordinates?

Share on other sites
Well, parsing 3ds file isnt that easy :)
You can try this 3ds file loader:
But i think it's not commented in english so, :) but you can give it a try :)

Y.

PS: and yes, if you want just to load a 3d scene, you could use some other loader for another 3d file format (Maya, MilkShape, etc). These can usulay import 3ds files. BTW: I find useful Anim8or (free 3d prog.) where you can export to C and you get a regular c file which you can include into your app and you don't need any pharser whatsoever.

http://www.anim8or.com/main/index.html

Share on other sites
ASE files are plain ascii so the should not be terribly hard to read. Google ist your friend

1. 1
Rutin
46
2. 2
3. 3
4. 4
5. 5

• 13
• 10
• 12
• 10
• 13
• Forum Statistics

• Total Topics
632997
• Total Posts
3009799
• Who's Online (See full list)

There are no registered users currently online

×