I would like to render each frame of a Babylon scene multiple times with different outputs to multiple images. For example, for each frame I would like to render:
Colour image
Depth
Each item unlit in a distinct colour
Each skeleton
I’d like to render each of these images separately at a specified resolution to an image file that I could download. Additionally, I would like to be in control of the time step so the animations and physics update as though 1/60th of a second has passed between the 4 screenshots being taken regardless of how long it actually takes.
I realise this is not possible out of the box, but was hoping someone could point me towards some documentation or Babylon code files that could help?
so you can, on each render, before your RTT renders, change the scene state to however you want and after the rtt render restore it : )
and you can do this at a resolution you specify!
you can even have a separate camera for each different RTT by changing the rtt.activeCamera
you can get the depth in your chosen rtt like (say if you want it from a different res or cam)
Hi @Heaust-ops - thanks for the information, its really helpful. The first link to the playground doesn’t seem to be to what you describe. Do you have the correct link?
Thanks