• 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
Question by oliver-jones · Oct 09, 2013 at 08:40 AM · resolutionlightmapuv

Lightmapping - Increase Resolution

I'm trying to increase the overall resolution in my scene for my lightmapping, but it seems to make no difference after about a resolution of 3?

I have 'Show Resolution' checked in my editor, so I can see the checkered res on all my models, I really want my shadows to be as detailed as possible, but increasing the res after 3 doesn't effect my lightmaps at all.

Also, I can see that some models have a higher res than others: (this is on a res of 3)

alt text

Surely this means that the shadow size will be inconsistent? How would I get all the res balanced and increase it to the max?

Thanks

screen shot 2013-10-09 at 09.38.17.png (189.0 kB)
Comment
Bovine

People who like this

1 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 oneslyfox · Apr 07, 2014 at 01:29 PM 0
Share

Did you ever find a solution to this? I'm having the exact same problem.

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Hoeloe · Apr 07, 2014 at 01:44 PM

I believe you can do this by opening the Lightmapping tab (Window>Lightmapping), then selecting an object with a MeshRenderer (or similar) attached, and changing the value in the "Scale In Lightmap" option. You can't increase lightmap resolution arbitrarily, though, since most graphics cards can't support textures larger than 4096x4096, and some can't support textures larger than 2048x2048, so you'll have to scale the resolution down if you want it all to match. In practice, you don't have to keep it incredibly consistent, especially if the shadows on different objects aren't touching, or the shadow is small. The size of the shadows will be unaffected, it's only the resolution, so unless there is a huge resolution difference, it won't be noticeable to the naked eye.

Increasing the lightmap texture resolution (to 4096x4096), then scaling down the relative resolutions using the Scale In Lightmap option, is the best way to achieve high quality, consistent shadows across your scene. Unity, by default, caps the lightmap atlas size to 1024x1024, but you can get around this.

I hope this helped, if not the original poster (since this is a few months old), anyone else having the same issue.

Comment
oneslyfox

People who like this

1 Show 5 · 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 oneslyfox · Apr 07, 2014 at 06:59 PM 0
Share

Thanks! Your response was half of the solution; I didn't realize you could control the resolution scale for individual objects. In the end the resolution was still "blocky" and would not increase anymore. So, I chopped up the problem mesh into 4 different sections and then adjusted the scale as well.

avatar image Hoeloe · Apr 07, 2014 at 07:35 PM 0
Share

Did you try the script in the link that was in my post? It allows you to increase the resolution by 16x, since Unity caps it at 1024x1024 by default.

avatar image oneslyfox · Apr 07, 2014 at 07:50 PM 0
Share

No, but I kept it for future use. In my particular case, it wasn't required--and I'm developing for mobile, so I want to keep the file size as low as possible. It looks nice now though.

avatar image Hoeloe · Apr 07, 2014 at 08:05 PM 0
Share

Fair enough on the filesize thing. It's worth keeping in mind that both are solutions to the same problem, though.

avatar image oneslyfox · Apr 07, 2014 at 08:20 PM 0
Share

Yeah, technically, it works as a full solution; I just didn't need to go that far. "Half of the solution" wasn't really the best wording there.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

17 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 avatar image avatar image avatar image avatar image

Related Questions

Lightmap UV problem with external version control 1 Answer

Object odd light problem with mesh? 1 Answer

How Apply Different UV maps in Lightmaped Diffuse 1 Answer

Is automatic lightmap atlasing broken in Unity 4.0? 4 Answers

Assigning UV Map to model at runtime 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