Simulink Box - Viewpoint Direction to VRML

  • Follow


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
0
Reply Gamini 1/25/2010 1:13:04 PM

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@gmail.com> wrote in message <hjk5d0$pgq$1@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
0
Reply Arkadiy 1/26/2010 4:32:04 PM


1 Replies
444 Views

(page loaded in 0.024 seconds)

Similiar Articles:











7/24/2012 10:28:31 PM


Reply: