Hi everyone,
i wrote a rendering methode but i want to change it to Immediate-Mode
Rendering using java3D
could anyone help me and tell me how?
here is my render function that i want to change into Immediate-Mode
Rendering
public void render( Scene scene )
{
Viewport eye = new Viewport( scene.viewpoint, 0, 0, width, height );
double daa = 1.0 /antialias;
gc = canvas.getGraphicsContext3D();
for (int y=0; y < height; y++)
for (int x=0; x < width; x++)
{
DColor color = new DColor( 0.0, 0.0, 0.0, daa*daa );
for (int sy=0; sy < antialias; sy++)
for (int sx=0; sx < antialias; sx++)
scene.trace( eye.ray( x + sx*daa, y + sy*daa ),
color, 0 );
putPixel( x, y, color.getRGB() );
}
flush();
}
}
George - 03 Dec 2005 01:30 GMT
still waiting for answer,
thanks in advance
Chris Smith - 03 Dec 2005 02:22 GMT
> still waiting for answer,
You've asked a question that may be outside of the common knowledge of a
lot of people here. I, for example, am just learning Java3D in any
depth, and immediate mode looks interesting but I don't know anything
about it. You may have to wait several days for someone to read your
post who knows the answer. Although questions are sometimes answered
very quickly here, EXPECTING an answer in only a few hours is often
considered rude.
There is a newsgroup called comp.lang.java.3d. I didn't see it in your
distribution list. You might get faster and better responses there.

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
George - 04 Dec 2005 12:15 GMT
thanks , i will ask there
Roedy Green - 03 Dec 2005 03:23 GMT
>still waiting for answer,
oops. See http://mindprod.com/jgloss/newsgroups.html
You likely just got yourself blacklisted.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.