pim schravendijk wrote:
>Short note, not to forget:
>
>We need translucency as well, in povray any object can be translucent.
>Some examples of the possibilities:
>http://derakon.chainmailstore.com/povtrans.html
>It even can create light-diffracting translucency.
>
>In any case we need a float value from 0 (opaque) to 1 (translucent),
>e.g. via an additional rgbtFractionalFromColix function in Exporter
>
>
>
Good point. Not a problem. The colixes ("color indexes") used to define
the color of absolutely anything encode translucency as well. We'll just
make sure that gets decoded. This, in fact, is one of the really nice
aspects of the Povray idea. Jmol does the opaque first and then the
translucent in a second pass. But the exporters all bypass that. You can
check for a translucent colix using
Graphics3D.isColixTranslucent(short colix)
and you can get the translucency level using
Graphics3D.getColixTranslucencyLevel(short colix)
this gives 8 levels of translucency in powers of 2 between 0 and 255:
// 1/8 1/4 3/8 1/2 5/8 3/4 7/8 8/8
// 32 64 96 128 160 192 224 255
OR -1, meaning "screened" (Jmol 10.2), which we should just turn into
128, I think. 255 means transparent -- ignore.
This sort of thing should be put into Exporter.java and made "protected"
Also, if we use the transformed coordinates, we should probably turn off
perspective depth. Let Povray do that on its own. That means no Povray
in navigation mode. And it could mean some odd differences with the
actual view if the user has that turned on, but that's the way it goes.
OK, that's really it for me tonight. No more email!
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers