playcanvas / editor

Issue tracker for the PlayCanvas Editor
https://playcanvas.com/
160 stars 28 forks source link

Incorrect GLB light import #1135

Open slimbuck opened 7 months ago

slimbuck commented 7 months ago

From https://github.com/playcanvas/editor/issues/963#issuecomment-2034850491:

There is a bug in the KHR_lights_punctual import from glTF/glb where a point light is imported with an incorrect rotation setting and the inner and outer radius values have not been converted from radians to degrees.

Rotation: It looks like a point light is imported with an additional rotation of -90 degrees on the x axis Inner/Outer Radius: These values have not been converted from radians in the glTF to the degree values required for the Editor light value.

NworbLegin commented 6 months ago

It also looks like animated rotation is also broken by 90 degrees.