Urgent: 3ds model importing misaligned
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.
"No break 'till you die!" - Mr. Foster, my English teacher
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
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
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.
"No break 'till you die!" - Mr. Foster, my English teacher
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement