Mark and Kelvin,
thanks for the response.
As far as I have understood, you're saying that this is now a default behavior on Windows OpenGL for a background picture to be set as texture. I tried the Dj3d.backgroundtexture=false option and the picture turns out fine. Now we really need the programmatic way to make Java3D use glDrawPixels. I don't believe that we can set java's command line option from the code and we can't make our users specify this option. Can you comment on that? Is there any other way, maybe you can make it a hint?
Kelvin, I tried 1.3 beta1 on a few machines and they all seem to have the problem, so that I doubt that this is a card issue. Also I could not find SCALE_FIT_MIN, SCALE_FIT_MAX modes on any of the classes that I use. java.awt.Image has some scaling policies, but they are not the same. And the picture should not be scaled, it has exactly the size that I need.
Yuri.
-----Original Message-----
From: Mark Hood [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 4:49 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Blurred background
> Date: Fri, 8 Feb 2002 16:38:58 -0500
> From: Yuri Nikishkov <[EMAIL PROTECTED]>
>
> It looks as if 1.2.1_03 uses OpenGL's drawPixels and beta1 uses texture with
> filtering turned on to display background. Can you comment on that, is it a
> bug, or a new feature, and how to work around that to get correct (not
> blurred) background picture?
glDrawPixels was often unaccelerated in Windows OpenGL implementations, so at
some point the default was changed to use texture mapping for the background.
The Solaris release continues to use glDrawPixels.
You can set the j3d.backgroundtexture property on the java command line to set
your preference -- if true, texture is used for backgrounds; if false,
glDrawPixels is used:
java -Dj3d.backgroundtexture=false MyProgram
-- Mark Hood
===========================================================================
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".
