angus Posted April 2, 2019 Share Posted April 2, 2019 What is the recommended way of leaving ruts in the ground and hoof prints from a horse-drawn wagon? I have experimented with decals with normal maps but it quickly gets resource-intensive. Link to comment
morbid Posted April 3, 2019 Share Posted April 3, 2019 Hello angus, This can be done with decals but only with the limited number of visible footprints or ruts. How long these ruts should be? And how many footprints you expect to see simultaneously? Thanks. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
angus Posted April 3, 2019 Author Share Posted April 3, 2019 The ruts and hoofprints of the 10 horses should live for probably 2 minutes or so as that's the scene length. There won't be that many in view as the camera will be tracking the pack. Link to comment
thomalex Posted April 4, 2019 Share Posted April 4, 2019 Hello angus, The setLifeTime(float time) function is accountable for decal's life time: DecalOrthoPtr decal = DecalOrtho::create(10.0f, 2.0f, 2.0f, "decal_base"); decal->setInitTime(Game::get()->getTime()); decal->setLifeTime(10); In terms of the Editor, it is controlled in the decal node parameters: Thanks. 1 Link to comment
morbid Posted April 4, 2019 Share Posted April 4, 2019 Yes, it still can be done with ortho decals. Try setting a lifetime, minimize the radius (put decals closer to the ground) and use visibility distance for them. Thanks. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
demostenes Posted April 4, 2019 Share Posted April 4, 2019 16 hours ago, angus said: The ruts and hoofprints of the 10 horses should live for probably 2 minutes or so as that's the scene length. There won't be that many in view as the camera will be tracking the pack. Almost in any game I ve played foot decal lifetime was very short, decals were disappearing after several seconds... Link to comment
demostenes Posted April 4, 2019 Share Posted April 4, 2019 29 minutes ago, morbid said: Yes, it still can be done with ortho decals. Try setting a lifetime, minimize the radius (put decals closer to the ground) and use visibility distance for them. Thanks. Decal radius has effect on performance? Thats quite interesting and important information. Link to comment
morbid Posted April 4, 2019 Share Posted April 4, 2019 1 minute ago, demostenes said: Decal radius has effect on performance? Thats quite interesting and important information. Yep, the large radius can drop performance. It's always better to keep decals as close to the surface as possible. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts