English 中文(简体)
我如何在3D空间实施“Look At”行为
原标题:How can I implement a "Look At" behavior in 3D space

我正试图实施“Look At”行为,使环绕的飞机总是面对照相机。

我迄今所看到的情况是,我知道飞机本应拥有的正常状态,我知道,飞机围绕其当地的Z轴心进行轮换永远是零。 我认为,在列出缺失的轮换值(X、Y)方面,这是一种非常微不足道的行动,但迄今为止我没有发现任何东西。

简而言之: 我如何利用飞机的正常值和一次轮调值来获取飞机的定向信息?

或者,如果任何人的解决办法优于使用正常办法,那将是受欢迎的。

感谢。

最佳回答

想这样做。 你们在当地协调系统中有两个病媒,在你的照相机地方协调系统中有两个病媒。 你们想要一个转变矩阵,这些矩阵将改造这些协调系统,使病媒能够跟上。

它分两个步骤。 我不敢肯定,但我认为,你重新努力使飞机正常轮换,以便与眼睛相适应。 如果你使这两个病媒实现正常化,你就可以从它们的交叉产品中找到一种轮值,并从其直肠产品中选择轮值。 利用这一工具建立一个变革矩阵。

现在,你想再次这样做。 我也不肯定,但我认为,你要说,你想要使飞机的当地Z轴与照相传的媒介保持一致。 因此,通过这一转变矩阵来改变Z轴心,并再次计算一种将显示为照相传病媒的轮换。 利用这一工具创建第二个转变矩阵。

现在,把两个矩阵相乘,以便有一个单一的矩阵,从飞机的当地协调系统转变为照相机。

你们会记得什么?

问题回答

暂无回答




相关问题
Bounding ellipse

I have been given an assignement for a graphics module, one part of which is to calculate the minimum bounding ellipse of a set of arbitrary shapes. The ellipse doesn t have to be axis aligned. This ...

Line segment in a triangle

How can we check if a line segment falls partially or fully inside a triangle? Cheers.

Line Segments from a point

I have a point p, and 2 line segments in a 2D plane. Point p is a location of view from where camera is looking towards the line segments. I want to check if line segment 1 is partially or fully ...

Creating a surface of triangles from a set of 2D points

I have a set of points and I need to convert the set to (non-overlapping) triangles (or a big polygon if equivalent)... The application: I have a list of locations (latitude,longitude) from a country,...

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 ...

Delete holes in a Polygon

I have a polygon determined by an Array of Points. This polygon is crossing itself making some holes in the polygon itself. My questions is: How can I omit this holes and just get the exterior ...

Finding cycle of 3 nodes ( or triangles) in a graph

I am working with complex networks. I want to find group of nodes which forms a cycle of 3 nodes (or triangles) in a given graph. As my graph contains about million edges, using a simple iterative ...

热门标签