nglviewer / mdsrv

MD trajectory server
http://arose.github.io/mdsrv/
Other
36 stars 10 forks source link

Using MDsrv with ngl 2.0.0 #56

Closed MarcMDE closed 3 years ago

MarcMDE commented 3 years ago

Hello,

I am trying to use MDsrv with a custom version of ngl 2.0.0-dev.39 (related issue)

When replacing ngl.js by its newer version, it throws the following error (only if a trajectory is loaded):

Uncaught (in promise) TypeError: de.TrajectoryDatasource is undefined. (in function _loadFrameCount)

Is ngl2.0.0 compatible with MDsrv? Is there any shortcut to make it work?

ngl2.0.0 is also throwing a shader error when used with MDsrv:

gl.getProgramInfoLog Must have an compiled fragment shader attached. . THREE.WebGLShader: gl.getShaderInfoLog() fragment ERROR: 0:500: '}' : syntax error

I am testing it with md_1u19 struc and traj files.

Thank you very much, Marc

MarcMDE commented 3 years ago

Seems like NGL.DatasourceRegistry is not used in NGL 2.0.0 and it is replaced by NGL.TrajectoryDatasource