Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 andresp · Aug 11, 2011 at 04:40 PM · errorterrainlightmapshadowlightmapping

Lightmapping strange behaviour

Hi

I'm having some problems with Beast's lighmapping results. For example, in this case the house should be completely covered by a shadow, however it is illuminated on the shadow contours of a near tree (from terrain).

This is possibly hard to explain in words so I have included 2 images:

Wrong Lightmapping Wrong Lightmapping

View from the base of the house View from the base of the house

Do any of you know how to fix this? Thanks in advance

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 Rennat · Aug 12, 2011 at 06:17 PM 1
Share

I don't have a lot of experience with lightmapping in Unity so I'm not sure how trees and terrain factor in but based on the shape of the shadow it looks like the lightmapper uses the Tree leaf alpha to deter$$anonymous$$e the shadow shape (which it should) but then it gives full light to transparent portions of the texture.

I have no idea how to fix this but would love to tinker with it. Would you $$anonymous$$d packaging up the $$anonymous$$imum assets and scene to have this issue happen and share it?

avatar image andresp · Aug 16, 2011 at 08:51 AM 0
Share

sorry for the delay, I was not with my computer during the weekend. I agree with your analysis. I have created and exported a $$anonymous$$imum scene that has this problem. You can download it here: http://feupload.fe.up.pt/get/LAqblEWd2WWBPh1

thanks again.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by djturrican · Aug 20, 2011 at 01:57 PM

all right after fiddling around with it for around 4 hours and used up my sparetime for today, the best solution I came up with for this kindda scenario:

1.Clone/duplicate your BigTree prefab and rename it to something like BigTree_without_shadow

2.Go into the BigTree_without_shadow and disable the static box, so it wont be lightmapped

3.Go further down and disable the cast shadow boxes, for the prefab if needed also separately for the leaves and the bark.

4.This tree You will have to drag & drop one at a time into your scene those places with that kind of problem, where you dont want it to cast that funky shadow.

5.You need to delete the tree youve added through the terrain tree painter and put this one their instead and it will not cast a caustic like shadow mix in your shadow areas.

I have also taken a quick screenshot of the scene, and where to turn off the shadow props and lightmapping for that object, i modified the scene a bit too, to debug of course if their was something wrong with the terrain or similar.

Yeah I know the tree will be missing a shadow but, if you keep those areas high enough or surround by colliders so the player wont be able to go there, than their shouldn't be any problems.

Yeah Agree that it is a problem due to Beast lightmapper, but for now this is the only solution i can come up with, so why wait for extension of the beast lightmappers preferences, which will not come anytime soon.

screenshot: http://www.imagebam.com/image/15ec55145889638

alt text

Enjoy! This is the solution i will be using in my project, for now, when I run into this problem, which I havent for now.

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 andresp · Aug 20, 2011 at 02:30 PM 0
Share

thanks for your effort djturrican. That doesn't fix the problem but consists a valid alternative for anyone that, for some reason, can't remove the trees and don't want to have the shadow's artifacts mentioned above.

avatar image
0

Answer by djturrican · Aug 19, 2011 at 12:41 AM

increase your lightmapping resolution to minimum 50, looks like its below 50 on your SS

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 andresp · Aug 19, 2011 at 08:18 AM 0
Share

resolution has no effect on the occurrence of this problem. I have already tried with resolutions above 50 and the problem is still there. You can try it by yourself if you want with a simple scene like this: http://feupload.fe.up.pt/get/LAqblEWd2WWBPh1

I think it is a bug of Beast Lightmapping tool.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Light Bleeding Through Hard Edges on Shadow Casting Object 1 Answer

Shadows are not being cast on terrain using lightmapping 2 Answers

Question about "Add Light after baked" 0 Answers

Far light maps used as near light maps as well 1 Answer

Lightmapping terrain WITHOUT trees 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