Hi,
I’m working on a world to explore various visual enhancing techniques.
Lens Flare is one of the very cool things that I wanna try.
However, I struggle to implement this to VRChat. I tried many hours, but still don’t know how to do it correctly. Someone please help me!
What I observed so far:
–I can see the lens flare within the editor, and through the camera game view
–But I cannot see the lens flare when I run it
–after adding post processing, post processing is working, but the lens flare is still not
I suspect something went wrong so that the flare layer component on reference camera is not applied to in-game player camera, but I don’t know how to modify player camera other than the reference camera.
Or maybe there’s some other reason to this
Or maybe I missed some steps
Or is it a bug?
I cannot find videos about lens flare specifically for VRChat.
If anyone know how to play with lens flare in VRChat, please help me!
Update:
I did some experiment and confirmed lens flare is working for independent camera in VRChat. The player still cannot see sun flare.
I can suspect:
–the player camera does not receive the flare layer component from the reference camera
–or player camera indeed receive the flare layer component, but disabled it somehow
What I did:
– I add a camera facing the sun flare, and display its view on a quad. The exact same camera is put as reference camera in VRCWorld component
Halo of the sun is displayed in player view, so the Sun is already inside player view.
Independent camera succeeds in displaying sun flare at runtime in VRChat, so sun flare is indeed supported by VRChat.
Hence, something must be wrong with player’s camera setting.
The reference camera is the exact same one as the camera for the quad. Hence, the reference camera has the correct setting.
Hence, I can suspect:
–the player camera did not receive the flare layer component from the reference camera
–or player camera indeed received the flare layer component, but disabled it somehow
Update:
I confirmed the player camera did not receive the flare layer component.
– I notice a player component is generated within Unity during the client simulation. So I can actually check the player object and check the camera. Indeed, there’s no flare layer added to it.
I’m using the client simulation right now, so is it a bug for the simulation, or a bug for the VRC?
– Build and test on game via VRC sdk. And confirmed it’s not working the VRC client build testing
Hence, this is probably
– a bug for VRChat that forget to attach the flare layer to the player camera from reference camera
– or it’s my personal issues, my personal copy of VRC sdk got wrong somehow
– or still maybe I missed out some step to setup lens flare properly for VRChat. Is there supposed to be any steps other than setting the reference camera?
No, I don’t think there’s any option to add component at run time as this post indicates.
In addition, I also check Udon# documentatioin, and there’s no mention of camera at all.
The lens flare is indeed rarely used in VR world. But I believe this can make light source more stunning in VR, and lens flare can be a potential solution to mimic Bloom for Questies.