Always face camera with View Observer - Would this work?
-
I was thinking of a way to create a custom "always face camera" script and this is the idea.
Would this work or am I missing something about how a ViewObserver works?
If it did work, would it be terribly slow?Idea:
Run script to set "Face camera" attribute for the selected component(s).
Use a ViewObserver that is called when the camera is moved.
Get the active camera position.
The ViewObserver "tells" components with the "Face camera" attribute to rotate towards the new camera position. -
@pixero said:
I was thinking of a way to create a custom "always face camera" script and this is the idea.
Are you willing to simulate in Ruby the 'Always Face camera' of Sketchup. Then what effect do you wish to get exactly?
-
If it was possible I thought it would be good to have that functionality in a form that might work better with third party render engines and also the possibility to enhance it with some new functionality.
-
There's an issue in Twilight Render where you can designate the scene to render, but if SketchUp is not set to that scene, face-me is not right. (I think that's how it works).
-
A major drawback is that you'd be modifying the model entities with every change of the camera.
Currently changing the camera position or even the active scene does not set the modified? flag.
Advertisement