Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 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 Fallc · Mar 13, 2015 at 08:39 AM · terraintreeslightmaps

No baked shadows from trees (Terrain)

alt textHello!

I'm trying to create a lightmap for my terrain with trees on it. All settings are set to default. Terrain and lightsource (directional) are static. While objects (including the terrain it self) cast shadows as usually, all trees on the terrain do not. Also the light probes appear to be not applyed on the trees in oposite to realtime-mode.

I'm using Unity 5 and standart assets only. Any ideas?

example.jpg (102.5 kB)
Comment
Add comment · Show 1
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 rmalecki · Nov 22, 2017 at 06:36 AM 0
Share

This was finally fixed (tested and confirmed here) in the latest 2017.2 patch with the new progressive lightmapper. Two years and eight months after it was broken.

10 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by rmalecki · Sep 11, 2015 at 04:57 PM

For the time being, I have made this quick workaround: https://gist.github.com/rmalecki/5fe4092b6b739209061b

  1. Turn OFF drawing Trees & Details in the settings tab of the Terrain object

  2. Run the editor script. It creates real instances of the tree prefabs with the exact same Transforms as the internal tree instances of the Terrain. This can be a LOT of meshes!

  3. Bake the lightmap. Grab a coffee.

  4. Finally, throw away the generated geometry and turn Trees & Details drawing back ON in the Terrain settings.

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
2

Answer by mBakr · Apr 24, 2017 at 02:11 PM

And a year later, in v5.6, this remains broken...

I've been testing the new distance shadowmaps and the work beautifully! But, seriously, we still can't bake shadows with terrain instanced trees?

Dear Unity, please stop developing new features and finish those on which we depend. Thx.

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 fffMalzbier · Mar 13, 2015 at 08:42 AM

Currently in Unity5 you can not bake the shadow of Terrain trees onto the light-map. Its a currently missing feature that Unity Technologies is trying to make it available as fast as possible.

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 getyour411 · Sep 12, 2015 at 09:58 PM

I can't speak to the validity of the Mar 13 answer, but as of 5.2 I placed some terrain trees, let my GI jobs run and I have shadows.

Comment
Add comment · Show 4 · 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 jpv1234 · Sep 14, 2015 at 11:28 PM 1
Share

I'm using 5.2 and still not getting any shadows. How did you managed to get them @getyour411

avatar image getyour411 jpv1234 · Sep 14, 2015 at 11:34 PM 0
Share

@jpv1234 Please don't create a comment or follow-up as an Answer. I converted this one for you but mostly just reject those out of the mod queue as otherwise mods would spend far too much time converting.

$$anonymous$$ake sure your directional light has some hard or soft shadows selected If you have prevously baked lightmap, might need to rebake.

avatar image gecko getyour411 · Sep 30, 2015 at 07:13 PM 0
Share

I'm not getting baked shadows in 5.2 either. I've got Soft Shadows set on the Directional Light (which is static). But no shadows after building lightmaps manually.

Show more comments
avatar image
0

Answer by angeliapayne · Apr 14, 2016 at 04:42 PM

Bump on this issue. I cannot get shadows from trees to bake on ANY terrain in Unity 5.3.2p3. Has anyone been successful in Unity 5???

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 rmalecki · Apr 14, 2016 at 04:46 PM 0
Share

Unfortunately, there is no trick to it. It's not supported any more since they moved from Beast to Enlighten.

avatar image angeliapayne rmalecki · Apr 14, 2016 at 06:27 PM 0
Share

Why wouldn't they want you to bake shadows from vegetation on the terrain? It seems like any other alternative is too costly particularly with large terrains??

  • 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

13 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

Related Questions

Terrain Tree Billboard have bright outline against dark background 6 Answers

Terrain system trees slightly sharpen and blur depending on camera rotation 2 Answers

Terrain trees aren't solid,Terrain Trees 0 Answers

Why does my tree script not work 2 Answers

Terrain trees with particle fx? 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