werner.poetzelberger Posted April 29, 2020 Share Posted April 29, 2020 (edited) I created a Lamp Asset holding a Mesh for the Lamp, and the Light, as a Node Reference. Now I duplicated it 30 times. If I want to turn on&off all lights at the same time, what do I do? I thought, enabling the Light in one of the NodeReferences would swith all the lights. But itdoesnt. Best,w, Edited April 29, 2020 by werner.poetzelberger Link to comment
morbid Posted April 29, 2020 Share Posted April 29, 2020 Hi, what SDK version is this? If you modify one instance of a NodeReference these changes should be applied to all other automatically. In your case switching light off and applying it should switch off all the lights kept in similar nodes. 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
werner.poetzelberger Posted April 29, 2020 Author Share Posted April 29, 2020 (edited) Yes, thought so as well. I do this via the Tracker, that I switch the lights on at a certain time of day. When editing the light manually by -> edit xxxxx -> apply, it works. Via the tracker, only the light I selected will be affected. Is this some different? SDK 2.10.0.0 Edited April 29, 2020 by werner.poetzelberger Link to comment
morbid Posted April 29, 2020 Share Posted April 29, 2020 Tracker uses node id value which is not stable for a node reference. It will not work, unfortunately. If you want tracker to do this you can scatter lights with randomizer tool and then group them. Tracker will work with this group. 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
werner.poetzelberger Posted April 29, 2020 Author Share Posted April 29, 2020 Thx. good to know. Yes I will group it and enable/disable groups. cheers! w. Link to comment
demostenes Posted April 30, 2020 Share Posted April 30, 2020 23 hours ago, werner.poetzelberger said: Thx. good to know. Yes I will group it and enable/disable groups. cheers! w. Actually this is what we did too. We took lights out of lamp nodes and put all as node references in some dummy node, one for each city. And tracker is enabling/disabling this. Link to comment
werner.poetzelberger Posted April 30, 2020 Author Share Posted April 30, 2020 2 hours ago, demostenes said: Actually this is what we did too. We took lights out of lamp nodes and put all as node references in some dummy node, one for each city. And tracker is enabling/disabling this. .... But to get this right .... A light isnt cheaper if it is placed in a node reference? Link to comment
demostenes Posted April 30, 2020 Share Posted April 30, 2020 (edited) 4 hours ago, werner.poetzelberger said: .... But to get this right .... A light isnt cheaper if it is placed in a node reference? I dont understand? Having light together with mesh in one noderef is more comfortable, but there is probably no simple way how to turn it on/off. So all lights went out to separate dummy node. Each light is node reference for better mass tuning (many instances of several types). I think there is no reason why light shoud be faster while in noderef. Edited April 30, 2020 by demostenes Link to comment
werner.poetzelberger Posted May 5, 2020 Author Share Posted May 5, 2020 Yes, thank you. Thats what I thought. ;) Link to comment
Recommended Posts