Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Dufrenite · Jun 29, 2016 at 05:15 PM · sizelightmappingglobal illuminationbaked light

How to reduce Lighting Data asset size?

Hi, we got a problem using Unity GI system.

After baking lighting data we got a huge size of resulting build. It is almost 300 mb for one small level.

According to this topic it contains all the data to generate lightmaps at runtime: http://forum.unity3d.com/threads/is-lightmapsnapshot-asset-in-unity-5-the-same-as-unity-4s-lightprobes-asset.279969/

But we don't need this functionality. We created 5.7 mb 2048x2048 lightmap and it is enough for our purposes.

How to tell unity not to put all this data to the final build?

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
1

Answer by Carling_Technologies · Aug 16, 2016 at 06:00 PM

@Dufrenite Find the asset and delete it, that's what I did for my game after figuring out what took so much data. After deleting it I found it did absolutely nothing different to the scene. Maybe export a backup of it before deleting though. - it saved me over 280mb for a small scene.

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
1

Answer by 13245768 · Sep 25, 2016 at 09:02 PM

I'll tell you the correct answer!

  1. Cancel Lighting> Precomputed Realtime GI 2.Build LightingMap

My LightingData.asset From 91.8 MB to 657 KB

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
1

Answer by Remster · Jan 16, 2017 at 07:45 AM

Be advised that this LightingData.asset file also contains calculated Light Probe values: Deleting it will disable all light probes. Each lightprobe seems to take quite a bit of space: I tried to evaluate and I would like it if Unity could answer this: My scene has 1496 light probes. The resulting files inside the APK (built for Android) are: bin/Data/GI/level1/ce/ce2a73e858292abd7fd7f7296861e77b.pos = 23940 bytes bin/Data/GI/level1/ce/ce2a73e858292abd7fd7f7296861e77b.rpc.neo = 1535000 bytes

I'm assuming the 'pos' file is the x,y,z coordinate of all probes, which should take 12 bytes per probe. By looking at the file size, apparently it takes 4 bytes per probe + a 4 byte header. There is an unknown 4 bytes per probe stored here. What is it?

Regarding the data itself (.rpc.neo), it seems to be taking approximately 1026 bytes of data per probe, which is gigantic. From what I understand according to the documentation, it should require only 27 coefficients, so 108 bytes per probe. Can Unity explain what else is being stored in here? Note: Precomputed realtimeGI is disabled, and I am on Unity 5.5.0p2

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

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to prevent Lightingdata.asset from getting packed with APK builds 0 Answers

Calculating lightmap texel per unit size 0 Answers

how to exclude an object in baked GI but included in realtime GI? 0 Answers

Trouble with light mapping on duplicate objects 0 Answers

Irregular shadows with baked GI on tiled surface 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