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 jococo · Feb 04, 2015 at 12:24 AM · realtime-shadows

Realtime shadows on only player? Bake the rest.

Hello,

I've done a bit of googling but obviously not using the right keywords.

I'd like to have realtime shadows on my character and enemies only and have the rest of the scene with baked shadows.

Is this possible?

I'm running Unity 4.6 non Pro and my target platform is mobile.

Thanks!

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 MakeCodeNow · Feb 04, 2015 at 01:05 AM

You'll need to use the older, non-dual lightmap style lightmaps. You also need to make sure that things that case shadows but aren't the player or enemies are marked as static.

If you are targeting mobile, you may want to consider using blob/drop shadows for your enemies and possibly even player.

Comment
Add comment · Show 2 · 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 Xitech_ · Feb 04, 2015 at 09:47 AM 0
Share

Just clarify the answer provided by $$anonymous$$akeCodeNow: I always place a Quad under the enemies / players on mobile with a black transparent texture. This is fairly cheap to render. Dont forget to use mobile shaders. See the texture down below

EDIT: Ofcourse the shadow texture could be any shape. Shadow

avatar image jococo · Feb 04, 2015 at 11:16 PM 0
Share

Cool thank you both! I've been using blob shadow and the performance has been very good on mobile. I just wanted to spice up the look a bit more. What I didn't think to try was simply turning on realtime shadows after baking. It works well! I assumed I would get realtime shadows on objects already baked but that doesn't appear to be the case which is awesome! So far I have about 5 enemies and it's ok. We shall see what happens when I put my intended 30 enemies with realtime shadows.

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

20 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

Related Questions

Unity Pro Trial - after export to iOS no realtime shadow 1 Answer

Realtime shadows flickering,Real time shadows flickering 0 Answers

Unlit shader that receives shadows? 2 Answers

Realtime spot and point light shadows are asking for Unity Pro. 3 Answers

Realtime Shadow Problem On lightmapped Object 1 Answer


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