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 / Help with Advanced terrain detail image/base image texture

Author
Message
OmegaGamer89
5
Years of Service
User Offline
Joined: 31st Aug 2018
Location:
Posted: 31st Aug 2018 11:13
So in the help file for advanced terrain, for the SET TERRAIN TEXTURE command, it just says



But it doesnt really give any explanation as to what the difference is between the base image and the detail image. So far Ive only been using 1 image for both parameters, and it still seems to work, but i kinda wonder what Im missing, so to speak? Like, I upload an image of a simple grass texture, and then use that as the 'image' parameter, and yeah, it textures the terrain with grass. Basically this;




But what exactly is the second image for/how does it work? Would it just be a different texture? Like if I upload a texture of grass and a texture of dirt, does it intersperse the two textures? Im really just lost as to what the 2nd texture is meant for.

Any help would be greatly appreciated.
Ortu
DBPro Master
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 31st Aug 2018 23:34 Edited at: 31st Aug 2018 23:35
The base image gets stretched across the entire terrain and needs to be fairly large, it will still lose a lot of visual resolution due to the terrain size.

To improve visual resolution you can provide a detail image which gets tiled at a much higher resolution and allows the use of a much smaller image.

These get blended together where the base image provides a general sense of terrain type and color (grass, rock, dirt, sand etc) all in one image, and the detail image gives these some detail up close. The detail image is usually a generic rock or stone that can blend reasonably well with any terrain type the base image may have.

this causes that "green rocks" effect common in older games though.
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.

Login to post a reply

Server time is: 2024-04-24 00:03:41
Your offset time is: 2024-04-24 00:03:41