rkh1206 Posted December 19, 2016 Posted December 19, 2016 Hi~! Unigine. I'm using 2.2-2 version. As for Shadow, I'd like to ask you a question. Please watch the video attached. In case of the video 'Shadow_On.mp4', I turned on Shadow of lighting. You'll know that animation is working normally. In case of 'Shadow_Off_0.mp4', I turned off Shadow of lighting. And animation is working normally. That's because the starting point of the character and the ball is within camera view. In case of 'Shadow_Off_1.mp4', I turned off Shadow of lighting. If the starting point is off the camera viewpoint, the character is invisible even though the status says the character is visible. I wonder if it's an engine bug. I'd greatly appreciate it if you'd give us full and detailed explanations for the cause of this phenomenon. Looking forward to hearing from you soon. Thanks in advance. Shadow.zip
silent Posted December 19, 2016 Posted December 19, 2016 rkh1206, This is not a bug. To update nodes that are not in a viewing frustum you need to manually call addUpdateNode() every update(): https://developer.unigine.com/en/docs/2.3.1/api/library/engine/class.world#addUpdateNode_Node_void Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
rkh1206 Posted December 19, 2016 Author Posted December 19, 2016 When the shadow is 'on', Why could i see the 'Character', although i didn't set 'addUpdateNode()'. In case of the video 'Shadow_On.mp4'
rkh1206 Posted December 19, 2016 Author Posted December 19, 2016 In case of the video 'Shadow_On.mp4'
silent Posted December 19, 2016 Posted December 19, 2016 rkh1206 When shadow map is calculated camera from the sun is pointed on a scene and your node will be updated automatically (because it's in the sun frustum). Thanks! 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