PDA

View Full Version : Isosurface transparency


JamesP
30th September 2009, 16:25
Assuming it has constant colour, how do I modify and therefore able to animate an isosurface's transparency value?

Cheers
James

mmarsh
30th September 2009, 16:56
Hi James,

As far as I know, that functionality is not exposed in the Isosurface interface.

You can, however, use the Isosurface to create a surface object. The surface object can be connected to a SurfaceView module which has the behavior you are looking for.

Isosurface createSurface mySurface
create HxDisplaySurface SurfaceView
SurfaceView data connect mySurface
SurfaceView setAlphaMode 2
SurfaceView baseTrans setValue 0.5
SurfaceView fire

Instead of 0.5, you may set the transparency to whatever value [0-1] you require.

Hope that helps,
Mike