I want to instansiate rooms to my map but I can generate the lightdata in game, so the image shows the room to the left that was placed there and generated the light data pre game start and the room to the right was instaansiated with light probes and reflection probe, but how do I achive the same as the generated light data for instanciated rooms?
#Generated lightdata doesnt work in build
1 messages · Page 1 of 1 (latest)
The room on the right was instantiated after generating the light data?
Naturally it won't have lighting data
you cant generate lightdata for prefabs? the left one way generated pre runtime and basicly I want the instantiated room to have the same graphics
and you cant generate lightdata in runtime so I dont know how I can do it for instantiated objects
Lighting data is per scene, unless associated with prefabs using custom scripts which can be done for baked GI but not sure about precomputed realtime GI
Normally it's not an option
whats the best solution? I know one I can generate the lightdata for the room in anther scene and then async open the anather scene into the main scene but I cant move the room around because its static for the lighting
https://github.com/Ayfel/PrefabLightmapping/
I'm not sure if there are enough good solutions to name a "best" one, but this one is one that's apparently usable
There's also this video of a more involved solution developed for Blades, aimed at fixing discontinuity issues resulting from separately baked light setups: https://youtu.be/KbxiGH6igBk
Light probes are another problem to solve
the github things seems like the exact thing I need but when trying to use it the refrences in the inspector doesnt get filled with the data and it doesnt work because of that. Going to try to figure out how to proparly use it
Kinda hard to learn because the not that detailed descrioption and no videos
nope I cant get the guithub scrips to work. I make a prefab and ads it to its own scene and the script to the prefab generate the lighting and instansiate the prefab into anather scene and it doesnt work