Why is my VRML Animation slow and jerky when using Simulink 3D Animation?
5 views (last 30 days)
Show older comments
MathWorks Support Team
on 16 Jun 2014
Edited: MathWorks Support Team
on 25 Jun 2020
Why is my VRML Animation slow and jerky when using Simulink 3D Animation?
Accepted Answer
MathWorks Support Team
on 25 Jun 2020
Edited: MathWorks Support Team
on 25 Jun 2020
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 Comments
More Answers (1)
timo
on 1 Apr 2016
I had also issues with slow 3d. This is fixed for NVIDIA cards in 2016a
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!