Away3D 4.x 更改投影中心

发布于 2024-12-25 01:18:07 字数 266 浏览 6 评论 0原文

如何使用 perspectiveLens 更改 Away3D 中的投影中心。

我知道可以使用标准 flash 3d 库来完成,使用:

root.transform.perspectiveProjection.projectionCenter = new Point(center.x, center.y);

但是在查看 Away3D 类时不存在这样的函数。
away3D是否通过其他方法实现了这一点?

How to alter the projection center in Away3D using a perspectiveLens.

I know it can be done with the standard flash 3d library, using:

root.transform.perspectiveProjection.projectionCenter = new Point(center.x, center.y);

But no such function exists when looking into the Away3D classes.
Does away3D achieve this by using another method?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蹲在坟头点根烟 2025-01-01 01:18:07

Object3d 或任何从它衍生的东西确实有“pivotPoint”。

但通常您只想移动相机。

camera.z = -1000;
camera.x = 500;
camera.y = 500;

// after moving the camera you'll want to re-orient towards your scene.
//for instance to look at the origin:
camera.lookAt( new Vector3D(0,0,0));

编辑:
如果您只是想旋转一个对象,请尝试 pan()、pitch() 和 roll()。

Object3d or anything that descends from it does have 'pivotPoint'.

But usually you'll just want to move your camera around.

camera.z = -1000;
camera.x = 500;
camera.y = 500;

// after moving the camera you'll want to re-orient towards your scene.
//for instance to look at the origin:
camera.lookAt( new Vector3D(0,0,0));

edit:
If you're just trying to rotate an object try pan() pitch() and roll().

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文