Hi Shinta,
> Here is my question about how to let the color more bright.
>
> ex. the data structure is below
>
> (XAxis,YAxis)-> temp on a DisplayImplJ3D
>
> dpys[0].addMap(new ScalarMap(RealType.XAxis, Display.XAxis));
> dpys[0].addMap(new ScalarMap(RealType.YAxis, Display.YAxis));
> dpys[0].addMap(new ScalarMap(Temp, ?)); // use single color to show
> various temperture
> dpys[0].addMap(new ConstantMap(?,?));
>
> If there is some way to let the whole simulation model more bright in
> black bcakground.
> Because the final color will control by " dpys[0].addMap(new
> ScalarMap(Temp, ?));". The whole model will change into more grey and
> unclear. or Is it possible to change the the scale color and structure
> color to black on other color background?
You could try:
ScalarMap cmap = new ScalarMap(Temp, Display.RGB);
dpys[0].addMap(cmap);
LabeledColorWidget lcw = new LabeledColorWidget(cmap);
Then add(lcw) to your GUI somewhere and experiment with
color lookup tables that will give you a brighter image.
Or you could try computing a color table:
ColorControl control = (ColorControl) cmap.getControl();
float[][] table = new float[3][256];
for (int j=0; j<256; j++) {
table[0][j] = ... // j-th red
table[1][j] = ... // j-th green
table[2][j] = ... // j-th blue
}
control.setTable(table);
Note also that with Java3D colors can be a bit less bright,
because of the shading algorithm.
Good luck,
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