[JAVA2D] anti aliasing drawing general path

2007-06-20 Thread Ted Hill
Hello, I'm drawing a GeneralPath in a JPanel. The lines tracing the GeneralPath looks a bit rough even with anti aliasing turned on. Here is my paintComponent() override: public void paintComponent(Graphics g) { Graphics2D g2 = (Graphics2D) g;

[JAVA2D] openGL pipeline causing garbled display on Dell M90

2007-06-20 Thread java2d
I have a web start Swing/Java2D application with 2 JNLPs, both effectively the same, except that one of them sets property name=sun.java2d.opengl value=True/ On the test machines that I have available to me (Win XP, Linux, Sun Sparc, Mac) I have never seen a problem with either of them,

Re: [JAVA2D] openGL pipeline causing garbled display on Dell M90

2007-06-20 Thread Chris Campbell
Hi Russell, This sounds like a known Nvidia driver issue, but we couldn't know for sure without the exact driver version. I will see if we have a similar configuration in-house to try this on. Also would be helpful to know if the problem was visible with the usual demos like SwingSet2, but I

Re: [JAVA2D] openGL pipeline causing garbled display on Dell M90

2007-06-20 Thread java2d
I did manage to get someone else to give things a try at the show today. Here's what we found: - Forceware version: 84.69 - Driver date: 5/1/2006 - SwingSet2 demo works no problem. I used http://java.sun.com/products/javawebstart/apps/swingset2.jnlp - correct? But I noticed that the

Re: [JAVA2D] openGL pipeline causing garbled display on Dell M90

2007-06-20 Thread Chris Campbell
You don't need to use webstart, do you? Can you just have them try running SwingSet2 from the command line with -Dsun.java2d.opengl=True? Another thing to try if running from the command line is to disable the use of the FBO extension, which has caused problems in the past with Nvidia drivers:

Re: [JAVA2D] openGL pipeline causing garbled display on Dell M90

2007-06-20 Thread java2d
You don't need to use webstart, do you? Can you just have them try running SwingSet2 from the command line with -Dsun.java2d.opengl=True? The laptop at the show has only the JRE installed, so unless I missed something, we'd need to run the web start demo. (No, there's no alternate JNLP

Re: [JAVA2D] openGL pipeline causing garbled display on Dell M90

2007-06-20 Thread Dmitri Trembovetski
[EMAIL PROTECTED] wrote: You don't need to use webstart, do you? Can you just have them try running SwingSet2 from the command line with -Dsun.java2d.opengl=True? The laptop at the show has only the JRE installed, so unless I missed something, we'd need to run the web start demo. You can

Re: [JAVA2D] D3D pipeline and scaling

2007-06-20 Thread Dmitri Trembovetski
OK, I've checked and it appears that we don't use the DirectDraw scale loops for Bilinear filtering, presumably because we can't control the filtering algorithm when doing a DirectDraw stretch Blit. The OpenGL pipeline handles it just fine, though. As well as the upcoming Direct3D 9

Re: [JAVA2D] D3D pipeline and scaling

2007-06-20 Thread Dmitri Trembovetski
But if you're really set on using the d3d pipeline, here's another alternative, which may only work on jdk6 and earlier releases. 1. set -Dsun.java2d.allowrastersteal=true set -Dsun.java2d.accthreshold=0 set -Dsun.java2d.d3d=true (or for earlier releases,

Re: [JAVA2D] openGL pipeline causing garbled display on Dell M90

2007-06-20 Thread java2d
You can set the _JAVA_OPTIONS env variable to -Dsun.java2d.opengl=true (or any other set of properties separated by spaces) in System Properties/Advanced/Env. Variables, so that all vms started on this system will pick it up. Thanks Dimitri. With that, I can confirm that the SwingSet2 demo

Re: [JAVA2D] openGL pipeline causing garbled display on Dell M90

2007-06-20 Thread Dmitri Trembovetski
Did you try the 'fbobject' property Chris suggested? Thanks, Dmitri [EMAIL PROTECTED] wrote: You can set the _JAVA_OPTIONS env variable to -Dsun.java2d.opengl=true (or any other set of properties separated by spaces) in System Properties/Advanced/Env. Variables, so that all vms