Terrain Example ?

Everything related to 3D programming
Thade
Enthusiast
Enthusiast
Posts: 266
Joined: Sun Aug 03, 2003 12:06 am
Location: Austria

Terrain Example ?

Post by Thade »

Is there a Terrain Example featuring the exploded number of Terrain commands and parameters?
Version 5.00b2

Thanks in advance :)
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
User avatar
[blendman]
Enthusiast
Enthusiast
Posts: 297
Joined: Thu Apr 07, 2011 1:14 pm
Location: 3 arks
Contact:

Re: Terrain Example ?

Post 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.
Thade
Enthusiast
Enthusiast
Posts: 266
Joined: Sun Aug 03, 2003 12:06 am
Location: Austria

Re: Terrain Example ?

Post by Thade »

+1

That's what I was looking for.

Thank you, Blendman
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
Thade
Enthusiast
Enthusiast
Posts: 266
Joined: Sun Aug 03, 2003 12:06 am
Location: Austria

Re: Terrain Example - Dat Question

Post 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 :)
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Terrain Example ?

Post by Fred »

I'm currently writing the doc, it will be for the next beta.
Thade
Enthusiast
Enthusiast
Posts: 266
Joined: Sun Aug 03, 2003 12:06 am
Location: Austria

Re: Terrain Example ?

Post by Thade »

Great - thanks for the info

:D
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Re: Terrain Example - Dat Question

Post 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)
Please correct my english
http://purebasic.developpez.com/
Thade
Enthusiast
Enthusiast
Posts: 266
Joined: Sun Aug 03, 2003 12:06 am
Location: Austria

Re: Terrain Example ?

Post 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 :)
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
Post Reply