Skip to main content
gamedev.net
🔒 Locked

3ds problem..

Started by pucca 0 replies 500+ views
Original Post
pucca
pucca
Hi I was trying to extract data from a 3ds file and draw it on screen. I used a sample file from the net. I read the 4110 chunk length as 308 bytes and the number of triangles as 25. This is the dump of the command line data of chunk 4110(list of vertices): -500 -2.97009e-05 -502.32 -250 -2.97009e-05 -502.32 0 -2.97009e-05 -502.32 250 -2.97009e-05 -502.32 500 -2.97009e-05 -502.32 -500 -1.47997e-05 -252.32 -250 -1.47997e-05 -252.32 0 -1.47997e-05 -252.32 250 -1.47997e-05 -252.32 500 -1.47997e-05 -252.32 -500 1.01418e-07 -2.32018 -250 1.01418e-07 -2.32018 0 1.01418e-07 -2.32018 250 1.01418e-07 -2.32018 500 1.01418e-07 -2.32018 -500 1.50026e-05 247.68 -250 1.50026e-05 247.68 0 1.50026e-05 247.68 250 1.50026e-05 247.68 500 1.50026e-05 247.68 -500 2.99037e-05 497.68 -250 2.99037e-05 497.68 0 2.99037e-05 497.68 250 2.99037e-05 497.68 500 2.99037e-05 497.68 What might be the problem with 'y' coordinate?? Thanx.
pucca
pucca
Hi

All my formatting seems to have gone down the drain..

The dump contains one vertex in each line.
If you notice the x and z coordinates are in a larger scale( 100 - 500) compared to y coordinate which is in e-05.

What might be the problem??

Thanks..

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.