Scatterer
Scatterer copied to clipboard
[Feature Request] Be able to hook/render Sunflare on different cameras
Hi. I have a KSP mods which allows to render different cameras at the same time https://youtu.be/Y_JzKbNrnvw?t=306
The problem that I have is that I don't have a way to render all the Scatterer beautiful things in the new cameras. I was wondering if it would be possible for Scatteter to provide an API to inject more cameras apart from the main one. Like an array of NearCameras and ScaledSpace cameras, and camera transforms to apply all the effects etc to those cameras as well?
Thanks in advance
I will fix it so that it works automatically in the next version.
Awesome Thanks!
Just a quick question, how far apart do you expect the different camera views to be? Can one camera be in orbit and the other on the launchpad? Or are they usually very close together like in the video?
So I'd say that 500 km distance could be a reasonable limit (at > 500 km from the floating origin the shaking is too bad)
I haven't tried this yet but I think maybe switching the sunflare code to use Camera.current instead of the ScaledSpace camera might work? Just guessing really.
@JonnyOThan there is that, then the hooks have to be generalized to other cameras, extinction calculation should be moved from skynode to sunflare class and done before every camera renders, then make sure to avoid rendering twice when in opengl (2 local cameras)
Hi @LGhassen Do you have any updates regarding this topic?
Not yet, sorry
no problem! just wondering ;)