comments:

-- camera angle is not correct.
-- huge distortion is a result of incorrect camera positioning.
-- are font sizes correct?


On Sun, Jan 18, 2009 at 3:09 PM, Angel Herráez <[email protected]> wrote:
> On 17 Jan 2009 at 14:17, Robert Hanson wrote:
>> In addition, I've added to the VRML
>> exporter code that stores the atom's actual XYZ and screen XYZ
>> positions just prior to displaying a label. Angel, you might be able
>> to use that information to do what you need to do.
>
> Thanks, Bob, that works very well.
> I've set it up and commited it, just for labels. But now, while trying to 
> support echos too, I've
> found another solution that does not need modification of the Renderer 
> modules and will be
> good for any 3D-positioned texts.
>
> I've set up a test page:
> http://biomodel.uah.es/Jmol/vrml/
>
> "v1" is  the one commited. "v2" is the new one. It supports any texts (label, 
> echo,
> measurements,... the axes XYZ labels...  There is some problem with offsets 
> applied by
> Jmol to have the texts visible in front of the model, I guess. 2D echos are a 
> problem
> because of that.
> As a bonus, labelOffsets are carried along.
>
> At first, I though they looked different, but now that I have put them side 
> by side, they are
> pretty much the same in position and look.
>
> v2 is more powerful, but I'm not sure if we should go for it. For example, 
> measurements go
> quite off-place, I don't know why  (apart that the line is not rendered, but 
> that's another
> issue).
>
> This is the key portion of code in the new version (inside plotText() )
>    Point3f pScreen = new Point3f();
>    pScreen.x = x; pScreen.y = y; pScreen.z = z;
>    Point3f p3D = new Point3f();
>    viewer.unTransformPoint(pScreen, p3D);
>
> so, I'm doing the conversion of whatever screen coordinates are passed by 
> Jmol into 3D
> coordinates. These I give to the vrml code (which has some minor adjustments 
> over the
> former version, to remove the imposed offset).
>
> Label alignment works in the sense that the starting position of the label is 
> changed, but not
> because the label does not rotate according to its alignment, so it's not 
> good to use other
> than left.
> Multi-line labels are also processed in v2, but the lines come in reverse 
> order --maybe a
> different orientation of the Z axis?
>
> Any feedback is welcome.
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Jmol-developers mailing list
> [email protected]
> 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

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to