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
0
Question by Hamesh81 · Feb 09, 2014 at 03:27 PM · shadowprojectorvolumeareadark

How can I make a dark area/volume of fake shadow?

alt text alt text

This is the kind of effect I'm going for. The above was created with a projector but unfortunately projectors cause too many draw calls so I'm trying to find a more optimized approach. I would like to create a controllable volume or area of darkness similar to what a projector does or what a negative/black light would do. I have been searching online and on the asset store but the only solutions I've found were decals or flat planes positioned under the player. These are no good because I need the player (the red ball) to be able to hide within these shadowy areas and so a decal or plane on the ground just doesn't cut it. These areas would not have to be affected by lights, they would be faked shadows which would give much more control than a shadow caster for example since it would not be effected by the light direction.

Any suggestions how could I do this in Unity Free?

shadow1.png (70.7 kB)
shadow2.png (54.3 kB)
Comment
Add comment
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

1 Reply

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

Answer by Hoeloe · Feb 09, 2014 at 04:22 PM

In Unity Free, projectors are pretty much your only option. The way this is usually done is with volume rendering or real-time shadows. Since Unity Free does not have access to either of these, the best thing you can do is to use a projector.

If you don't mind restricting your project to DX11, though, you may be able to write your own projector code using Compute Shaders, which might speed up the drawing.

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 Hamesh81 · Feb 10, 2014 at 01:39 AM 0
Share

Yeah the problem is that I'm planning to use a few of these to simulate dark areas under individual lights (just light models not actual Unity lights) in a hallway when a specific light is destroyed. I was going to use spot lights and then turn each off but for performance reasons I decided against using so many lights. Now it seems I've got the same draw call issue with creating the shadows.

Would it be possible to do this with a surface or frag shader, by for example changing the albedo or emissivity so that it would reflect darkness ins$$anonymous$$d of light? Then one could apply the shader to a sphere or capsule to create the dark "volume" effect. I've tried playing around with shaders for this for a while, before trying the projector, but I couldn't get it to work that way either.

avatar image Hamesh81 · Feb 10, 2014 at 11:21 AM 0
Share

I think this could be an alternative.

avatar image Hoeloe · Feb 10, 2014 at 08:54 PM 0
Share

I'm sceptical of that. Volume rendering usually requires 3D textures, which aren't supported by Unity Free.

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

19 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

Related Questions

Blob shadow changes transparency 2 Answers

Do blob shadow projectors work on iPhone? 1 Answer

projector causing flicker 1 Answer

Projector (Blob Shadow) does not work properly 1 Answer

Why standard projector don't work currectly? 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