Bill, Matthias, Thanks for both of your suggestions. I have tried those and it seems like I cannot affect the transparency of these particles. I have tried creating a table with the ColorAlphaControl. I have also tried using constantMaps. I have tried using the LabeledColorWidget but I do not see a line for transparency. Nor did I see one when I ran Test20 as suggested. I'm pretty sure it is not a problem with my system configuration since example P4_06 from Ugo's tutorial seems to work fine. I have attached some files below if anyone could possible look at these. I would appreciate any feedback. particle_temperature_32.dat is a data file. readdata.java prints out point coordinate and values from data files. Run it by calling java readdata 32 particle_temperature_32.dat. partplot.java is the program I am trying to get working. Run it by calling java partplot 32 particle_temperature_32.dat Thanks for any help, -dave > > > 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 > > > > > >
Attachment:
readdata.java
Description: Binary data
Attachment:
partplot.java
Description: Binary data
Attachment:
particle_temperature_32.dat
Description: Binary data
visad
archives: