Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
3
Question by Nieder · May 13, 2015 at 07:45 AM · androidcamera script

Problem using effects on Google Cardboard camera

Hey there! I'm building a mobile Unity project using the default Google Cardboard assets package, and I want to use some image effects on it.

I noticed that every time I run the application, it instantiates this script on right and left cameras: "RadialUndistortionEffect" I understand that this is automatic and necessary for adjusting the image for the device lens.

Here's the problem: when also I add any image effect script (Grayscale, for instance), the "Radial Undistortion Effect" doesn't seem to work on any Android device, though it did work on Unity. It seems like the Grayscale script is somehow overwriting the RadialUndistortionEffect.

Any idea how to solve this? Every help is welcome, I'm a noob when it comes to programming (just learning C#).

Thanks a lot!

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 dolims · Jun 01, 2015 at 08:16 PM 0
Share

Which version of Unity are you using and is it Free / Personal, or Pro?

4 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by fiete-groth · Jun 02, 2015 at 11:20 AM

To make the image effects work, make sure you disable "Direct Render" at the StereoController script attached to the main camera.

Since the image effects are worked of in queue, it is important to keep the right order for execution:

The RadialUndistortionEffect script always needs to be the last in line. So, in the inspector, add (or move up) your image effect script (i.e. grayscale) before these scripts on both cameras (left and right).

Comment
Add comment · Show 3 · 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 dolims · Jun 02, 2015 at 11:12 PM 3
Share

$$anonymous$$inor correction: If you use image effects, disable the "Direct Render" option. ($$anonymous$$any image effects don't work right unless the entire screen is being drawn, but in stere, you only draw one half at a time. Turning off Direct Render causes the camera to render to a temporary texture with a fullscreen viewport, and then that is blitted to the framebuffer.)

avatar image fiete-groth · Jun 03, 2015 at 09:09 AM 1
Share

Oh yeah, I totally mixed that up. I changed the post text, thx dolims!

avatar image ScottGelber · Aug 03, 2016 at 05:16 PM 0
Share

Perhaps i'm mistaken, or perhaps you're talking about a previous SD$$anonymous$$ (i see this post is from 2015) but in the current SD$$anonymous$$ the cameras are only generated upon entering play mode & disappear when you stop... any ideas on a new workflow?

avatar image
0

Answer by Nieder · Jun 03, 2015 at 02:05 PM

It works. Thanks a lot. Btw, I'm using the free version.

Comment
Add comment · 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
0

Answer by Guhanesh · Apr 27, 2016 at 06:10 PM

adding image effect scripts to post render of stereo render fixes the issue for me.

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 ScottGelber · Jul 26, 2016 at 07:36 PM 0
Share

@guhanesh post-render is only available to me in play mode... which does not save settings.

how are you able to make these changes?

avatar image
0

Answer by freedom667 · Jan 25, 2017 at 07:31 PM

I checked false the directRender but it didn't work

Comment
Add comment · 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

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

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do i put my android game in my cel phone? 3 Answers

Useing Bluetooth to link Unity and Smartphone? 1 Answer

Android app: app icon appears in game screen; please help!!! 0 Answers

Opening Unity in Android View [Picture and Code] 0 Answers

What is wrong with my GUI setup? 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