English 中文(简体)
在3D空间储存方向的快速和有效方式?
原标题:Fast and efficient way to store orientation in 3D space?

我最初在3D空间储存了一种物体的原产地和方向,使用代表物体来源、前向和方向的3个病媒。

适用于对模型概览矩阵的正确转变,是使用这三种病媒的组合式转变矩阵。

翻译是三维的,但是,通过构建正确的轮流矩阵(取决于轮流的角和轴心)和将这些矩阵应用到这3个病媒中来进行轮换。

使用这一方法处理大量物体和轮用/制式矩阵堆肥造成工作瓶颈。

我不禁要问,是否有更明智、更高效的方式储存方向?

最佳回答

我最初在3D空间储存了一种物体的原产地和方向,使用代表物体来源、前向和方向的3个病媒。

换言之: 页: 1 矩阵表的开放式计算器的使用只是一样的,虽然是4×4,但唯一的区别是,要素4,4总是1,要素0.3,4全部是0,第1栏是前向产,通常称为right/em>。

这实际上是代表位于3D空间的物体的最简明和最直接获得的途径。 您可以采用任何一种转变方式,然后采用单一矩阵的多重复。

另一种方法是使用quaternion与一种被抵消的病媒。 但是,如果你希望你的物体能够转换成一个矩阵(或者你可以把许多翻译/轮换的配对连接起来,进行转变,但使用矩阵实际上造成较少的间接费用)。

问题回答

Other than memory, what s stopping you from storing the whole 4x4 affine matrix?

更有甚者,《国际减灾战略》规定,如果阵列实现正常,则底层的行文为usually[0、0、1],那么你只需要储存上三个行。

Quaternions transformations may be faster then Matrix on current GPGPUs where the access for global memory is much slower then to local memory. According to this tables you compute twice much but need to fetch less then half of memory.

投放有作为地方记忆储存的垂直穿透镜,这里唯一合理的是使用矩阵。





相关问题
Maths in LaTex table of contents

I am trying to add a table of contents for my LaTex document. The issue I am having is that this line: subsubsection{The expectation of (X^2)} Causes an error in the file that contains the ...

Math Overflow -- Handling Large Numbers

I am having a problem handling large numbers. I need to calculate the log of a very large number. The number is the product of a series of numbers. For example: log(2x3x66x435x444) though my actual ...

Radial plotting algorithm

I have to write an algorithm in AS3.0 that plots the location of points radially. I d like to input a radius and an angle at which the point should be placed. Obviously I remember from geometry ...

Subsequent weighted algorithm for comparison

I have two rows of numbers ... 1) 2 2 1 0 0 1 2) 1.5 1 0 .5 1 2 Each column is compared to each other. Lower values are better. For example Column 1, row 2 s value (1.5) is more ...

热门标签