qwsxzaq Posted May 2, 2018 Posted May 2, 2018 I have some questions about the Unigine. I am used getHeight function of ObjectTerrain. But it makes some delay when executing the function. What should I do to settle this issue of delay? I have made a code likes a next row. -> Code : float h = _ter->getHeight(x, y)_ter->setHeight(x, y, h - 2.5f) Please refer to the following video, if you want to get more information about the problem. -> Youtube link : https://youtu.be/gQ_EdR_d6xg
silent Posted May 3, 2018 Posted May 3, 2018 You are modifying in runtime terrain heights (not sure how often do you call that code), so there might be some issues related with blocking the rendering thread. If you need to create an effect of terrain modification you can try to use decals with normals (it should in theory give more stable performance). Could you please send us a small test scene with that behavior? We are working on improved ObjectTerrainGlobal API to allow faster modifications right now and your example will be very helpful to understand what else we can improve here. Changes are planned to 2.8 SDK release. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
qwsxzaq Posted May 3, 2018 Author Posted May 3, 2018 I will send a email, if you let me know your email address.
silent Posted May 3, 2018 Posted May 3, 2018 Sure, just write to engine-support@unigine.com. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts