Thank you @ SirNate0
this not work Preparing TOR files - Gaea Documentation - QuadSpinner
---------------------------------------
changed the landscape Terrain002_1K.obj in terrain1 ( …/Materials/DefaultMaterial.xml and …/Models/Mesher_LOD2.mdl and …/Textures/ )
dima@astra:~/ogre/Urho3D-1.8-ALPHA/build/bin/tool$ ./AssetImporter scene Terrain002_1K.obj terrain1
Reading file Terrain002_1K.obj
Added model ./Models/Mesher_LOD2.mdl
Added node Mesher_LOD2
Writing model Mesher_LOD2
Writing geometry 0 with 1048576 vertices 6279174 indices
Writing scene
Writing material DefaultMaterial
// Create heightmap terrain
Node* terrainNode = scene_->CreateChild("Terrain");
terrainNode->SetPosition(Vector3(0.0f, 0.0f, 0.0f));
auto* terrain = terrainNode->CreateComponent<Terrain>();
terrain->SetPatchSize(64);
terrain->SetSpacing(Vector3(2.0f, 0.5f, 2.0f)); // Spacing between vertices and vertical resolution of the height map
terrain->SetSmoothing(true);
// terrain->SetHeightMap(cache->GetResource<Image>("Textures/HeightMap.png"));
terrain->SetMaterial(cache->GetResource<Material>("/home/dima/dima_project/Urho-Project-Template6_gold/Materials/DefaultMaterial.xml"));
terrain->SetModels(cache->GetResource<Model>("/home/dima/dima_project/Urho-Project-Template6_gold/Models/Mesher_LOD2.mdl"));
// The terrain consists of large triangles, which fits well for occlusion rendering, as a hill can occlude all
// terrain patches and other objects behind it
terrain->SetOccluder(true);
this not work
/home/dima/dima_project/Urho-Project-Template6_gold/L10n.cpp:386: error: ‘class Urho3D::Terrain’ has no member named ‘SetModels’; did you mean ‘SetNode’?
terrain->SetModels(cache->GetResource("/home/dima/dima_project/Urho-Project-Template6_gold/Models/Mesher_LOD2.mdl"));
^~~~~~~~~
---------------------------------------
// Create heightmap terrain
Node* terrainNode = scene_->CreateChild("Terrain");
terrainNode->SetPosition(Vector3(0.0f, 0.0f, 0.0f));
auto* terrain = terrainNode->CreateComponent<Terrain>();
terrain->SetPatchSize(64);
terrain->SetSpacing(Vector3(2.0f, 0.5f, 2.0f)); // Spacing between vertices and vertical resolution of the height map
terrain->SetSmoothing(true);
// terrain->SetHeightMap(cache->GetResource<Image>("Textures/HeightMap.png"));
terrain->SetMaterial(cache->GetResource<Material>("/home/dima/dima_project/Urho-Project-Template6_gold/Materials/DefaultMaterial.xml"));
// terrain->SetModels(cache->GetResource<Model>("/home/dima/dima_project/Urho-Project-Template6_gold/Models/Mesher_LOD2.mdl"));
// The terrain consists of large triangles, which fits well for occlusion rendering, as a hill can occlude all
// terrain patches and other objects behind it
terrain->SetOccluder(true);
this work but not right
--------------------------------------
// Create heightmap terrain
Node* terrainNode = scene_->CreateChild("Terrain");
terrainNode->SetPosition(Vector3(0.0f, 0.0f, 0.0f));
auto* terrain = terrainNode->CreateComponent<Terrain>();
terrain->SetPatchSize(64);
terrain->SetSpacing(Vector3(2.0f, 0.5f, 2.0f)); // Spacing between vertices and vertical resolution of the height map
terrain->SetSmoothing(true);
// terrain->SetHeightMap(cache->GetResource<Image>("Textures/HeightMap.png"));
// terrain->SetMaterial(cache->GetResource<Material>("/home/dima/dima_project/Urho-Project-Template6_gold/Materials/DefaultMaterial.xml"));
terrain->SetMaterial(cache->GetResource<Material>("/home/dima/dima_project/Urho-Project-Template6_gold/terrain1"));
// terrain->SetModels(cache->GetResource<Model>("/home/dima/dima_project/Urho-Project-Template6_gold/Models/Mesher_LOD2.mdl"));
// The terrain consists of large triangles, which fits well for occlusion rendering, as a hill can occlude all
// terrain patches and other objects behind it
terrain->SetOccluder(true);
this work but not right
Please help me ;_;