- Home /
Camera rendering to two places at once
Hi guys. I'd like to know if this thing is possible. I would like my main camera to render to two places at once: the screen and a render texture, at the same time. Something like MRT(I think that's what it's called). Basicly I want the camera to render normal stuff to the screen and render the depth buffer to a texture that can be further used in the next frame. I'm trying to get the motion blur to work and I need to compare two depth textures in order to generate a valocity map that would help me blur certain portions of the screen. If I'm not clear please don't hesitate to ask.
Cheers,
Kamil
If you have Unity Pro, you can use the Image Effects to achieve motion blur, among other things: http://unity3d.com/support/documentation/Components/comp-ImageEffects.html
Answer by sven1994 · Sep 12, 2011 at 06:45 PM
As far as I know this is not possible. You could place a second camera at the same position and render it to a texture.
I was afraid that this is the case. Is it not possible to call upon camera.render() multiple times in a single update() or once upon update() and once at lateupdate()? The quality of the motion blur available to PRO users is far from good, I'm going for a Pixel $$anonymous$$otion Blur described in GPU gems 3 and extended in DX Sample Browsers under DX3D9.
If anyone finds a way to do it please let me know. I do realise it can be outsourced but I'd rather do it myself.
Your answer
Follow this Question
Related Questions
Editor Camera Perspective 1 Answer
Main Camera - Bad depth perception? 1 Answer
What is the best way to render a depth map to Texture2D? 0 Answers
Can't get depth shaders to work. 0 Answers