meshcat-dev / meshcat

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

Feature: command to query image from client #85

Closed ManifoldFR closed 3 years ago

ManifoldFR commented 3 years ago

This PR adds a command capture_image to query the viewer for a PNG image of the rendered view. This returns a JSON object

{
  "type": "img",
  "data": "data:image/png;base64,XXXXX"
}