viser icon indicating copy to clipboard operation
viser copied to clipboard

Offscreen Rendering

Open yifanlu0227 opened this issue 1 year ago • 2 comments
trafficstars

Hi, thanks for your fantastic visualizer!

I wonder if I can do offscreen rendering and save the rendered images using Viser. Since we have a get_render() function in Client Handles, is it possible to hack the code for this function?

yifanlu0227 avatar Nov 22 '24 04:11 yifanlu0227

Hi @yifanlu0227! This should be possible but I haven't tried it, so I don't have any detailed technical guidance.

get_render() still requires a connected, WebGL-capable client. It should be possible to automatically launch that with a package like selenium.

brentyi avatar Nov 22 '24 09:11 brentyi

Awesome! Thanks for your rapid response and valuable advice! I will try it!

yifanlu0227 avatar Nov 22 '24 11:11 yifanlu0227