meshcat-dev / meshcat

Remotely-controllable 3D viewer, built on top of three.js
MIT License
256 stars 48 forks source link

minor tweaks to support headless testing #88

Closed RussTedrake closed 3 years ago

RussTedrake commented 3 years ago

1) Allows one to optionally pass a renderer to the Viewer constructor 2) Count the number of messages received 3) Use window.CCapture instead of CCapture, as recommended in https://stackoverflow.com/questions/48864251/how-to-run-ccapture-by-server-side-node-js (and it still works in the normal browser)

RussTedrake commented 3 years ago

Related to https://github.com/RobotLocomotion/drake/issues/13038.

rdeits commented 3 years ago

By the way, I stalled on updating the meshcat submodule in meshcat-python to master over in https://github.com/rdeits/meshcat-python/pull/94 because it seems that a recent update to Three.js itself caused some flickering when running an animation that involved simultaneously changing the camera zoom and some other property of the scene. I think I'll probably just declare that to be a known issue and go ahead with the upgrade, since I don't want to block new features forever (and since animating camera zoom is not exactly a critical feature anyway).