Jump to content

Question about landscape terrain coding


photo

Recommended Posts

Posted

Can I create LandscapeTerrain purely procedural in C# or C++ ? Some kickstart direction where to look would be highly appreciated (maybe some short example code if it's not to much asked?).

Posted

Hi Janis

Try this unigine API doc

                                                                                                                              aargh

Posted (edited)
1 hour ago, aargh said:

Hi Janis

Try this unigine API doc

                                                                                                                              aargh

Im already madly diving into documentation, but I can't connect the dots. Its very complex hierarchy as it seems. Im sure some few code lines would kickstart me in right direction. I created the `ObjectLandscapeTerrain ` object in code, but I don't see how to pressed- how can I feed procedural texture to it etc. Pointing to lots of related docs randomly is not helpful at moment.

Edited by janis.taranda
Precision
Posted

Hello Janis,

C# component TerrainGenerator.cs contains a simple example of creating a landscape based on two textures: albedo and height. These textures are loaded from files, but you can create them procedurally. For default parameters, you must configure the component as in the attached screenshot.

albedo.png

height.png

TerrainGenerator.cs

settings.PNG

  • Like 3
Posted
11 hours ago, karpych11 said:

Hello Janis,

C# component TerrainGenerator.cs contains a simple example of creating a landscape based on two textures: albedo and height. These textures are loaded from files, but you can create them procedurally. For default parameters, you must configure the component as in the attached screenshot.

 

Huge thanks!!!!

×
×
  • Create New...