Page 1 of 1

Terrain Example ?

Posted: Sat Sep 08, 2012 12:42 pm
by Thade
Is there a Terrain Example featuring the exploded number of Terrain commands and parameters?
Version 5.00b2

Thanks in advance :)

Re: Terrain Example ?

Posted: Sat Sep 08, 2012 5:59 pm
by [blendman]
Hi

Have you tried these examples ;)?
http://ftp-developpez.com/comtois/fichi ... amples.zip
http://purebasic-skybox.googlecode.com/ ... amples.rar

I think there are some examples witht the new terrain features.

Re: Terrain Example ?

Posted: Mon Sep 10, 2012 12:36 pm
by Thade
+1

That's what I was looking for.

Thank you, Blendman

Re: Terrain Example - Dat Question

Posted: Thu Sep 13, 2012 9:25 pm
by Thade
Hello

Additional Questions to understand the system behind it:
In TG03-TerrainBlend.pb there is a file Terrain03_00000000.Dat in use ?

Code: Select all

CreateTerrain(0, 513, 12000, 600, 3, "Terrain03", "Dat")
How is it generated? What is it for? What does it represent?

There is a file called alpha.bmp in Textures\Terrain ... a .png would be 8 times smaller - where is the information to change it to .png so that the program recognizes it?

Who can point me to more information about the new 3D Commands in case its available somewhere?

Thank you :)

Re: Terrain Example ?

Posted: Thu Sep 13, 2012 9:40 pm
by Fred
I'm currently writing the doc, it will be for the next beta.

Re: Terrain Example ?

Posted: Thu Sep 13, 2012 9:48 pm
by Thade
Great - thanks for the info

:D

Re: Terrain Example - Dat Question

Posted: Fri Sep 14, 2012 9:35 am
by Comtois
Thade wrote:In TG03-TerrainBlend.pb there is a file Terrain03_00000000.Dat in use ?

Code: Select all

CreateTerrain(0, 513, 12000, 600, 3, "Terrain03", "Dat")
How is it generated? What is it for? What does it represent?
it is generated by SaveTerrain(0, #False) using parameters "Terrain03" and "Dat". Example TH01-TerrainGroup will save 9 files as there are 9 terrains created.
Fred will say more in the doc :)
There is a file called alpha.bmp in Textures\Terrain ... a .png would be 8 times smaller - where is the information to change it to .png so that the program recognizes it?
This file is not used.

only these files are used for textures :

Code: Select all

   AddTerrainTexture(0,  0, 100, "dirt_grayrocky_diffusespecular.dds",  "dirt_grayrocky_normalheight.dds")
    AddTerrainTexture(0,  1,  30, "grass_green-01_diffusespecular.dds", "grass_green-01_normalheight.dds")
    AddTerrainTexture(0,  2, 200, "growth_weirdfungus-03_diffusespecular.dds", "growth_weirdfungus-03_normalheight.dds")
And this one for Heightmap

Code: Select all

DefineTerrainTile(0, tx, ty, "terrain513.png", ty % 2, tx % 2)

Re: Terrain Example ?

Posted: Fri Sep 14, 2012 1:26 pm
by Thade
Comtois. Thank you for the info.

alpha.bmp looks as if its the base texture for a terrain shader - so I made some unsuccessful tests - "painting" grass and rock in association with the green and red color ...
Well - it seems I have to wait for the docs to learn more about it.

Btw.: I have a HLSL terrain shader I used in another engine - it paints 9 textures on a terrain - depending on 2 slope parameters and terrain height - plus 2 textures for a detail textured road.

Image

Image

Image


Hopefully I will be able to get it to work in PB :)