Bob, Things have certainly improved in the orientation+camera of the vrml exporrt. However, I wasn't too happy yet ;-). I am testing with 2 models, alanine and lysozyme, and the latter is still far away (zoomed out) with respect to Jmol view.
So I've tested different approaches, less dependent on the window coords and absolute values (like the 5.5*z you used) and more based on the boundbox, and now have one which looks better in my 2 models (zoom is still a bit low in the small alanine). The key seems to be to do rotation first to get the molecule orientation, then translation to bring it into the viewport. I've applied it to the X3D exporter, so we can compare the result in VRML and X3D with different molecules. Committed as r11273. It is yet not perfect, since a third model (a nucleic acid fragment with a rather large Z coord in its boundbox) still comes zoomed out, but less than in the vrml exporter. I agree that accuracy is not key here, but as long as the model doesn't go out of view. Please have a look at the code and test too. I will try other molecules. ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers