Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Regarding the Limitations of the Web Server View

#1
I really like RoboDK and the Web Server View feature.

The Web Server View normally displays in my browser without any issues.
However, when I import large 3D models (such as STL files) of approximately 40 MB or more into RoboDK, I experience the following problems:

The browser remains stuck on the loading screen.
The screen refresh rate in the browser becomes extremely slow.

The behavior described above was almost the same on both high‑spec and low‑spec PCs.
Are there any precautions or limitations I should be aware of when using the Web Server View?
#2
Could you share your 3D models? We may be able to help you improve the speed using the Web Server view.

For example, one thing you can try is to simplify the mesh using the Simplify Mesh Add-in:
https://robodk.com/addin/com.robodk.app.simplifymesh

You can also try simplifying the model by using this feature:
  1. Select Tools-Options
  2. Select the Display tab
  3. Click on Simplify Object ...
You can find more optimization tips here:
https://robodk.com/doc/en/General.html#FastFPS

Also, have you considered using RoboDK for Web instead of the Web Server View feature? RoboDK for Web should be much faster. On the other hand, you won't be able to mirror your setup in your desktop. In any case, running on a browser won't be as fast as running on a desktop app.
#3
Thank you for your reply!

I'm thinking of using a web server view to embed a 3D simulation in my own desktop application.

Regarding the 3D model, the attached file doesn't display as is.
As you advised, I was able to display it by simplifying the mesh of the attached file.

So, is simplification necessary to make the most of a web server view?

Do you have any recommendations on how much simplification is best?

The file was too large, so I received an error during upload. I'm sorry, but I've saved it in zip format.

(RoboDK for Web also looks interesting! I might use it for a different purpose.)


Attached Files
.zip   trailer_wheelrdk.zip (Size: 19.81 MB / Downloads: 13)
#4
Simplification can help have a more fluid display. Mostly when using parts with complex meshes. The mesh you shared has a lot of detail that may not be needed.

If you simplify it using the Simplify Mesh Addin you can reduce the mesh to speed up the visualization. For example, I used the default setting to reduce the mesh by 80%. You'll notice the difference in detail if you zoom in in some rounded areas.

In your example, this means we simplified from 970k triangles to 195k triangles. You should notice better performance when using the web server view. You can try with the RoboDK file attached.

Also, you could also have a mixture between RoboDK and RoboDK for Web using the API and a custom integration. Contact us by email if you would like more information.


Attached Files
.rdk   Part-simplification.rdk (Size: 14.32 MB / Downloads: 12)
#5
The file you provided was helpful in determining how much to simplify.
The simplified model displayed smoothly in the web server view.

Thank you very much!
#6
Thank you for your feedback! For optimal display on the web server view, make sure to delete the hidden item I shared (your original 3D model) and any other objects you don't need to display. You'll see that loading the 3D view on the browser works much faster.

For example, loading your simplified model I shared with my last RDK project file (removing the original object) can be loaded on a new Web Server View window in less than 1 second.
  




Users browsing this thread:
1 Guest(s)