Angel, I think the labels look pretty good.

There must be some way of defining the VRML view -- look for a
definition of a 4x4 transformation matrix (includes zoom and
centering) or a 3x3 rotation matrix. Those are available via Viewer
methods. We sidestepped this in POV-Ray by using the screen xyz
coordinates, which already take into account perspective. But the
method is there:

  public Matrix4f getMatrixtransform() {
    return transformManager.getMatrixtransform();
  }

Then you can do what you want with that. Alternatively, if you need
something else, you could get the axis and angle and do something with
that.

  void getAxisAngle(AxisAngle4f axisAngle) {
    transformManager.getAxisAngle(axisAngle);
  }


The distortion is due to the perspective having the camera too close
to the model. I think you just have to get close, not a perfect
rendition the way we have done in POV-Ray -- there the idea was to get
a perfect rendition of the specific view. Here we are after a more
adaptable representation.




On Mon, Jan 19, 2009 at 5:00 AM, Rolf Huehne <[email protected]> wrote:
> Angel Herraez wrote:
>> El 18 Jan 2009 a las 21:51, Robert Hanson escribió:
>>
>>> comments:
>>>
>>> -- camera angle is not correct.
>>
>> I had realized that the orientation was different. Don't know
>> anything about that, but it is as it was in the first exporter. I
>> will study the vrml doc to see if I can find the proper way.
>> I suspect that the axes orientation may be different than in Jmol.
>> Could that be the cause?
>>
>> Correction: the orientation is OK, but matches the Jmol model as in
>> "reset", so it is the current orientation that is not being exported.
>>
> I noticed the same problem with PyMOL VRML export:
> the orientation set within PyMOL is not preserved after import into the
> Adobe 3D program.
>
> Regards,
> Rolf
>
> ------------------------------------------------------------------------------
> 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