1. 首页
  2. three.js

three.js在没有渲染的情况下移动摄影机后,如何获得2d位置?

three.jsnfunction getPosition(){camera.position.x += 1;renderer.render( scene , = 0; i < 9999; i++){getPosition()}n如果没有renderer.render( scene , camera );,我如何获得2d?谢谢。n在给vector.project( camera );打电话之前,先试试camera.updateMatrixWorld()n How can I get 2d position after move camera without Render?n

three.js在没有渲染的情况下移动摄影机后,如何获得2d位置? 为WP2原创文章,链接:https://www.wp2.cn/three-js/three-js%e5%9c%a8%e6%b2%a1%e6%9c%89%e6%b8%b2%e6%9f%93%e7%9a%84%e6%83%85%e5%86%b5%e4%b8%8b%e7%a7%bb%e5%8a%a8%e6%91%84%e5%bd%b1%e6%9c%ba%e5%90%8e%ef%bc%8c%e5%a6%82%e4%bd%95%e8%8e%b7%e5%be%972d%e4%bd%8d/