Jump to content

ObjectTerrain setHeight


photo

Recommended Posts

Posted

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

Posted

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:

Posted

I will send a email, if you let me know your email address.

×
×
  • Create New...