Display.IsoContour and transparency

Hallo,

i have a problem with isosurfaces and transparency. If i pass 2 Sets, volume data mapped to Display.IsoContour and a surface (may be of an airplane) mapped to RGB or RGBA, to a display it is sometimes not possible to see the surface. My idea now is to give the volume data a ConstantMap with Display.Alpha.

display3D.addReference(iso_ref,
         new ConstantMap[]{new ConstantMap(0.2, Display.Red),
         new ConstantMap(0.6, Display.Green),
         new ConstantMap(0.6, Display.Blue),
         new ConstantMap(0.9, Display.Alpha)});

display3D.addReference ( surface_ref);

The problem is, that now i can see the box edges through the isosurface but the surface is always hidden. Is it impossible or have it to be done in a different way?


Olav

  • 2004 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: