• 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
Question by OperationDogBird · Jul 28, 2012 at 10:16 PM · shadermobileprojector

Alternative to projector for use on mobile device

Hi, i was wondering if anyone knows of a good alternative to the built in projector for creating shadows in game. I have 8 objects that move constantly and go up and down slopes. The projection works great on desktop, but on mobile even 2 of these projectors kills the game(due to the large single textured landscape i presume).

Is there a good shader that anyone knows of that doesnt need to redraw the texture below the projection? I believe that is what causes the problem, though i may be wrong as i am no shader expert.

Any other alternatives are greatly appreciated, since the game is lacking without the shadows. Thanks in advance!

Comment
maxrevilo

People who like this

1 Show 2
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 ScroodgeM · Jul 29, 2012 at 05:30 AM 0
Share

why don't you use built-in shaders? also cause perfomance reason? it can be turned on only for objects you need.

avatar image OperationDogBird · Aug 03, 2012 at 09:00 PM 0
Share

@ScroodgeM hey, thanks for the reply. Im not sure what you mean by builtin shaders.

We are currently developing our own shadow system that will be much lighter than using projectors(lighter than even a single projector, considering our 'terrains' texture size), so i think that is the way to go.

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by ThermalFusion · Aug 03, 2012 at 11:31 PM

The problem is that projectors cover the entire meshes they hit, but as the texture is clamped, you can only see it inside the projector bounds. If you have one big mesh as your landscape each projector hitting this mesh will cause the entire mesh to be rendered again with the projector shader. Try giving the projectors a regular shader with a tiling texture and you will see how it actually works.

Perhaps try using mesh decals. Why not give http://forum.unity3d.com/threads/141792-Decal-System a go?

Comment
maxrevilo

People who like this

1 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 OperationDogBird · Aug 04, 2012 at 03:54 AM 0
Share

@ThermalFusion Wow, this looks awesome! And it takes one draw call for as many projectors as you have in a single manager, that is wicked sweet. Thanks for sharing that very much. Im going to dl it and give it a shot, if it doesnt work for our purposes we have our dynamic shadow system. As far as decals go, this is an awesome asset and i can see us using this a lot. Thanks again for the share.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

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

Projecting a square (or another shape) onto terrain 1 Answer

Cutout shader on android 1 Answer

standard shader like shadows in Mobile shader? 0 Answers

How to make Pixelstudio's skydome works on Mobile(iOS & Android)? 1 Answer

Revealing invisible objects with a projector 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