United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6603000 D3D: incorrect texel to pixel mapping in some cases
JDK-6603000 : D3D: incorrect texel to pixel mapping in some cases

Details
Type:
Bug
Submit Date:
2007-09-10
Status:
Closed
Updated Date:
2011-03-30
Project Name:
JDK
Resolved Date:
2007-09-24
Component:
client-libs
OS:
windows_xp
Sub-Component:
2d
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u5
Fixed Versions:
6u10 (b04)

Related Reports
Relates:

Sub Tasks

Description
the pipeline still doesn't map texels pixels to pixels correclty
in case of complex transforms.

This is visible with Nimbus L&F on some video boards (see
the attached screenshot).

                                    

Comments
EVALUATION

The fix for 6602861 addressed most of the rendering issues with 
Nimbus L&F, but unfortunately not all.

For example, when painting vertical scrollbars Nimbus scales
and rotates a translucent volatile image to render the
track of the scroll bar. On some video boards this results in
a 1-pixel high hole at the bottom of the track (above the 
sc button).

This is because the way we use texture transform to offset
the texture for proper texel to pixel mapping is still not entirely
correct - it only looks at the device's scale factors.

Also, when rendering a background of a menu bar, one can see
some texture bleeding on the right side, most likely because
the board doesn't support non-pow2 textures and so the bilinear
filtering is sampling texels from outside of the "image"'s
bounds in a texture.
                                     
2007-09-10
EVALUATION

In the end we decided on fixing tex-pix mapping
by shifting the geometry by -0.5 post-transform.

And luckily we already had a fix for the texture
bleeding with bilinear filtering ready for the opengl
pipeline, so we used it.
                                     
2007-09-18
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/java2d_data/6u5/6603000.0
                                     
2007-09-19



Hardware and Software, Engineered to Work Together