Hi
I just tried this application.
There will be an exception when you recompile the code. To avoid this change
line113 in class Texture2DVolume from:
colorModel = new ComponentColorModel(cs, nBits, false, false, 0, 0);
to
colorModel = new ComponentColorModel(cs, nBits, false, false,
ComponentColorModel.OPAQUE, 0);
Further note that the application do not call System.exit( 0 ) when closing the
window (didn't found any other exit method), i.e. the application stil runs. You
can avoid this by adding
this.addWindowListener
(
new java.awt.event.WindowAdapter()
{
public void windowClosed(WindowEvent e)
{
Sysem.exit( 0 );
}
}
);
this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
to the constructor of class VolRend (but I'm sure this is well known by the
subscribers to this mailing list).
VolRend includes also the main method.
regards
Paul
"LeRoy M. Dorman" schrieb:
> There is code by Doug Gehringer to do this at
> http://www.j3d.org/tutorials/quick_fix/volume.html
> and there is an applet version as well.
> LeRoy Dorman
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".