xml3d / xml3d.js

The WebGL/JS implementation of XML3D
Other
75 stars 25 forks source link

Error when changing CSS transform on light elements #163

Closed csvurt closed 8 years ago

csvurt commented 8 years ago

Changing the CSS transform of a <light> element through the style attribute throws an error RenderLight::setLocalMatrix not implemented. This error is not thrown during the initial scene construction, so either the CSS transform is completely ignored there or it's implemented through a different code path. We should make sure it's consistent either way.

Also make sure we have tests that cover changing CSS transforms for all transformable elements.

Arsakes commented 8 years ago

The same happens using transform=#id on light (after initalization). Is there any other way to dynamically position lights?

EDIT: OK,I've wrapped light in <group> element and give it transfromation. Works.