Page 2 of 2

Re: Problem with the Paint Brush

PostPosted: Sun Dec 16, 2012 10:41 am
by scania970
Ok so I need to import the map from the game to L3DT and then save the map and gave you those files. Right?

Re: Problem with the Paint Brush

PostPosted: Sun Dec 16, 2012 11:44 am
by Aaron
Hi Scania,

Yes, please import the map into L3DT and do everything you normally do to the map (generate textures, etc.), except open Sapphire and edit the texture. Then, save the map project, and send me the '[project name].proj', '[project name].def.xml' and '[project name]_HF.hfz' files. With these files, I should be able to exactly reproduce your map, and test why the texture brush is causing a crash.

Best regards,
Aaron.

Re: Problem with the Paint Brush

PostPosted: Mon Dec 17, 2012 5:33 pm
by scania970
Ok thankyou. Just an info: when I import the map on L3DT I import the Heighmap and the texture map and I generate the attributes map, water map etc

Re: Problem with the Paint Brush

PostPosted: Tue Dec 18, 2012 12:41 pm
by Aaron
Hi Scania,

Ah, that's good to know. Could you send me the texture map as well? This way I can use precisely the same map as you.

Best regards,
Aaron.

Re: Problem with the Paint Brush

PostPosted: Fri Dec 28, 2012 2:16 pm
by scania970
This is the file.RAR with all the files. I've also put the Texture Map.

http://rapidshare.com/files/3124837172/VernioCity.rar

Re: Problem with the Paint Brush

PostPosted: Sat Dec 29, 2012 2:39 am
by Aaron
Hi Scania,

Thanks for the files. I can now reproduce the fault. I think it's related to the fact that your texture map is smaller than your heightfield (2048x2048 vs. 2049x2049), which means that the texture-to-heightfield size ratio is slightly less than 1. If the TX/HF ratio is treated like an integer, as it may be in the texture brush tool, a value of <1 will be truncated to zero, and cause a divide-by-zero exception, crashing the program.

When I resized your heightfield and water map to 2048x2048, the brush worked properly.

I will hunt down this bug ASAP, and post back here when it is fixed. Thanks again for your help and patience with this bug.

Best regards,
Aaron.

Re: Problem with the Paint Brush

PostPosted: Sat Dec 29, 2012 2:17 pm
by scania970
thankyou :)
so you will gave me the files when they are fixed?

Re: Problem with the Paint Brush

PostPosted: Sun Dec 30, 2012 1:17 pm
by Aaron
Hi Scania,

This should now be fixed in the latest developmental build of L3DT Professional (L3DT v12.12 build 0), which is on the downloads page now. Please let me know if you find any further problems with L3DT, and thank you again for the bug report.

Best regards,
Aaron.

Re: Problem with the Paint Brush

PostPosted: Sun Dec 30, 2012 10:18 pm
by scania970
Uhm.. I downloaded the 12.10.. Because I can't find the v 12.12 :o

Re: Problem with the Paint Brush

PostPosted: Mon Dec 31, 2012 1:35 am
by Aaron
Hi Scania,

Version 12.12 is on the Pro downloads page, not on the standard downloads page (which still has v12.10). I'll PM you the link.

Best regards,
Aaron.

Re: Problem with the Paint Brush

PostPosted: Wed Jan 09, 2013 7:08 pm
by scania970
Thankyou. Now it works fine. but I can't understand why when I make some modification to the texture map and then regenerate it for save the changes it wont work. Look:

Before:

Image

After:

Image

Hope you can help me another time :D

Re: Problem with the Paint Brush

PostPosted: Mon Jan 14, 2013 1:56 pm
by Aaron
Hi Scania970,

I think you're getting a bland texture map after texture re-generation because your your attributes map is also very bland, and not at all like your texture map from the first picture.

What seems to be the problem is that your heightfield is now very, very flat - much flatter than when L3DT generated it originally. It looks like you've either rescaled it manually, or exported it from L3DT and then re-imported it, but not used the original vertical scaling. As a consequence of this, when you re-generated the attributes map, it is very bland because that's what happens on flat maps, and hence when you generate the texture map, it's bland too.

Do you still have a copy of the original heightfield before it was rescaled?

Best regards,
Aaron.

Re: Problem with the Paint Brush

PostPosted: Fri Jan 25, 2013 6:23 pm
by scania970
Nope :(