Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
<html><div style='background-color:'><DIV> <P>Hello, All</P> <P>I used Gridded2DSet to draw a topography surface. I also want to draw some street lines on the surface. Each street line has some points with only x and y, I used valueToInterp method to interpolate these points to get z values, then draw these points as one line. My problem is, some segment of the line are below the surface. So I want my topography surface to be transparent so that every thing below the surface can be seen clearly. I tried the following:</P> <P>dispGMC = (GraphicsModeControl)display.getGraphicsModeControl(); <BR>dispGMC.setTransparencyMode(javax.media.j3d.TransparencyAttributes.SCREEN_DOOR);</P> <P>zMap = new ScalarMap(Z, Display.RGB);<BR>display.addMap(zMap);<BR>display.addMap(new ScalarMap(Z, Display.Alpha));</P> <P>Now the surface I got is opaque. I do not know how to set the Alpha value.</P> <P>Any help will be highly appreciated.</P> <P>Gaoming Fu</P></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_etl_EN.asp'>http://explorer.msn.com</a>.<br></html>
visad
archives: