From: Gamini on
Hello Everybody;

I have a question about "Simulink Box - Viewpoint Direction to VRML". Could somebody provide the information about the usage of this Simulink Box.

Thanks;

Gamini
From: Arkadiy Turevskiy on
Take a look at a Simulink 3D Animation demo vr_octavia. In this demo there is a viewpoint, called "Simulink Controlled Viewpoint". The corresponding viewpoint object in the VRML file is called FlyingCamera.

If you look at the Simulink model vr_octavia, you will see that we calculate the rotation for the FlyingCamera by taking the difference between the fixed camera position and the actual car position (3 x 1 vector) and putting the difference through the Viewpoint Direction to VRML Orientaion block to get the rotation vector (4x1 vector).

So this block converts the direction in 3D space to VRML rtoation input (axis-angle representation).

In this particular demo it makes the camera to follow the car.

Hope this helps.

Arkadiy

"Gamini " <gaminib(a)gmail.com> wrote in message <hjk5d0$pgq$1(a)fred.mathworks.com>...
> Hello Everybody;
>
> I have a question about "Simulink Box - Viewpoint Direction to VRML". Could somebody provide the information about the usage of this Simulink Box.
>
> Thanks;
>
> Gamini