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
0
Question by jclardie · Jan 14, 2012 at 02:48 AM · lightmapbeast

Beast - UV 2 issues.

Hey all,

So I created a custom UV2 unwrap in max because the way unity unwraps is...well, not good at best. My understanding is that you can do this and just check on the "lock atlas" button in the editor.

Problem is when i do this i get this error "Lock Atlas is enabled and lightmap indices on objects in the scene don't index into existing lightmap slots. Make sure the indices are correct and that the lightmaps array is big enough." Ive created a lightmap diffuse shader, (with an empty light map spot. because i have no lightmap yet) turned static on, generate lightmaps on and nothing.

I really dont want to rely on the terrible unwrap that is provided from beast/unity and was hoping somebody could help.

thanks, me

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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by RocketPop Games · Jan 15, 2012 at 01:38 AM

The UV set for lightmapping and the atlas layout are two separate things.

If you have provided a custom unwrap in an external DCC tool, then it will unwrap it and generate a mapping for all the faces of an object in a [0, 1] space for you for the given object(s). This has to do with how well the lighting information for a given object is mapped as evenly and free of distortion as possible across the faces.

The FBX importer in Unity can create a set of lightmapping texture coordinates for you which are in my experience not bad and can be tweaked in the "Advanced" generation options.

At bake time, the lightmapper will calculate the illumination and create one or more textures. Each of the objects that has a set of lightmapping coordinates gets an offset and a scale into a particular lightmap texture. This is the "atlas" part. So it maps each set of [0,1] lightmap UV coordinates into a subrectangle of the lightmap texture. You can see this atlas mapping information in the "Object" tab of the lightmap window. Many objects each with different UV unwrapped regions can share a given lightmap texture.

Your error is telling you you haven't created/loaded a lightmap and you don't have an atlas mapping. So the upshot here is that you HAVE to create an atlas at least once or it does not have a layout of where to place your unwrapped objects into the lightmap texture. Recapping - how the faces are unwrapped within the object are either mapped in your 3D tool or performed by the FBX importer of Unity but as far as I know, you cannot control how the lightmapper lays out where objects are placed within the lightmap. If you are actually objecting to how those objects are packed into the lightmap, then that might be a question for the people who wrote Beast :)

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Beast Lightmapping, Baking texture step ( past GI calculations) 1 Answer

How do I get objects to cast shadows on each other using BEAST? 1 Answer

Removing unused lightmaps after level unload 2 Answers

Lightmapping Single objects 0 Answers

Mobile BEAST lightmapping shader/lighting question 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