From: Wesley Smith (wesley.hoke_at_gmail.com)
Date: Sun Jan 20 2008 - 15:51:06 CST

Hi,
I've embedded VMD inside a Lua module. I have it loading plugins and
reading data files. What I'm trying to figure out right now is how to
get it to actually draw something. In the Lua script I'm reading in
data into VMD with, I am also creating an OpenGL context. What's the
simplest way to tell VMD to draw a Molecule? The file I'm loading has
4 volume representations that I want to draw with the Isosurface
technique. I can get the molid and repids as well as pointers to the
VolumetricData classes but I suspect there is a higher level interface
that passing this directly to a DrawMolItem that somehow goes through
TCL commands. Any pointers are greatly appreciated. I would do a
trace in a proper VMD app, but the build I was able to make on OSX
craps out for some reason. The build steps on OSX are IMHO incomplete
and don't seem to produce the polished binary distribution available
from the website. It would be nice if this was improved. I had to do
a lot of searching to find support libs and the FLTK resource file but
I'm still left with a half working app. Anyway, I'm more interested
in embedding VMD so it's not a big deal.

best,
wes