Why is my VRML Animation slow and jerky when using Simulink 3D Animation?
3 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2014-6-16
编辑: MathWorks Support Team
2020-6-25
Why is my VRML Animation slow and jerky when using Simulink 3D Animation?
采纳的回答
MathWorks Support Team
2020-6-25
编辑:MathWorks Support Team
2020-6-25
There are several reasons that can cause the slow and jerky behavior in a VRML world created using Simulink 3D Animation.
1. Check the sample time for the VR Sink block. It should be explicitly set, not inherited (-1).
2. Ensure that you are using a graphics card with hardware OpenGL acceleration. Check the output of entering the following MATLAB Command to see if you are using a supported graphics card with OpenGL Acceleration.
>> opengl info
3. Check the size of the VRML world.
CAD models are usually parametric models that use proprietary object rendering methods for use in various contexts. During VRML model export, the internal parametric model of the assembly is tessellated. In this process, the model surface is divided into triangular meshes, represented in VRML by the "IndexedFaceSet" node. During tesselation, it is important to set the granularity of the mesh so that it is suitable for further use. ~10000 triangles is the limit for smooth performance, but, this will be dependent on the model complexity which is driving the VRML sink. The ">> vr_octavia" is a good benchmark to check the graphics capability on the customer's system.
4. If the Simulink model and the VRML file are both demanding significant computational resources, consider client-server capabilities of Simulink 3D Animation. They will run the model on one computer, but, visualize the animation from a different computer by connecting over TCP/IP and using a remote viewer. For more examples of this feature, refer to the following page:
0 个评论
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!