Hi
I've still problems with my ZBuffer. I have extended
Canvas3D with my own subclass. But everytime I
call readRaster and get the DepthComponent it
contains only zeros. It doesn't matter if I call
it after postRender() or postSwap(). Here's my
source
public class ExtCanvas3D extends Canvas3D {
Joachim Diepstraten wrote:
> zRaster = new Raster();
Just a guess, but I think you should specify type as RASTER_DEPTH or
RASTER_COLOR_DEPTH. In first case there should be no need to give full
image to it. I also think it you should pass raster size or set it
explictly.
Artur
=
Hi Artur
> > zRaster = new Raster();
>
> Just a guess, but I think you should specify type as RASTER_DEPTH or
> RASTER_COLOR_DEPTH. In first case there should be no need to give full
Well I did that also. I've changed my code to include these lines :
zRaster.setCapability(Raster.ALLOW_DE
Allright I got it working now (finally) At least
I get different values now and it takes a lot more time :(.
I took some lines from the example. But still the values
seem a bit odd, I thought with float they would be between
0.0 and 1.0 ut instead they are between 1.6E7 and 1.0E7 ?
Oh well can't h
The Java 3D Frequently Asked Questions list for Monday June 11 2001
This is a posting of topics covered in the Java 3D FAQ. The answers
to these questions are kept at:
http://www.j3d.org/faq
Please consult this list and the web site before asking questions on the
mailing list.
If ther
both will do.
Any idea how to make it work?
Thanks in advance.
===
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 P