Jump to content
  • Advertisement
Sign in to follow this  
J0lie

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.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I`m 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 this post


Link to post
Share on other sites
Advertisement
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 this post


Link to post
Share on other sites

Yes, it helps a little :P. What i`m 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 this post


Link to post
Share on other sites
Well, parsing 3ds file isnt that easy :)
You can try this 3ds file loader:
http://nehe.opengl.cz/download/clanky/cl_gl_3ds_cpp_sdl.zip
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 this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!