Open Clockwork-Muse opened 3 years ago
In GLTF, it's possible to have "duplicate" nodes that are re-used, such as multiple objects re-using the same mesh data. This includes lights; it's possible for multiple nodes to reference the same light entry:
node
"extensions" : { "KHR_lights_punctual" : { "lights" : [ { "color" : [ 1, 1, 1 ], "intensity" : 10, "spot" : { "innerConeAngle" : 0.3337942263919169, "outerConeAngle" : 0.39269909262657166 }, "type" : "spot", "name" : "Spot" } ] } }, "nodes" : [ { "extensions" : { "KHR_lights_punctual" : { "light" : 0 } }, "name" : "Spot_Orientation", "rotation" : [ -0.7071067690849304, 0, 0, 0.7071067690849304 ] }, // .... later { "extensions" : { "KHR_lights_punctual" : { "light" : 0 } }, "name" : "Spot.001_Orientation", "rotation" : [ -0.7071067690849304, 0, 0, 0.7071067690849304 ] }, ]
This is done in blender similarly to how it handles duplicate mesh references:
Doing this, however, disables the lights entirely, for some reason. For a simple scene it generates: instead of the expected:
simple repro. Note that I'm not entirely sure whether this belongs here, in simplepbr, or inside panda itself...
repro.zip
In GLTF, it's possible to have "duplicate" nodes that are re-used, such as multiple objects re-using the same mesh data. This includes lights; it's possible for multiple
node
s to reference the same light entry:This is done in blender similarly to how it handles duplicate mesh references:
Doing this, however, disables the lights entirely, for some reason. For a simple scene it generates: instead of the expected:
simple repro. Note that I'm not entirely sure whether this belongs here, in simplepbr, or inside panda itself...
repro.zip