I have just tried this with the display set to 32-bit colour. This works
fine....so it seems that there is a bug with 16-bit colour mode in WinNT4 SP
3 & 4.
Also - it looks as though the problem does not exist with SP5.
Any comments?
Regards,
Andy Phelps
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Andrew Phelps
Sent: 04 June 1999 14:27
To: Java Interest
Cc: Tim Gentry
Subject: [java3d] WinNT4.0 bug?
<< File: test35b.java >> I have been using J3D on a Win9x machine for some
time, with very few problems. However, I am aware of a problem with
WinNT...and would be grateful for some help.
When I run most applications on WinNT (including the J3D examples) the J3D
renderer runs into problems.
The attached example demonstrates these problems when running WinNT4 SP 3 &
4 with 16-bit colour. (If the display is set to 256 colours the problems do
not occur - however the colours are nasty!) .
When I run the application it starts correctly and I see a cube on the
screen. A border is also drawn around the screen (drawn in the over-ridden
postSwap method of the canvas). The cube can be manoeuvred around the scene
using the mouse buttons.
When I resize the window one of the following occurs:
1) - the scenegraph is not rendered to the screen - this happens when the
window is resized by a large amount...however the border is drawn.
2) - the scenegraph is rendered, but does not use the full screen. If I
move the cube down the canvas, it disappears someway down the screen. (i.e.
It is as though the canvas does not occupy the whole screen) ...however the
border is drawn around the canvas bounds.
This also happens when I try the example HelloUniverse. Initially I thought
there may be a problem with the layout manager on NT machines. However, the
attached example draws the boundary of the canvas correctly (regardless of
the window size).
I have tested this problem on four NT machines (3 with SP4 and 1 with SP3)
with the same error on each.
Am I doing something wrong, or is this a bug?
Can anyone shed any light on this?
(Also - how do I double- buffer the border so it doesn't flicker?)
Much appreciated,
Andy Phelps
===============================================================
WS Atkins Engineering Software
Woodcote Grove
Ashley Road Tel: +44 (0)1372 726 140
Epsom Fax: +44 (0)1372 740 055
Surrey URL:
http://www.wsatkins.co.uk/wsa/core-pages/software.htm
KT18 5BW E-mail: [EMAIL PROTECTED]
England
===============================================================
date sent: 04/06/99 11:53 (QA purposes)
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/