Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by kamil.slawicki · Sep 12, 2011 at 12:37 PM · cameradepth

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

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image mcarriere · Sep 12, 2011 at 01:17 PM 0
Share

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image kamil.slawicki · Sep 12, 2011 at 08:36 PM 0
Share

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

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Can I render a single render but only with the objects that are not occluded by other objects (on other layers)? 1 Answer

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges