Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 Kent J · Jan 12, 2011 at 11:44 PM · shadowslightmapshadowlightmapping

Baked + Real-Time Shadows

I have an outdoor scene with a single directional light and am using forward rendering and using Unity Pro.

I was planning on using baked shadows for the terrain, tree, structures, etc and using real-time shadows for the characters.

What is the best way to achieve this?

Comment
Add comment · 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 yoyo · Jan 13, 2011 at 03:35 AM 0
Share

Retagged with lightmap(ping) and singular shadow. Both pairs of tags are running about neck and neck in popularity.

avatar image paverson · Jun 19, 2014 at 02:39 AM 0
Share

I've got a somewhat similar problem, using deferred lighting (dual lightmaps). For some reason, my shadows aren't smoothly transitioning between my near and far maps. It basically goes from no shadows to hard shadows that pop right in. I've also had trouble with figuring out if the lightmaps are actually assigned to the right index (does anyone know which index they should be on, for a terrain?).

6 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by yoyo · Jan 13, 2011 at 03:32 AM

Um, what's the politest way to say rtfm? :-)

Read these first, try some stuff -- if it all works, awesome, come back and answer your question so we can all benefit from your new-found knowledge ... if it doesn't, not to worry, come back with specific questions. Good luck!

http://unity3d.com/support/documentation/Manual/Lightmapping.html http://unity3d.com/support/documentation/Manual/Shadows.html http://unity3d.com/support/resources/tutorials/lightmapping-in-maya

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 Turbo · Feb 18, 2011 at 05:37 AM 3
Share

Um, what's the politest way to say you are a jerk? :-)

avatar image yoyo · Feb 18, 2011 at 03:33 PM 0
Share

Well, that wasn't my intent, just wanted to point out the available resources. Sorry if it came across the wrong way.

avatar image
2

Answer by Emihaa · Feb 28, 2013 at 01:37 PM

If you wanna use realtime shadows together with beast lightning you need light that lights aren't going to bake. So choose the light that you want to make the realtime shadows and make sure it is realtime only in lightmapping options. And make sure your object is not static and that the lights shadow type is either soft or hard and strength is enough to make shadows visible. There should be more information about this matter. http://docs.unity3d.com/Documentation/Manual/LightmappingInDepth.html

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
1

Answer by bobjwatts · May 13, 2014 at 01:28 AM

So after many moons of trying to figure this out, I got it to work.

In the lightmapping settings, click the "forward rendering" checkbox. I guess the shortcoming of this is that other lights won't cast shadows, but if you are happy with the one dynamic directional light and the rest baked lights with no shadows then it's a solution. It's works for my project.

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 Turbo · Feb 18, 2011 at 05:45 AM

The short answer is, as far I know, you can't. In my testing, as soon as you lightmap geometry using Beast, realtime shadows no longer work. I would love for someone to prove me wrong.

However, you can use dual lightmaps, which will smoothly blend between your lightmaps and your realtime shadows. This is nice, but often times your lightmapped shadows will look much better, or at the very least, different, from your realtime shadows.

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 theropodx · Feb 25, 2012 at 03:05 AM

"In my testing, as soon as you lightmap geometry using Beast, realtime shadows no longer work. I would love for someone to prove me wrong."

OMG, was going crazy with this one but think I've got the solution...I baked a lightmap on my terrain and then couldn't enable realtime shadows again after that--even if I disabled lightmapping. Saw your comment and tried the same with another object--yep, after baking a lightmap, I couldn't ever get a realtime shadow from that object again. UNTIL...

I selected my object that lost realtime shadows ability, went under Lightmapping > Object > Atlas, and changed the Lightmap Index to "255", matching the other objects I hadn't lightmapped...

It works! Real-time shadows are back.

Note you must have "Static" enabled for the object in question to make this change, but then you can un-check Static again afterwards.

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 bobjwatts · May 13, 2014 at 01:12 AM 0
Share

Unfortunately this actually removed your baked lightmaps, so it's not a solution.

avatar image Ponasity · Jul 29, 2015 at 04:46 AM 0
Share

I had this same issue, after deciding to go back to dynamic lighting I couldnt get the shadows back. This fixed it.

  • 1
  • 2
  • ›

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

6 People are following this question.

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

Related Questions

Directional light shadows when lightmapping 0 Answers

Real time shadows in a lightmapped scene (Android) 2 Answers

Shadows look bad or not show at all 0 Answers

Shadows not being baked on static objects 0 Answers

How do I get objects to cast shadows on each other using BEAST? 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