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 /
This question was closed Jun 23, 2014 at 02:10 PM by meat5000 for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by musaranya · Jun 23, 2014 at 07:59 AM · mobileoutlinetoon shader

Toon shader mobile issue

Hi there, I have a weird problem, let's see is someone here has an idea of what's happening.

  • I use Unity Free (latest version).

  • I'm developing a game for Android.

  • I use the toon shader than comes with Unity by default (the Basic outline one).

  • The shader works ok, I use it everwhere and that's ok.

Problem:

  • I've added a second camera and I've properly configured it for GUI purposes.

  • It works ok, I add objects to my GUI Layer and this camera renders these objects in front of the main camera.

  • The problem comes when I add toon shaded objects to my GUI layer in order to be rendered by this camera: the toon outline is shown while playing the game from the editor but is missing when deploying and playing the game form the device

  • The rest of the toon shaded objects are shown ok, but the outline is lost in the objects that I have in the GUI layer (rendered by the GUI cam) when I play the game in the phone (while in the editor are shown correctly)

  • I can see that the toon shader is applied to these objects but they have no outline

Any advice?

many thanks!

Comment
Add comment · Show 3
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 meat5000 ♦ · Jun 23, 2014 at 08:45 AM 0
Share

And the device is?

Let me guess. Samsung S3

avatar image musaranya · Jun 23, 2014 at 10:41 AM 0
Share

it's a Huawei Ascend Y300, It's not a powerfull device but I prefer to make the tests with this so I assume that if things go ok here then there will be no problems in better phones

avatar image meat5000 ♦ · Jun 23, 2014 at 12:24 PM 1
Share

Which version of GLES does the device support? It is in the right mode?

Also, are your textures in a compression format suitable for your Adreno GFX?

1 Reply

  • Sort: 
avatar image
0
Best Answer

Answer by musaranya · Jun 23, 2014 at 01:49 PM

Hi, after tons of test and experiments (some of them senseless) I have found that the missing outline from the toon shader gets visible when I move away the object from the camera. For the GUI I use a camera that renders only a few objects placed in certain layer. These objects are pretty near from this camera and seems it does not like to the toon shader, at least in my mobile device. What has confused me is the fact that it only happens in the mobile but not in the editor. I have solved it putting these objects further from the camera and scaling them a bit.

Thanks @meat5000 for your interest :)

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 meat5000 ♦ · Jun 23, 2014 at 02:10 PM 0
Share

No problem :)

Follow this Question

Answers Answers and Comments

22 People are following this question.

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

Related Questions

Modified Toon Shader: scaled instead of projected (how to?) 0 Answers

Any good mobile shaders (pref. free) for a glowing outline effect 0 Answers

Toon Shader Outline Zoom Problem 1 Answer

Outline/Silhouette shader does not work correctly when ported to mobile. 2 Answers

3D Outline [ShaderGraph URP] 2 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