question

Chethan Rp avatar image
0 Likes"
Chethan Rp asked Jeanette F commented

Unable to load CAD models in FlexSim Webservers

We were not able to load CAD models within FlexSim Web server which are working perfectly fine in FlexSim 2022 Update 1 version of FlexSim. Any info/help regarding this would be appreciated.

FlexSim 22.2.1
webserverflexsim webservercad issue
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Chethan Rp, was Ben Wilson's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Ben Wilson avatar image
0 Likes"
Ben Wilson answered Ben Wilson edited

Documentation

The content below comes from the 3D View heading under the Key Concepts section of the webserver documentation.

======

The 3D view can be configured to stream using one of two methods:

  1. Video Streaming. In this streaming mode, the 3D view is rendered on the server and the view is streamed as compressed video images to the client. This mode requires a high-end graphics configuration on the server, but minimal requirements for connected client devices.
  2. WebGL Streaming. In this streaming mode, the objects in the scene are streamed as data to the client. The 3D view is then rendered on the client device using WebGL. This mode does not require a high-end graphics configuration on the server, and it should work better with virtual machines and other server configurations that do not support hardware graphics acceleration. This mode requires using client devices and modern web browsers that support WebGL.

Starting in FlexSim 2020 Update 2, the default mode is to use WebGL Streaming. You can change this setting individually for each model on the server. To use video streaming, add a streammode node with a value of 0 to your model tree in MODEL:/Tools/serverinterface/streammode.

1663329328889.png

======

WebGL Limitations

The WebGL option is incompatible with some features, including CAD layouts. Phil has a good write-up regarding WebGL and features that are not yet implemented for it here:

Problems with the webserver - FlexSim Community

Take special note of item 3:

The DWG renderer is a custom third-party renderer that controls its own view frustum and occlusion clipping planes using deprecated OpenGL functions. Consequently, DWG files do not work with WebGL Streaming. They also don’t work with a Core Profile OpenGL Context, stereoscopic 3D, VR, or RTX Mode.

Takeaways

If you need CAD layouts or other features that are not supported in the WebGL graphics mode, your model will need to be toggled to create a video stream for the graphics.

This is done at the model level, and must be done for any model that requires video streaming rather than WebGL. See the documentation above for explanation of the "streammode" node.

Because the graphics are rendered on your webserver, your webserver must have graphics rendering hardware (as well as meet FlexSim's other system requirements).


1663329328889.png (6.1 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.