-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Asset bundle workflow #25
Comments
Hi, the lightprobes are saved in the lightmap data component which is in the master scene so this means it can only access the lighting scenarios you have built before you publish your master scene. One could turn the lighting data saved in the lightmap data component into scriptable objects so that you could save them as individual assets. Then when you add more lighting scenes you could also include the lighting data scriptable object in the asset bundle. This is something I wanted to do but it would take some time that I cannot spend right now. |
So it should just work, because LevelLightmapData component is there, with its stuff inside?
It's something that is out of my skills at the moment, but it's a good point.
I can understand, thank you for the work you've done so far |
The arrays of lightprobes are in the LevelLightmapData so the ones you have built and stored before saving the scene will be there. |
Hi, So right now you have to create lighting scenario data assets by hand in the resources folder of the project : The LoadLightingScenario method is now asking for a scene name string and not an index which makes it possible to load something that has been built separately (the scene can be built with say 2 lighting scenarios and you can add a 3rd one later in theory). Right now it's not possible to use a different lightmap resolution for the various lighting scenarios because I don't load lightmap scale and offset (it's probably doable but I haven't tried yet). In order to make this work with asset bundles one would have to change the FillDictionnary method as this one only loads whatever is in the resources folder. |
I have made some improvements to the scriptable object branch as I think this is the right way forward. |
Hi and thanks for this tool :)
I'm experiencing an issue with light probes. I follow all the instructions, BUT, I do not build the app with the scenes inside, I make asset bundles instead and download them via the internet through the app. So, in the asset bundle, I include the "master" scene only (so, not the "day" n "night" scenes). The lightmaps are correctly included, but the LightingData assets are not.
I think here's the problem with the light probes. Do you think is there some way to link these assets in the master scene?
The text was updated successfully, but these errors were encountered: