Three.js Screenshot

前端 未结 3 1288
梦如初夏
梦如初夏 2021-01-18 04:52

I need to make screenshot of website. I tried using html2canvas and all and it\'s working. But problem is i\'m using THREE.WebGLRenderer and THREE.CSS3DRenderer (for html in

3条回答
  •  爱一瞬间的悲伤
    2021-01-18 05:11

    Try understanding the code of this chrome extension Screen Capture. You can find the code in ~/.config/chromium/Default/Extensions/ after installing it.

    It uses chrome.tabs.captureVisibleTab. Refer the documentation. As it's an API provided by chrome browser to interact with its tabs it works only on Google Chrome.

提交回复
热议问题