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
1
Question by flapyfox · Mar 17, 2012 at 06:39 PM · lightmapmaya

Making lightmaps in Unity look photoreal just like in Maya

I have a photorealistic light setup in Maya and I am transferring the scene lighting to a 32bit .EXR lightmap via MentalRay baking: -When I compare the original render (witch is the ultimate visual reference) to my rendered lightmaps, the result is 99% identical (the lightmap is plugged to the ambient slot of the lamber shader - all lights and global illumination turned off - gamma 2.2 for the rendered camera) works like a charm!

-Now in Unity I plug my 32 bit .EXR lightmap to the lightmap slot of the “lightmapped/diffuse” shader and set the texture mode to “lightmap” (“color space” is set to “linear”). Unlike Maya, the lightmap effect in Unity gives a different look then the original render. Why is that? Shouldn’t the lighmap be applied just like in Maya (where it is plugged to the ambient slot) witch is the correct way of applying the lightmap since it was identical to the original render? How can I make the lightmap in Unity have the same correct look as in the Maya?

alt text

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 Kuba · Aug 07, 2012 at 01:03 PM 0
Share

It would be much appreciated if you submitted a bug report (Help > Report a Bug) with a repro case ($$anonymous$$aya project with $$anonymous$$entalRay settings and the Unity project) and mentioned the case number in a comment below. Thanks!

It does look like an issue with gamma though.

avatar image Kuba · Aug 07, 2012 at 01:03 PM 0
Share

That said, please don't use the legacy shaders. $$anonymous$$ore info on how to use externally baked lightmaps: http://forum.unity3d.com/threads/146055-Using-externally-baked-lightmaps-in-Unity-3.5

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Groutcho · May 21, 2012 at 07:53 AM

I think that the EXR setting is different. Since the EXR format stores high dynamic light data, it may be dependent on exposure, gamma or other light parameters. It is possible that Beast and Mental Ray generate these parameters at different values.

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 sathya · Aug 07, 2012 at 12:29 PM

Try exporting lightmap as 24bit TGA. that is what i usually use when i render lightmap in 3D Max. Make sure gamma is set to 2.2

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 gherat · Oct 30, 2013 at 11:35 AM

I think it could be the default ambient light in Unity! Turn the Ambient light off in Edit -> Render Settings.. That way, when there are no lights and lightmaps, it's pitchblack in the scene like it supposed to be when there is no light. Your scene is now lit by an ambient light.

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 alejoasks · Sep 11, 2015 at 04:10 PM

I have had a similar problem with 3ds max. I had an expected result on the Frame Buffer (render window). But after I saved the image I noticed with did not save it the same way as in the Frame Buffer, as if it did not apply the gamma correction before saving.

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

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

8 People are following this question.

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

Related Questions

A node in a childnode? 1 Answer

UV maps won't import?? 1 Answer

Why Mel Scripted Animation Won't Play in Unity 1 Answer

Importing Mesh from Maya into Unity Issues 0 Answers

How does Unity apply a lightmap? 0 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