The RCWeb 3D Viewer App (app/3dviewer) is an interactive high-fidelity 3D model inspector designed around the Asymmetric Pattern. It acts as a primary 3D render-host capable of receiving external rotation pipelines from smart-controllers.


.glb binary mesh formats (e.g. an apothecary vase) utilizing THREE.GLTFLoader. Uniquely calculates precise bounding boxes spanning thousands of vertices, automatically translating the camera origin and object scale to ensure any arbitrary artist asset perfectly fits in the viewport automatically.progress.loaded to progress.total values to dynamically update a smooth DOM-based progress bar and DOM text labels while the giant 3D payload downloads asynchronously.The application is structured to decouple visual state from explicit device inputs allowing it to instantly snap between mouse-control and remote-phone proxy control seamlessly.
remoteControlActive interrupt booleans. The moment a smart-controller begins funneling data, it natively intercepts the primary render loop, disables mouse drag hooks (shellElement.classList.remove("viewerShellInteractive")), and violently hands all 3D rotation math strictly over to the new smartphone socket payload.targetQuaternion). The renderer runs a mathematically demanding currentQuaternion.slerp(targetQuaternion) calculation continuously on the vaseRoot group to achieve infinitely smooth spinning physics despite network jitter.queueSharedViewBroadcast to transmit its final camera zoom variables and model attitude out into the RCWeb mesh, theoretically allowing multiple screens to mirror exactly what the primary viewer is displaying.