NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Dave, Try replacing the two ScalarMaps to RGB amd to Alpha, with one Sca;arMap to RGBA. See visad/examples/Test20.java for an example. You can either use a LabeledColorWidget to set the color table interactively, or you can get the ColorAlphaControl and call its setTable(float[][] table) method where table is [4][table_length]. Happy Holidays, Bill ---------------------------------------------------------- Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI 53706 hibbard@xxxxxxxxxxxxxxxxx 608-263-4427 fax: 608-263-6738 http://www.ssec.wisc.edu/~billh/vis.html On Fri, 21 Dec 2001 d-nguyen@xxxxxxxxxxxxxxxx wrote: > Hello, > > I am trying to add transparency to my program. It's currently set up like > this: > > (index)->(x, y, z, value) > > and I have Maps added as such > > display.addMap( new ScalarMap( x, Display.XAxis ) ); > display.addMap( new ScalarMap( y, Display.YAxis ) ); > display.addMap( new ScalarMap( z, Display.ZAxis ) ); > display.addMap( new ScalarMap( value, Display.RGB ) ); > display.addMap( new ScalarMap( value, Display.Alpha ) ); > > But it does not seem to be working. I am currently running Java3D OpenGl > version. > > The value data set ranges from 0 to about 3,000 with the majority of the > values > being near 1. I would like it so that the lower the value, the more > transparent > it is so that those near the higher end stands out and is not hidden by the > "cloud" of lower level particles. > > Any ideas? > > Thanks everyone, > -dave > >
visad
archives: