Amerio.Stephane Posted January 14, 2019 Share Posted January 14, 2019 Hello With the 2.5d generated buildings, the roof texture is taken from a material. I wanted to use the same aerial imagery as the ground, so I checked "terrain lerp" for the roof material. But this leads to strange parallax artefacts (as if the roof was in fact see-through). Is it possible to use the aerial imagery without this artefact? Link to comment
morbid Posted January 15, 2019 Share Posted January 15, 2019 Hello Stephane, I did a basic test and everything seems to be fine. As you probably already know terrain lerp projects terrain texture on the surface and nothing more. Could you show a video or a screenshot with these parallax artifacts? Thank you. 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
Amerio.Stephane Posted January 15, 2019 Author Share Posted January 15, 2019 Here is a small capture showing the parallax effect. I just enabled the "Terrain Lerp" on the default roof texture. Link to comment
morbid Posted January 15, 2019 Share Posted January 15, 2019 Please, check Deffered Buffers state, it should be enabled for roof material. If it's not the issue - could you provide a test scene? 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
Amerio.Stephane Posted January 15, 2019 Author Share Posted January 15, 2019 Deffered Buffers is checked. If I uncheck it, the roof simply disappears completetely. Could it be a driver issue? I'll try to update it. Link to comment
morbid Posted January 16, 2019 Share Posted January 16, 2019 It looked a little bit like on your gif with deffered buffers off. Can you repro this with simple mesh in a clean world? Which GPU you're using? Quadro? If nothing helps we'd like to see a test scene. Thank you. 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
Amerio.Stephane Posted January 16, 2019 Author Share Posted January 16, 2019 (edited) I uploaded a project on your ftp, also showing the grass issue (test_landscape_grass_terrain_lerp.zip) GC is a GTX1080 Note: with deffered buffers off, you can actually see the roof is not drawn at all because you can see shadows on the ground. While in this case, you can see the roof is actually hidding the ground (there is no shadows on the roof) Edited January 16, 2019 by Amerio.Stephane Link to comment
morbid Posted January 16, 2019 Share Posted January 16, 2019 Thanks, I already checked this. I'm sorry for missing a crucial point here - these artefacts are caused by geodetic pivot. Terrain lerp works only in flat mode (without geodetic feature). May I ask you how you're using geodetic pivot in your projects? Considering geodetics specificity sometimes it better to stay with flat terrain. The good news is that we're working on a better realisation for curved terrains (you probably saw planet preview in the devlog). 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
Amerio.Stephane Posted January 16, 2019 Author Share Posted January 16, 2019 As we are using an IG, all entities and ground objects are positionned with geodetic coords, so we need the GeodeticPivot node. This one is generated by Landscape editor only in Curved mode. Link to comment
morbid Posted January 16, 2019 Share Posted January 16, 2019 Yes, I understand this. From 2.7.3 geodetic node is created in flat mode as well. You can unparent your landscape and disable geodetic node (just keep it in the hierarchy). Using mapFlatToGeodetic and mapGeodeticToFlat functions will help you to get correct coordinates with flat terrain: https://developer.unigine.com/en/docs/2.7.3/api/library/geodetics/class.geodeticpivot 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
Amerio.Stephane Posted January 16, 2019 Author Share Posted January 16, 2019 In flat mode, it does indeed work. I really hope this feature will work in the upcoming (and very promising!) new planet mode. I plan to use it also for cliff. Thank you. Link to comment
Recommended Posts