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 liszto · Aug 26, 2012 at 11:44 PM · prefabscenelightmapbaking

Multiple lightmaps / 1 scene

Hi, at the moment I have a lot of questions ^ ^.

I wanted to get your opinion on a method that I intended to put in place and whether it was viable. I counted used lightmaps from different scene in the same scene.

For this, I bake my lightmaps counted so that a stage has held in one or two textures lightmaps. (I have a dozen scenes) At the time of each bake I make sure that the atlas is locked for not editing on the previous one.

The content of the scene I bake is contained in a prefab for each one.

When launching a part of my game, the player has a choice between 10 levels (and therefore 10 different scenes) when loading my prefab in the scene that only serves me to load all my levels I intended to call my lightmap(s) according to the prefab load.

Is that possible or lightmaps are associated with a single stage?

If yes, I thought bake and stored them in the Resources folder to be able to access it when I want and each wholesale store them in a folder corresponding to the name of each prefab to find them easily and dynamically load their info tilling / offset in LightmapSettings. Is that possible too?

Me what course would suit me is that the table lightmap is shared between all the scenes ^^ (but I do not think that is the case)

Otherwise latter, I bake my lightmaps in the scene where I call and not each in a different stage. Hence my scene called (level) contain all the information of my lightmaps and can be retrieved easily at each stage of loading prefab by making a link between the index of the lightmap in the atlas and current index prefab.

Here, if I was not clear, let me know. Otherwise all your comments and opinions are welcome.

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 liszto · Sep 11, 2012 at 08:46 PM 0
Share

I find a solution that can post it after when all the process gonna work :)

avatar image blackhol3_sun · Oct 10, 2012 at 05:24 AM 0
Share

If you have found the solution please add it in the answers! :)

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by liszto · Oct 10, 2012 at 06:32 AM

The solution is quite simple, Bake lightmap in an empty scene. Store them in Resources Folder. Then call them when you init your scene with the lightmapData parameter ;)

If you need more information just say it. I gonna put a higher explanation here ;)

P.S : More details are present in my question

Comment
Add comment · Show 4 · 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 blackhol3_sun · Oct 11, 2012 at 06:02 PM 0
Share

Thanks I managed to do that using a script I found smewhere around answers.unit3d.com ..

avatar image liszto · Oct 11, 2012 at 06:10 PM 0
Share

I made a script too and some editor script to manage a complete pipeline build for an entire game. I don't get it on this computer but if someone need it. I can share it probably

avatar image cadviz · Aug 14, 2013 at 03:25 PM 0
Share

Hi... Please...Can you both tell how to find the script you are talking about...?!!

avatar image blackhol3_sun · Aug 19, 2013 at 08:01 AM 0
Share

Wow the link I pasted here is not working anymore.

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

10 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

Related Questions

How to find a prefab in another scene? 1 Answer

How to restart a "prefab'd" level? ;) 0 Answers

Change scale in lightmap (Prefab property) by script 0 Answers

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

baking and lightmapping with dynamic level building 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