View Full Version : Loading .3ds files using 3dsftk
10-03-2000, 12:58 AM
I use the 3dsftk lib to load 3ds file, but as the samples are a bit too simple, they don't show how to get the normals (vertices or faces). so I can load the meshes but not the normals.
If someone knows how to do that, or have a sample the do it please help me.
10-04-2000, 12:21 AM
Looking at the header, I don't believe it's possible to load the normals because they're not stored with the mesh.
I compute them myself.
10-04-2000, 01:48 AM
You're right, so I calculate them myself, but tere still a problem, that is I can't determine the right orientation of the formal !
Check the demo on my web page http://perso.libertysurf.fr/amsellem
10-04-2000, 02:38 AM
I've been using the 3dsftk myself and, believe me, computing the correct normals at each vertex is a real pain. First you've got to compute the normals for each face by computing the cross product of edge1 and edge2 (for example). Then at each vertex of each face you've got to average all the normals of the faces who are in the same smooth group as the face the vertex you're computing the normal is. Woof !
10-04-2000, 06:52 AM
If possible I would like to know where I could find 3dsfdk...
[This message has been edited by Gabriel (edited 10-04-2000).]
10-05-2000, 05:18 AM
Yep, me too !
I had it a long time ago, but I can't put my hands on it any more http://www.opengl.org/discussion_boards/ubb/frown.gif and the lib seems to remain burried somewhere on the net...
10-05-2000, 10:29 AM
Well, I found a nibble of info... I found a post on a message board that made refference to 3dsftk.h. And it also had a path to that file:
However, I have no idea what the root of that path is.(i.e. ftp.whatever.com/...). If anybody has any idea if this is even a valid path to what we're looking for, let me know, and if you do know, post the root that goes with this.
10-05-2000, 04:00 PM
At flipcode, some days ago, there was some news about a library named Little3D..
Search in flipcode for this Little3D.., at this page there is a link to download the 3ds toolkit..
If you guys can't find it, let me know, and i will post the link., i have it somewhere in my favorites http://www.opengl.org/discussion_boards/ubb/smile.gif
10-06-2000, 06:58 AM
For ease of reference, here's the link to the actual page with the D/L link for 3dsftk: http://little3d.free.fr/english/i_english.htm
10-11-2000, 02:05 AM
Yes Olive, you're right, that's how I compute them too. Finally, I found this sdk very powerfull and easy to use.
I stil have a litle question about materials, because I have a 3ds file with materials info, but when I import that file into 3DStudio, I see the object well rendered, with correct materials, but I can't see those materials info in the materials editor !?
And when I load the file in my app, the materials are well loaded, but the objects are not as well rendered.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.