我正在尝试将 3D 立方体添加到 Kinetic JS 画布以显示 x、y、z 旋转。我发现这篇文章http://www.toncodes.net/blog/combining-three-js-and-kineticjs。我使用的是 3.8 版,当我尝试使用 Kinetic JS 的 4 版按照示例进行操作时,出现此错误,
Unable to get property 'appendChild'
任何建议,以解决它或在画布中包含 3D 立方体的更好方法。
完整的项目http://jsfiddle.net/user373721/hXw6D/1/
我找到了这个完美的例子http://html5example.net/entry/html5-canvas/html5-canvas-pre3d-rotating-cube,不幸的是它是基于 pre3d.js 的,我不知道如何与 Kinetic JS 画布集成。