【发布时间】:2014-06-02 12:09:47
【问题描述】:
我看到了有关 Three 的 CSS3DObject 但是的演示和问题,它的文档在哪里?我真的很感兴趣,因为用 three.js 操作 css 的 3D 属性太有意义了。
注意:即使是 Google Dart 在他们自己的 Three 实现中也有 CSS3DObject 的文档。 http://threedart.github.io/three.dart/docs/three/CSS3DObject.html
【问题讨论】:
我看到了有关 Three 的 CSS3DObject 但是的演示和问题,它的文档在哪里?我真的很感兴趣,因为用 three.js 操作 css 的 3D 属性太有意义了。
注意:即使是 Google Dart 在他们自己的 Three 实现中也有 CSS3DObject 的文档。 http://threedart.github.io/three.dart/docs/three/CSS3DObject.html
【问题讨论】:
CSS3DObject 基本上扩展了Object3D 并添加了element 属性。
https://github.com/mrdoob/three.js/blob/master/examples/js/renderers/CSS3DRenderer.js#L6-L31
【讨论】:
CSS3DRenderer 是示例的一部分,而不是库,CSS3DObject 是 CSS3DRenderer 的一部分。这些示例未记录在案。
GLTFLoader 已记录在案。