Embedding a WebGL Component

I’d like to embed the “NGL” protein viewer into a Vaadin application. The example code for standard html is shown here:
http://nglviewer.org/ngl/api/manual/usage/embedding.html

I’ve been trying to follow this example that uses three.js, but can’t quite get it to work.
https://github.com/Artur-/threejs-vaadin

Any ideas would be appreciated.

  • Mike

Hi,

I made a small example of NGL integration in a Vaadin project.
https://github.com/jcgueriaud1/ngl-demo

I hope it can help.

This is great! Thank you so much Jean-Christophe!