laurenth-personal / lightmap-switching-tool

Tool that allows switching different baked lightmap sets on a unity scene at runtime.
MIT License
657 stars 88 forks source link

LightProbes not changing #9

Closed MephestoKhaan closed 6 years ago

MephestoKhaan commented 7 years ago

First of all: thanks, this is a great tool :)

Scond: I added the same lightprobe group to the Light and Dark scenes (without geometry) and disabled it in the geometry scene. For some reason my lightprobes are always black but the lightmaps are changing fine.

laurenth-personal commented 7 years ago

I believe this is due to the tetrahedralization of the lightprobes which must be stored in the lighting data asset. The connections between the lightprobes are stored in the lighting data asset and if the lighting data asset that gets loaded doesn't contain these connections they cannot be created at runtime.

MephestoKhaan commented 7 years ago

What should I do then? Use just light probes in the main scene? (does not seem to work either) I have tried so many combinations I am a bit lost now haha

laurenth-personal commented 7 years ago

what platform and what unity version are you on ? If the scene provided doesn't work then clearly there is a bug somewhere, it should work.

MephestoKhaan commented 7 years ago

Building for Android - using Unity 560f3 for Windows. Let me do a few more tries and get back to you.

Edit: NEvermind, completely "my bad" I guess! I have to Build - Play/Stop the scene without the switcher - Store for each scene.

If I dont do the Play/Stop the lightmaps work but the lightprobes doesnt :)

On 3 Jul 2017 17:13, "laurenth-unity" notifications@github.com wrote:

what platform and what unity version are you on ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/laurenth-unity/lightmap-switching-tool/issues/9#issuecomment-312685630, or mute the thread https://github.com/notifications/unsubscribe-auth/AEvwqqd5M4TFd5_IFI65TAgU0OwCnymEks5sKRMwgaJpZM4OMLUc .

laurenth-personal commented 7 years ago

Oh, good to read :) This play / stop step is very annoying... but hopefully I can improve it in the future.