Visualising 4D objects in OpenGL(在 OpenGL 中可视化 4D 对象)
问题描述
您是否知道有任何积极开发的 C/C++ 库可以将一堆(最好是大量)4D 顶点投影回 3D 空间,这些顶点相对于某个任意的4D 相机"投影矩阵和输出我可以将常规 3D 顶点输入 OpenGL 以进行硬件加速可视化?我还需要能够在 4D 空间中执行标准转换(平移、沿所有 4 个轴旋转和统一缩放).
以下是一个糟糕的答案(因为我绝不是该主题的专家),但我决定快速浏览一下并提出本论文:http://steve.hollasch.net/thesis/#chapter4>
将 4D 对象投影到 3 空间,正如您所期望的,是 3D 到 2 空间的投影的简单扩展,上面的论文演示了从 4D 到 2 空间的不同类型的投影.代码示例是用 C 语言编写的,所以应该很容易理解.
Do you know of any, actively developed, C/C++ library that can take a bunch (preferably a large amount) of 4D vertices, project them back into 3D space with respect to some arbitrary "4D camera" projection matrix and output regular 3D vertices that I could feed into OpenGL for hardware accelerated visualisation? I'd also need the ability to perform standard transformations in 4D space (translation, rotation along all 4 axes and uniform scaling).
The following is a poor answer (since I am by no means an expert on the topic), but I decided to take a quick peek around and came up with this thesis: http://steve.hollasch.net/thesis/#chapter4
Projection of a 4D object into 3-space is, as you would expect, a simple extension on the projection of 3D into 2-space, and the above thesis demonstrates different kinds of projection from 4D to 2-space. The code samples are in C, so it should be easy to follow.
这篇关于在 OpenGL 中可视化 4D 对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 OpenGL 中可视化 4D 对象
- STL 中有 dereference_iterator 吗? 2022-01-01
- 从python回调到c++的选项 2022-11-16
- 静态初始化顺序失败 2022-01-01
- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01
- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01
- Stroustrup 的 Simple_window.h 2022-01-01
- 如何对自定义类的向量使用std::find()? 2022-11-07
- C++ 协变模板 2021-01-01
- 近似搜索的工作原理 2021-01-01
- 使用/clr 时出现 LNK2022 错误 2022-01-01