Archived

This topic is now archived and is closed to further replies.

pollier

Urgent: 3ds model importing misaligned

Recommended Posts

pollier    122
Can anyone improve on the source code from http://www.gamedev.net/community/forums/topic.asp?topic_id=46834 ? In every model I import, every different object is displaced a certain distance - it depends on their size. If I can get this fixed quick enough I might be able to enter the Apocalypse contest, thanks.

Share this post


Link to post
Share on other sites
feagle814    122
As I remember, 3ds max exports using world coordinates. So if your export object is not centered at 0,0,0 when you export it, it will be the same offset when you import it.

If you don't want to export all that again, you could try finding a center point by averaging all the vertices and then recalculating each vertex relative to that center point.


Edited by - feagle814 on November 6, 2001 11:30:52 PM

Share this post


Link to post
Share on other sites
pollier    122
Er, that''s not exactly what I want, but thanks. My .3ds file contains several meshes, and each mesh is slightly displaced from the others. I''m not loading multiple files, just one only.

Share this post


Link to post
Share on other sites