then we need an interface -- based probably on the POV-Ray interface.
On Tue, Jul 21, 2009 at 10:02 AM, Robert Hanson <hans...@stolaf.edu> wrote:
> OK, but I don't think BoundBox will work. You want to have it correct based
> on the current zoom. Send me some files and I will do some testing as well.
> Needs checking:
>
> 1) shift the center to various points within the window using CTRL-ALT
> 2) zoom in and out
> 3) rotate model that is long and skinny, such as 1JEK, 90 degrees and
> ensure that is working properly as well
>
> Bob
>
>
> 2009/7/21 Angel Herráez <angel.herr...@uah.es>
>
> 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
>>
>
>
>
> --
> Robert M. Hanson
> Professor of Chemistry
> St. Olaf College
> 1520 St. Olaf Ave.
> Northfield, MN 55057
> http://www.stolaf.edu/people/hansonr
> phone: 507-786-3107
>
>
> If nature does not answer first what we want,
> it is better to take what answer we get.
>
> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
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