Page 1 of 1

L3DT 2.9 Build 24 .x exporter bug

PostPosted: Sun Jun 19, 2011 4:14 am
by bioxx
The .x exporter for exporting a heightmap into .x format produces a bad file. the fix should be pretty easy however. When the exporter is writing the indices out to a line it adds an extra comma at the end that should not be there.
For instance:

Code: Select all
3,20745,20751,20744;,,
3,20750,20751,20745;,,
3,20746,20755,20741;,,


The Above is wrong and should look like this
Code: Select all
3,20745,20751,20744;,
3,20750,20751,20745;,
3,20746,20755,20741;,


Hope that helps.

Re: L3DT 2.9 Build 24 .x exporter bug

PostPosted: Mon Jun 20, 2011 10:54 am
by Aaron
Hi bioxx,

Thanks for the bug report. I inadvertently introduced this fault when cleaning up some code in the X plugin, and will include the fix in the next build. Whilst I'm at it, I'm also adding support for materials, texture coordinates and vertex normals in the X exporter. I'll post back here when it's ready for testing.

Thanks again for the bug report!

Cheers,
Aaron.

Update: Success; the meshes now load properly in the SDK DXViewer with materials and vertex normals (see below). I'll do a little more tidying up in the morrow, and upload the updated plugin(s) thereafter.

DXViewer.jpg
DXViewer.jpg (51.1 KiB) Viewed 8100 times

Re: L3DT 2.9 Build 24 .x exporter bug

PostPosted: Tue Jun 21, 2011 9:51 pm
by Aaron
Hi Bioxx,

The fixed X exporter is included in L3DT v2.9 build 25, which is on the downloads page now. Please let me know if you find any problems with it. Again, many thanks for the bug report.

Best regards,
Aaron.