kevinw / GodotVisionExample

Example template for GodotVision

Home Page:https://godot.vision

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lighting in Godot Project does not carry into visionOS

dpentecost opened this issue · comments

Objects that look well-lit in Godot are very dull, dark in visionOS. Changes to lighting intensity make no difference in visionOS

In the simulator, or on the device? There's a bug in the simulator where you have to change the lighting environment once for it to take effect.

If on the device... I'm not sure! You can't add lights to scenes in RealityKit, it uses whatever light is in your environment. There is an emissive property on RK materials, so maybe that could work.

@adamwatters "You can't add lights to scenes in RealityKit" I'm not 100% sure this is true, I do remember seeing ImageBasedLightComponent being used in Hello World, but yeah not familiar with the way these work yet!

So you are right about the bug - changing scene and then back makes it pick up the room lighting. But I have added a sphere with an earth texture and nothing I do improves the lighting on it. Tried emission - works in Godot but makes no difference in visionOS. I guess I will look at the plain shaders you used and see if I can improve it.
Screenshot 2024-02-12 at 11 27 38 AM
Screenshot 2024-02-12 at 11 26 58 AM

@dpentecost - sorry for the delay - can you send the globe texture you're trying to use as an attachment here? I'll poke around and see if I can get a solution for you!

Will do a little later today. Thanks.

I first used a 4KX4K texture but it was too large to upload here. I just tried this 2KX2K texture with the same result. Emission has no effect. Good luck!

M_earth_baseColor2K2K

@dpentecost I just bumped the GodotVision commit to include a fix for emission textures. Let me know if it works for you!

4a41bf7

Yes, it works, thanks. I'll be working through some other things, will let you know.