> Hi Miguel:
>
> I found in order to get the transparency to work, one more change is
> needed in addition to the two changes in Swing3D.
>
> In Colix:
>
> static short getColix(int argb) {
> if (argb == 0)
> return 0;
> //argb |= 0xFF000000; //IF THIS IS COMMENTED OUT, THEN IT WORKS
> for (int i = colixMax; --i >= 0; )
> if (argb == argbs[i])
> return (short)i;
> return allocateColix(argb);
> }
>
> You seem to turn off the transparency channel here by ORing with
> 0xff000000.
Correct.
I wanted to ensure that all colors in the system were/are completely opaque.
> It causes the rgbaBackground passed from the
> ColorManager to Graphics3D and then to Platform3D to lose the original
> alpha setting.
>
> Is that line critical? So far I don't find it breaks anything. But you
> must have a better idea than I do.
Well, I think it would be best if something ensured that the alpha channel
of all colors was 0xFF
Q: After this change, did everything else seem to work for you?
Miguel
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers