🔒 Locked
3DS Loader
Advertisement
Original Post
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
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
This one and this other one are much simpler to use, albeit less complete.
[Edited by - barakus on January 27, 2006 2:10:52 AM]
[Edited by - barakus on January 27, 2006 2:10:52 AM]
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.
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.
If you’re not pleased with any one else’s Loaders just write your own, a 3ds loader only takes an hour or two. I wrote my own because I hate having to convert between formats, and such and I prefer working with my own code as much as possible, plus I like to keep everything using the same data structures and some times it’s hard to do that with a library or such.
All the info you ‘really’ need to load a 3ds can be found at, there probably some more stuff but you probably won’t need it.
structure and stuff
Shows how to read most chunks
Just remember, using a library is supposed to save you time, but if you could write something to do the job in half the time it takes to get the library is it really worth it =D, not to lead you away from them they can be great help.
ps:
bones are used for skeletal animation
All the info you ‘really’ need to load a 3ds can be found at, there probably some more stuff but you probably won’t need it.
structure and stuff
Shows how to read most chunks
Just remember, using a library is supposed to save you time, but if you could write something to do the job in half the time it takes to get the library is it really worth it =D, not to lead you away from them they can be great help.
ps:
bones are used for skeletal animation
...the (probably) most important and valuable resource is the "3D Studio File Toolkit", available at support.discreet.com.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement