editor icon indicating copy to clipboard operation
editor copied to clipboard

Incorrect GLB light import

Open slimbuck opened this issue 1 year ago • 1 comments

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.

slimbuck avatar Apr 03 '24 15:04 slimbuck

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

NworbLegin avatar May 05 '24 11:05 NworbLegin