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 zyzyx · Nov 17, 2012 at 04:30 PM · prefabslightmappingbeastlightprobes

Possible to save baked Lightprobes/maps in Prefab?

I have serveral room as Prefabs and I want to arrange them randomly at runtime. My question is:

Is it somehow possible to bake each room individually (probes and maps), save it as prefab and instatiate it later at runtime?

I got it to work with the lightmaps. But only when all rooms are in the scene at baking time. The baked lightprobes however stay where they are when I move/delete individual rooms.

EDIT: Found an old forum post which fomulates the problem much better than I do: Thread

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by hvilela · Nov 18, 2012 at 03:07 AM

Yes. The easiest way is using light manager.

Comment
Add comment · Show 2 · 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 zyzyx · Nov 18, 2012 at 12:06 PM 0
Share

This would solve the individual lightmap problem which I have a workaround for.

All Lightmanager does with light probes is it makes the coefficient values editable in the Inspector but not their position.

avatar image liszto · Nov 18, 2012 at 12:10 PM 1
Share

As I said in my answer below :). I don't think you can move the lightprobes position :)

avatar image
1

Answer by liszto · Nov 18, 2012 at 11:51 AM

I already do this cause LightManager cost a lot for me (student é_è)

What I done is to baked all my level in independent scene because I instantiate each level in the same scene so the common lightmap process cannot work.

When I bake my lightmap they are create in the scene folder (as the common process does) then when the lightmap bake is over. I move my lightmaps files in "Resources" folder in the appropriate folder.

If you need some informations I can answer to you and share my editor scritp with you if you really need it. ;).

But move lightprobs at runtime I don't think it can work ( and I don't know if Lightmap Manager does it) I test the free version and I don't see it.

It is not over cause I've got lot of work but if someone want test it and make me some return on it that can be really cool. And I can add more novelties. :)

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 zyzyx · Nov 18, 2012 at 12:16 PM 0
Share

Yeah I've come up with a similar solution for the lightmaps. I too use a "baking scene". In unity 4 you can now bake selected without loosing the already baked maps and the prefabs keep their indices. So I can add more rooms to the baking scene and bake them individually.

avatar image liszto · Nov 18, 2012 at 12:21 PM 0
Share

But your lightprobes problem is probably unsolvable :( (For their position)

avatar image zyzyx · Nov 19, 2012 at 02:26 PM 0
Share

Yeah, there goes the idea of dynamic content creation (Nav$$anonymous$$esh has the same problem). This is very unfortunate :(

avatar image stevesan · Nov 14, 2013 at 12:46 AM 1
Share

I read somewhere else where the person got around the light probes issue by changing the Anchor Override property for all light-probing objects :)

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

12 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

Related Questions

Scene Lighting prefabs and dynamic loading 1 Answer

Unity beast lightmap baking - bake some new objects without losing existing lightmaps from previously baked result 1 Answer

Lightmapping a closed indoor area? 2 Answers

Editing Lightmaps At Edit Time 1 Answer

Keep getting error message after lightmapping 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