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 对象
基础教程推荐
- 我有静态或动态 boost 库吗? 2021-01-01
- 如何检查GTK+3.0中的小部件类型? 2022-11-30
- 如何在 C++ 中初始化静态常量成员? 2022-01-01
- 常量变量在标题中不起作用 2021-01-01
- C++结构和函数声明。为什么它不能编译? 2022-11-07
- 在 C++ 中计算滚动/移动平均值 2021-01-01
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01
- 如何通过C程序打开命令提示符Cmd 2022-12-09
- 这个宏可以转换成函数吗? 2022-01-01
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
