Quote:
Hi Rhuarc,
I've been looking at the code and I have a question about how it's setup in C-Script: You render a secondary view (GlowCamera) into the bitmap of a view entity. This view entity is visible in the primary view (camera). The view entity has the blur shader applied so it will apear blurred in the primary view. Did I get it right so far? My question is: won't the primary view ALSO render all objects in the scene? How should the camera know that only the view entity will be visible? If it also renders the whole scene, that would explain the massive framerate drop. You could point the camera to the sky (so nothing is visible in the camera) but then it would still have to do frustum culling and draw all the pixels of the skycube AND do the blur shader..
Actually, both views need to be rendered fully.
The BlurCamera renders the entire scene to a texture, that of the screen quad. Then, Camera is rendered with the screen quad overlaying the entire scene with transparency- this makes a nice blending result that makes the bloom.
-Rhuarc
|