I am almost done with my model viewer, I will sell this as a javascript project, WordPress plugin, and Woocommerce plugin, I am happy with the result but I am unsure about the performance, on my computer and phone it runs perfectly.
I would appreciate it if some of the experienced developers here can look into the performance maybe I am missing something Easy 3D Model Viewer
ā¦ so thatās about 1.5 GB of VRAM required to render these textures, iPhones start crashing somewhere in the vicinity of 500 MB. Probably best to keep the textures below 2048px, or smaller if you can maintain the quality you need.
When a modal dialog is opened by clicking on a marker, and that dialog contains much content causing a scrollbar to appear, using the scroll-wheel will continue scrolling on the page itself, rather than inside the dialog.
I would suggest ābreaking outā the modal to be floating above the page (fullscreen, fixed position), rather than inside the model viewer itself. This gets particularly frustrating when using a much smaller model viewer, since there is nearly no room for the dialog to render properly.
I think you misunderstand. The dialog itself should pop out of the model viewer container. I mean the big white box that says āDetailed Info Windowā with the red close-button. That is your code, not from YouTube
first time i see this flag, super useful! do you think gltf-transform could in the future print out performance hints like that in the console? similar to build tools that tell you a bundle exceeds a margin.
Iām not sure how to choose a threshold for warnings, as I donāt want to make assumptions about whether the model is āthe whole sceneā or just one prop, or something not meant for realtime at all. And donāt want to make the CLI so noisy that itās worse than nothing (see: npm audit).
Maybe some kind of summary statistics would be the way to go? Similar to: