Jeff_D Posted October 17, 2020 Share Posted October 17, 2020 Hello, Is there a way to detect when a node/object is rendered or visible in the camera frustum? I tried scouring the API but nothing pops up on the mentioned issue. Link to comment
silent Posted October 18, 2020 Share Posted October 18, 2020 Hi Jeff, Maybe Object::isVisibleCamera() will help in your case? 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
Jeff_D Posted October 18, 2020 Author Share Posted October 18, 2020 (edited) Hi Silent, I am looking for events to tap into in order to not hinder performance, something like these two callbacks in unity private void OnBecameVisible() private void OnBecameInvisible() anything to avoid constantly checking for in the loop Edited October 18, 2020 by Jeff_D Link to comment
silent Posted October 19, 2020 Share Posted October 19, 2020 Hi Jeff, isVisibleCamera() check is pretty lightweight, so you if your use-case is to get some information about finite number of nodes (let's say hundreds) - you can use this method. We are thinking of adding additional callback that will be fired when object is being rendered on screen (but more likely it would not be included in 2.13). 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
Jeff_D Posted October 19, 2020 Author Share Posted October 19, 2020 Sounds good Thank you Link to comment
Recommended Posts