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.

Re: Another Alpha Question


Thanks Bill,

I gave it a try and received the following error:


java.lang.ArrayIndexOutOfBoundsException: 48
        at visad.VisADGeometryArray.merge(VisADGeometryArray.java:482)
        at visad.VisADTriangleStripArray.merge(VisADTriangleStripArray.java:41)
        at visad.UnionSet.make2DGeometry(UnionSet.java:415)
        at 
visad.ShadowFunctionOrSetType.doTransform(ShadowFunctionOrSetType.java:2618)
        at 
visad.java3d.ShadowFunctionOrSetTypeJ3D.doTransform(ShadowFunctionOrSetTypeJ3D.java:100)
        at 
visad.java3d.DefaultRendererJ3D.doTransform(DefaultRendererJ3D.java:99)
        at visad.java3d.RendererJ3D.doAction(RendererJ3D.java:181)
        at visad.DisplayImpl.doAction(DisplayImpl.java:1689)
        at visad.ActionImpl.run(ActionImpl.java:353)
        at visad.util.ThreadPool$ThreadMinnow.run(ThreadPool.java:95)


If I use a UnionSet with a single filled Irregular2DSet the ArrayIndexOutOfBounds exception becomes 24

Hope this helps.

-kevin.



Bill Hibbard wrote:
Hi Kevin,

Please try the proposed fix at:

  ftp://ftp.ssec.wisc.edu/pub/visad-2.0/untested/VisADGeometryArray.java

Note this is incorporated in the visad.jar and visad_src-2.0.jar
files at ftp://ftp.ssec.wisc.edu/pub/visad-2.0/untested/.

If this doesn't fix it, then please send me the test program.

Cheers,
Bill


Thanks for the fix on this.  The fixed UnionSet is allowing me to choose
a ConstantMap color, but when I add an Alpha parameter, it does not
behave as it should.

Using 2 different filled Irregular2DSets, each with its own ConstantMap,
I get this:

http://www.cimms.ou.edu/~kmanross/VCPRPE/VisADSamples/kiwaWedges_OK.gif

However, when I make a UnionSet with the two Irregular2DSets and using
one of the ConstantMaps, I get this:

http://www.cimms.ou.edu/~kmanross/VCPRPE/VisADSamples/kiwaWedges_usetError.gif

Even a UnionSet with a single Irregular2Dset wedge produces the same
produces the latter result.

If you would like, I can send you my test code.





--
+------------------------------------------------------------+
Kevin L. Manross        [KD5MYD] <><          (405)-366-0557
CIMMS Research Associate               kevin.manross@xxxxxxxx
[NSSL-WRDD/SWATN]           http://www.cimms.ou.edu/~kmanross

"My opinions are my own and not representative of CIMMS, NSSL,
 NOAA or any affiliates"
+------------------------------------------------------------+


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