我正在尝试自学 3D 图形,但无法可视化所涉及的 3D 矢量。
有没有什么好的软件可以用来可视化 3D 矢量?
例如,现在我正在学习相机变换,如果我可以轻松地绘制右/上/看/眼向量,那就太好了。
我尝试过 Grapher.app 和 gnuplot,但是在 Grapher.app 中输入点非常困难,而且 gnuplot 似乎无法锁定纵横比。
I'm trying to teach myself about 3D graphics, but I'm having trouble visualizing the 3D vectors involved.
Is there any good software that I can use to visualize 3D vectors?
For example, right now I'm learning about camera transformations, and it would be nice if I could easily plot the right/up/look/eye vectors.
I've tried Grapher.app and gnuplot, but it's very difficult to enter points into Grapher.app and gnuplot doesn't seem to be able to lock the aspect ratio.
发布评论
评论(2)
Visual Python 是一个超级简单的 3D 可视化库。
例如,要显示球体和箭头:
此窗口现在还具有所有正常的鼠标交互性,例如变焦和相机(即视角)旋转。
VPython 也很容易制作动画。例如,以下命令将旋转箭头:
Visual Python is a super easy library for 3D visualization.
For example, to show a sphere and arrow:
This window now also has all of the normal mouse interactivity, such as zooming and camera (i.e. viewing angle) rotation.
VPython is also easy to animate. For example, the following will rotate the arrow:
我不知道这是否比 Grapher.app 或 gnuplot 更容易,但您可以编写自己的 3D 图形程序来绘制向量。
这是一个在 OpenGL 中绘制 X 的示例, Y 和 Z 轴向量。
更新: 这是一个 Java 小程序,专门致力于帮助您可视化相机变换中的向量。请注意安装说明:您必须安装 Java 3D。
同一个站点有许多组件,例如轴,您可以使用它来设置一个简单的小程序,仅显示您想要的矢量。
I don't know if this would be easier than Grapher.app or gnuplot, but you could write your own 3D graphics program that just plots the vectors.
Here's an example in OpenGL that draws the X, Y, and Z axis vectors.
Update: Here's a Java applet specifically focused on helping you visualize the vectors in camera transformations. Note the installation instructions: you have to install Java 3D.
The same site has many components, such as axes, that you can use to set up a simple applet showing just the vectors you want.