Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Blitzwerk terrain texture scale

Author
Message
MateiSoft Romania
12
Years of Service
User Offline
Joined: 16th Oct 2013
Location:
Posted: 1st Apr 2015 18:18
Hello guyz,

Do you know the command for scalling the terrain's texture from blitzwerk?

Thank You!

Alex Matei CEO
www.alexmatei.com
Adrian
22
Years of Service
User Offline
Joined: 11th Nov 2003
Location: My Living Room
Posted: 1st Apr 2015 23:08 Edited at: 2nd Apr 2015 02:38
It depends on how you split the terrain up into pieces.
If you split the terrain into 4 pieces, you multiply the detail by 1/4

BT SetTerrainSplit g_TerrainID,4
BT SetTerrainDetailTile g_TerrainID,0.250

This will give you the terrain detail image spread over the terrain in a 1:1 ratio.
If you play around with these numbers, you can make the image repeat more often, or "zoom" in on the detail image.

BT SetTerrainSplit g_TerrainID,4
BT SetTerrainDetailTile g_TerrainID,1
will give you 4 copies of the detail on the terrain.

You can swap the images of the texture and the detail when loading the images to get different effects

Login to post a reply

Server time is: 2026-07-05 15:24:38
Your offset time is: 2026-07-05 15:24:38