L3DT users' community
Large 3D terrain generator

L3DT 2.9 Build 24 .x exporter bug

Please report software faults here.

L3DT 2.9 Build 24 .x exporter bug

Postby bioxx » Sun Jun 19, 2011 4:14 am

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.
bioxx
Newbie
 
Posts: 1
Joined: Mon Apr 12, 2010 1:25 am

Re: L3DT 2.9 Build 24 .x exporter bug

Postby Aaron » Mon Jun 20, 2011 10:54 am

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 8035 times
User avatar
Aaron
Site Admin
 
Posts: 3696
Joined: Sun Nov 20, 2005 2:41 pm
Location: Melbourne, Australia

Re: L3DT 2.9 Build 24 .x exporter bug

Postby Aaron » Tue Jun 21, 2011 9:51 pm

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.
User avatar
Aaron
Site Admin
 
Posts: 3696
Joined: Sun Nov 20, 2005 2:41 pm
Location: Melbourne, Australia


Return to Bug reports

Who is online

Users browsing this forum: No registered users and 10 guests

cron