Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: VisAD and transparency

Hi JR,

Iso-surface triangles (and triangles from other sources)
in VisAD get sewn together in long polytrianlge strips
which greatly increase efficiency, and these strips are
in general not compatable with sorting. As I recall, Java3D
does provide a way to segregate triangles into multiple
Geometries that it will then sort in depth order, but for
this to work with complex shapes like iso-surfaces you'd
have to segregate into a very large number of Geometries.

It is possible that you may find a way to do what you want,
but it will be a lot of work and probably result in slower
rendering and greater memory use.

Good luck,
Bill

> Bill mentioned sorting the transparent polygons as a possible solution.  If
> the (isosurface) polygon data structure is accessible from VisAD, would
> implementing a simple z-sort of this list be possible?  I am not so
> concerned of a 'real-time' z-sort as the user rotates the molecule; a simple
> z-sort at the end of rotation would be sufficient to ensure that they have a
> nice looking picture after they get things into the desired orientation.
> Would this be a reasonable approach, or a futile waste of time?
>
> If this works out, I would be happy to contribute the resulting code.


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690