Jump to content
  • Advertisement
Sign in to follow this  
Kincaid

OpenGL 3DS Loader

This topic is 4530 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

Hi, I'm looking for a 'simple' 3ds loader to load models in my opengl scene. I found several on google, but none of them opens all 3ds's. they crash, leave out texture or whatever. Does anyone know a good 3ds load module , or link to, (for VC++). Thanx

Share this post


Link to post
Share on other sites
Advertisement
I came across that one, but it looks far from simple :)

Also, how to use it??
what to include..
etc...

Any links on how to use it maybe???

But it would be the perfect solution to loading and using All 3ds models ???

thanx

Share this post


Link to post
Share on other sites
I can honestly say i've never used it [grin]

However, in the download there is a visual c++ project that should allow you to build the lib3ds lib or dll for you to use in your own projects.
There is also an example "player.c" within the download so you should be able to get started from that.

I'll admit it does look particularly nasty upon inspection, but as far as 3ds loaders go, I doubt you will find a more complete one [smile]

Sorry I can't be of more help ...
Best of luck,
ViLiO

Share this post


Link to post
Share on other sites
but are they any good ??? :)

did some more reading on 3dslib, but it seems promising.
So, if anyone knows how to use this better, please tell me.

Thanx

Share this post


Link to post
Share on other sites
It should not be that hard to write a 3ds loader. You should take in account what do you want to read? If it is just meshes then you can have a 3ds loader in about 30 lines of C code. Just pick the chunks you are interested in. Many format descriptors can be found at www.wotsit.org.

I believe there was a demo library some time ago called Clax.

As for 3ds you should know that:
- they store no normals
- you have to compute normals for lighting computation via smoothing groups
- they have no bones (it is possible but very very hard - no loader supports it)
- the bones demo is some chicken running down some zig zag pattern 3ds4
- 3ds max is not abble to reuse bone information in .3ds files
- animation is mostly node based (you do not move vertices but nodes)
- a node is represented as whole mesh (a planet and its moon for example)

If you would like to come more into gaming, take Milkshape MS3D. Milkshape can import almost every file format there is in common, and the .ms3d format has a very very simple SDK.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Ok, milkshape then.

What are the pro's and con's between MilkShape en 3DS???
Milkshape can open and write .3ds right ??
so does 3ds offer any great advantages over milkshape??

I guess milkshape loader would be easier.
So any leads as to where to find them ???

and what about this SDK.
Where is it? What is it? how does it work?

To outline maybe, I just want to be able to load nice models, completely textured off course, and lighted (which I need to do myself anyway ?? ).


Oh, and what are 'bones' ??

Thanx

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Ok, milkshape then.

What are the pro's and con's between MilkShape en 3DS???
Milkshape can open and write .3ds right ??
so does 3ds offer any great advantages over milkshape??

I guess milkshape loader would be easier.
So any leads as to where to find them ???

and what about this SDK.
Where is it? What is it? how does it work?

To outline maybe, I just want to be able to load nice models, completely textured off course, and lighted (which I need to do myself anyway ?? ).


Oh, and what are 'bones' ??

Thanx

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!