Hi Pasi,
You can try,
GraphicsConfiguration config =
SimpleUniverse.getPreferredConfiguration();
java.awt.image.ColorModel cm = config.getColorModel();
if (cm.getPixelSize() == 8) { // 8 bit per pixel
System.out.println("current display mode is 256 color");
}
- Kelvin
-------------
Java 3D Team
Sun Microsystems Inc.
>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>X-Priority: 3 (Normal)
>X-MSMail-Priority: Normal
>Importance: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
>Date: Fri, 20 Oct 2000 08:42:10 +0300
>From: Pasi Paasiala <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] Does J3D require 16 bit color?
>To: [EMAIL PROTECTED]
>
>Is there a way to find out how many colors are available and give a warning
>to the user if the color mode is less that 16 bit?
>
>Pasi
>
>-----Original Message-----
>From: Discussion list for Java 3D API
>[mailto:[EMAIL PROTECTED]]On Behalf Of Kelvin Chung
>Sent: Friday, October 20, 2000 12:20 AM
>To: [EMAIL PROTECTED]
>Subject: Re: [JAVA3D] Does J3D require 16 bit color?
>
>
>Hi Raffi,
>
> It is required that Java3D need at least 16 bit color.
>In fact if you use DirectX version of Java3D, it will
>automatically switch to 16 bit fullscreen mode in this
>case and output a warning message.
>
>Thanks.
>
>- Kelvin
>--------------
>Java 3D Team
>Sun Microsystems Inc.
>
>>MIME-Version: 1.0
>>Date: Thu, 19 Oct 2000 14:43:40 -0400
>>From: "Kasparian, Raffi J." <[EMAIL PROTECTED]>
>>Subject: [JAVA3D] Does J3D require 16 bit color?
>>To: [EMAIL PROTECTED]
>>
>>To all, it seems that Java3D doesn't render colors correctly if my Windows
>>computer is set to show 256 colors even though Java2 renders colors well.
>Is
>>this a documented limitation? or is there anything that I can do in my code
>>to fix this issue?
>>
>>Thanks,
>>
>>Raffi
>>
>>===========================================================================
>>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".
>
>===========================================================================
>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".
>
>===========================================================================
>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".
===========================================================================
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".