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
4
Question by ron3fp · Sep 08, 2010 at 05:57 AM · shaderlightmappinguvbakebeast

U3: Beast Lightmapping + Nature / Soft Occlusion Shader

Hi all,

I used to bake my lightmaps for my environment within a 3D modelling app and apply them within my Unity project via a basic Lightmap shader (Diffuse + Lightmap). Now I stumpled upon the integrated Beast lightmapping in Unity which would serve me better as I like to manage all my objects within Unity.

Problem now is:

I have trees which consists of 2 materials / textures which I have defined as having "Nature/Soft Occlusion Bark" and "Nature/Soft Occlusion Leaves". My floor is having a normal diffuse shader.

Floor as well as trees are marked as "static".

I will then select my directional light within the scene and open the lightmapping window and press on "Bake" which would generate lightmaps for the full scene.

Once the process of baking is finished, I will have a nice shadow on my floor, generated by the static trees, however the trees have disappeared. Further investigation reveals that the objects are still there, but the texture is transparent.

If I change the shader of the trees to anything other than Nature/Soft Occlusion the textures are visible again.

Is this a bug with the shaders in U3 or am I missing something during this process. To add, I also played around with the "Generate Lightmap UVs" during model import but it does not seem to make any difference.

Thanks for any help on this one.

Kind regards, Ron.

Comment
Add comment · Show 4
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 ron3fp · Sep 09, 2010 at 02:08 PM 0
Share

This problem is really driving me crazy :)

I've tried the builtin tree shaders from the Unity 3 beta with the same effect. Also trees generated by the new generator with the Optimized Bark and Leaf materials "dissappear" from the scene once I perform the lightmapping.

During my testing I deleted the generated LightmapFar-n.exr which belonged to the bark and leaves shaders and the textures (trees) were correctly shown again.

I'm already really confused because of this behaviour. Anyone experienced something similar with the Unity 3 Lightmapping?

Any response highly appreciated, thanks!

avatar image Tom Bennett · Nov 05, 2010 at 06:49 PM 0
Share

I've been having the exact same issue on a project I'm working on, and unfortunately haven't been able to find a solution either. Have you gotten any further with figuring it out?

avatar image ron3fp · Nov 06, 2010 at 03:19 PM 0
Share

Hi $$anonymous$$, I didn't further look into it. What I did was perform the Beast lightmap generation, take the lightmaps and applied them manually where I needed them. I left the tree shaders as they are, so no lightmapping on them. I don't know if there is a way by now, I didn't spend to much time to continue working on this topic. I will get back to it soon I think, so let me know if you find out an easier workaround.

avatar image Vicas · May 13, 2014 at 01:09 PM 0
Share

Same problem here. Still no solutions?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by DocSWAB · Nov 08, 2010 at 09:33 PM

What I've seen is that if you have a manually placed tree (not in a terrain) that uses the unity 2.x AO shaders, you can mark it static, with lightmap resolution of 0 in the lightmapping pane. (It sounds like you did the first thing but not the second).

Then when you bake, the tree shadows will bake ONTO the other objects, but won't have lightmaps baked for them (AO shaders can't be lightmapped.)

Then uncheck static on those trees to have the realtime AO lighting be correct at runtime.

Unfortunately right now the static property is not exposed to scripting in the Editor class, so this is a manual operation.

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 Drew · Nov 09, 2010 at 07:54 PM 0
Share

Is there a way to use different shaders in place of the AO shaders on for the bark and leaves in order to be able to use light mapping with them?

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

1 Person is following this question.

avatar image

Related Questions

some objects in scene bake success but standard shader turn off lightmap on unity5.3.2 and Unity 5.4.0b23 (64-bit) 0 Answers

where is Unity's shader handeling lightmapping? 1 Answer

Beast Lightmapping issue 1 Answer

Lightmapping, Beast, mental ray, vray, baking : what all these stuff mean ? 2 Answers

Problems with Lightmapping 2 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