L3DT users' community
Large 3D terrain generator

Problem with the Paint Brush

Got a problem or need advice?

Re: Problem with the Paint Brush

Postby scania970 » Sun Dec 16, 2012 10:41 am

Ok so I need to import the map from the game to L3DT and then save the map and gave you those files. Right?
Image
Image
scania970
Member
 
Posts: 20
Joined: Tue Oct 09, 2012 7:01 pm
Location: Prato (Italy)

Re: Problem with the Paint Brush

Postby Aaron » Sun Dec 16, 2012 11:44 am

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

Re: Problem with the Paint Brush

Postby scania970 » Mon Dec 17, 2012 5:33 pm

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
Image
Image
scania970
Member
 
Posts: 20
Joined: Tue Oct 09, 2012 7:01 pm
Location: Prato (Italy)

Re: Problem with the Paint Brush

Postby Aaron » Tue Dec 18, 2012 12:41 pm

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

Re: Problem with the Paint Brush

Postby scania970 » Fri Dec 28, 2012 2:16 pm

This is the file.RAR with all the files. I've also put the Texture Map.

http://rapidshare.com/files/3124837172/VernioCity.rar
Image
Image
scania970
Member
 
Posts: 20
Joined: Tue Oct 09, 2012 7:01 pm
Location: Prato (Italy)

Re: Problem with the Paint Brush

Postby Aaron » Sat Dec 29, 2012 2:39 am

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

Re: Problem with the Paint Brush

Postby scania970 » Sat Dec 29, 2012 2:17 pm

thankyou :)
so you will gave me the files when they are fixed?
Image
Image
scania970
Member
 
Posts: 20
Joined: Tue Oct 09, 2012 7:01 pm
Location: Prato (Italy)

Re: Problem with the Paint Brush

Postby Aaron » Sun Dec 30, 2012 1:17 pm

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

Re: Problem with the Paint Brush

Postby scania970 » Sun Dec 30, 2012 10:18 pm

Uhm.. I downloaded the 12.10.. Because I can't find the v 12.12 :o
Image
Image
scania970
Member
 
Posts: 20
Joined: Tue Oct 09, 2012 7:01 pm
Location: Prato (Italy)

Re: Problem with the Paint Brush

Postby Aaron » Mon Dec 31, 2012 1:35 am

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

Re: Problem with the Paint Brush

Postby scania970 » Wed Jan 09, 2013 7:08 pm

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
Image
Image
scania970
Member
 
Posts: 20
Joined: Tue Oct 09, 2012 7:01 pm
Location: Prato (Italy)

Re: Problem with the Paint Brush

Postby Aaron » Mon Jan 14, 2013 1:56 pm

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

Re: Problem with the Paint Brush

Postby scania970 » Fri Jan 25, 2013 6:23 pm

Nope :(
Image
Image
scania970
Member
 
Posts: 20
Joined: Tue Oct 09, 2012 7:01 pm
Location: Prato (Italy)

Previous

Return to Help and support

Who is online

Users browsing this forum: No registered users and 15 guests

cron