janis.taranda Posted April 14, 2020 Posted April 14, 2020 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?).
aargh Posted April 14, 2020 Posted April 14, 2020 Hi Janis Try this unigine API doc API/Node-Related Classes/Objects-Related Classes/ObjectLandscapeTerrain Classes aargh
janis.taranda Posted April 14, 2020 Author Posted April 14, 2020 (edited) 1 hour ago, aargh said: Hi Janis Try this unigine API doc API/Node-Related Classes/Objects-Related Classes/ObjectLandscapeTerrain Classes 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 April 14, 2020 by janis.taranda Precision
karpych11 Posted April 16, 2020 Posted April 16, 2020 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. TerrainGenerator.cs 3
janis.taranda Posted April 16, 2020 Author Posted April 16, 2020 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!!!!
Recommended Posts