フィルターのクリア

Simulink animation rendering: custom view point

2 ビュー (過去 30 日間)
Chris
Chris 2011 年 9 月 25 日
I have a simple building with a hallway and a custom viewpoint created. Currently when I try moving down the hallway in my simulation, the walls on either side of the viewpoint will disappear and I am able to see into the rooms through the walls. When I hit the straighten up button at the end of the simulation the walls reappear and I can no longer see into the the rooms.
How do I fix this graphical error so that when running the simulation the walls do not disappear?

回答 (2 件)

Sathish Kumar
Sathish Kumar 2012 年 5 月 1 日
The rendering problem is due to the direction of the normals on the surface. Initially there was proper rendering of walls because the camera is on the side where the normals are pointing the wall is visible. But from the other side of the wall the normals are on the opposite side and the wall appears invisible. This problem can be solved by creating another wall close to the current wall with the surface normals in opposite direction. Now the wall is opaque from both sides. But when the camera is positioned between the walls, the walls will still be invisible.

Jan Danek
Jan Danek 2012 年 6 月 25 日
Another reason for your behaviour can be near object clipping. If you want to assure that all objects 0.05m and farther are displayed at all times, include the NavigationInfo node in your scene, with the following values:
NavigationInfo { avatarSize [0.1, 1.6, 0.75] }
Near clipping pane will be fixed to 1/2 of the first AvatarSize element. See also:
Hope this helps,
Jan
  2 件のコメント
K E
K E 2012 年 6 月 26 日
Just curious: What kind of Simulink applications would VMRL be useful for? A vehicle driving within a building?
K E
K E 2012 年 6 月 27 日
To answer that question, a google search (VMRL Simulink site:www.youtube.com) pulls up animations like quadrotors navigating a room, a gantry crane, etc.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSimulation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by