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
2
Question by AliAzin · Jan 27, 2011 at 05:45 AM · lightmapbakebeast

Is it possible to bake a lightmap for a group of objects that have one packed uv.

Hi,

Is there any way to bake a group of objects in one uv instead of baking them separately. for example I want to combine some objects and make a uv for them in maya , then separate them and bake them with unity. But I want unity to bake them like the combined object, in one complete map. Is it possible to do.

Thanks in advance.

Comment
Add comment
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

3 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by Bart_Tamarin · Nov 12, 2013 at 02:40 PM

Actually you can do this very easily:

The lightmapping options have an "object" tab. These are the lightmapping settings of the selected object. The other tabs are the actual baking options, so don't get confused by that.

Anyway, what you do is: Select each object at a time. Go to the Lightmapping > Object settings The "scale in lightmap" sets how much space the object will take up in your lightmap. All of these numbers together should be 1...or a bit less due to padding and inefficiency in combining uv's. So scale two objects to 0.45 for example instead of 0.5 If it doesn't fit, Beast will more the next object to a new lightmap without a warning. But don't get confused by that, just lower the scaling a bit.

In the editor view check the "show resolution" box to see what you are doing. And check the baked map if it's efficiently done.

You can assign which objects go into which lightmap by setting the "Lightmap Index". Zero is the 1st map it'll bake. Just make sure that for each lightmap the total scale doesn't exceed 1.

So if you do a test with two objects and assign one to 0.3 scale, the other to 0.1 and set the same lightmap index, you'll have one single texture.

Now if you go to the Lightmapping > Bake options, you can change the lightmap resolution by tweaking the "resolution" number. 50 texels per world unity means in my case 1024x1024 texture, so 25 gives me a 512x512, and so on.

Looking at it from another perspective, if you get the amount of lightmaps you want and the resolution is too low, either change the resolution of a bigger size texture or change the scaling for the objects that you want to look better. You'll get an extra lightmap texture, but it's a very efficient way to assign more texture memory for object that are really noticable :)

If you need help just let me know!

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 sooncat · May 24, 2012 at 09:15 AM

Yes, you could. But it's too Complex:

1.bake as normal.

2.get the uv of every objects of your group;

3.montage the uv into a "whole" one(complex)

4."lock Atlas" and bake again.

then you get a "whole" lightmap.

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 11:51 AM

@sooncat. Can you please explain it step by step in unity way. how can u merge al the UVs into one from different meshes inside unity 3D !

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

lightbake one object to fix lighting bug ... 0 Answers

How to bake emissive objects into lightmap? 1 Answer

How do I prevent the Ambient Light from influencing lightmap bakes? 1 Answer

Switch Lightmaps 2 Answers

Bumpmapping and Lightmapping for Static Objects 3 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