Re: [JAVA3D] Canvas

2003-01-27 Thread Nikolai V. Chr.
Scott Rutledge wrote: (about bug 4374079) I've found a fix for this bug. Create your own canvas3d and implement the paint method thusly: *public* *void* paint(Graphics g) { *super*.paint(g); Toolkit.getDefaultToolkit().sync(); } One line...so long to figure out. Wow, great fix. Wish I

Re: [JAVA3D] Canvas redrawing sometimes fails

2003-01-14 Thread Hans Horn
Chris, adding a MouseListener to your Canvas3D may fix your problem : canvas3d.addMouseListener(new MouseAdapter() { public void mouseEntered (MouseEvent e) { Toolkit.getDefaultToolkit().sync(); // fixes disappearing scene under Java3D13/JDK141 on mouse enter } }); Also, if your

[JAVA3D] Canvas redrawing sometimes fails

2003-01-14 Thread ABAK Systèmes
Hello, I have noticed the following problem (Platform: Windows 2000 SP2, JDK 1.3.1 or 1.4, Java3D 1.3 and later): When the frame is redraw (after a resize or an expose to front), the regions to refresh are painted with the frame background color as soon as I move the mouse. I have to leave and en

Re: [JAVA3D] canvas not showing anything for the first time

2002-10-21 Thread Kelvin Chung
t program. - Kelvin Java 3D Team Sun Microsystems Inc. - Original Message - From: "Kelvin Chung" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 18, 2002 6:38 PM Subject: Re: [JAVA3D] canvas not showing anything for the first time Hi, Wh

[JAVA3D] canvas not showing anything for the first time

2002-10-18 Thread A. Murat Tanyer
Hi all,   I created a JTabbedPane and put canvases on each (see tabbed.jpg). When I run my application the canvas on the first tab does not show anything. But if click the second tab and go back to the first, I see my scene appears on the first tab.   What is the reason for this? Can anybody

Re: [JAVA3D] Canvas and Popups

2002-09-04 Thread Scott Rutledge
Follow-up: to make popup menus work, you have to make sure you display them from the AWT event thread. Since you're probably responding to MouseEvents from a behavior, wrap your code in this: EventQeue.invokeLater(new Runnable( {    run() {   popup.show(component,x,y); }}); And all is good onc

Re: [JAVA3D] Canvas

2002-09-03 Thread Pasi Paasiala
It works! A simple workaround until the bug is fixed. Thank you! Pasi -Original Message- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Behalf Of Scott Rutledge Sent: 4. syyskuuta 2002 1:32 To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] Canvas I've found a fi

Re: [JAVA3D] Canvas

2002-09-03 Thread Scott Rutledge
I've found a fix for this bug. Create your own canvas3d and implement the paint method thusly: public void paint(Graphics g) {    super.paint(g);    Toolkit.getDefaultToolkit().sync(); } One line...so long to figure out. At 08:54 AM 8/23/2002 -0600, you wrote: Ah, my favourite bug bites another on

Re: [JAVA3D] Canvas focus

2002-09-02 Thread Georg Rehfeld
Dear Rob, > ... I have tried using the following > method : myCanvas3D.requestFocus(); but it didn't > work. Hmm, it should work and works for me in my app. I call it in the Applet.init() method. > Is there another method I should use to assign > focus to the canvas? I'm not aware of one. reg

[JAVA3D] Canvas focus

2002-08-31 Thread Rob Elsam
I would like to give my canvas the 'focus' so that the user doesn't have to click on the screen before he can play the game. I have tried using the following method : myCanvas3D.requestFocus(); but it didn't work. Is there another method I should use to assign focus to the canvas? Thanks in adv

Re: [JAVA3D] Canvas shape

2002-07-31 Thread Daniel Selman
Murat, Zak No, as far as I know there is no way to do this. Windows (for example) just doesn't make it easy for you. Read: http://www.codeguru.com/buttonctrl/nonrectangle_button.shtml For an example. Most of there techniques consist of drawing into a partial image and then blitting the image. T

[JAVA3D] Canvas shape

2002-07-31 Thread A. Murat Tanyer
Hi; Is there a way to create different shapes of Canvas3D? I want to create two Canvas 3Ds something similar with the attached images. Each canvas will contain different information. Thanks in advance. Murat <><>

Re: [JAVA3D] Canvas disappearing (goes blank/grey)

2002-05-13 Thread Pasi Paasiala
Title: RE: [JAVA3D] Canvas disappearing (goes blank/grey) I'd also like to see this fixed. I tried to overcome this by adding some event handlers and now my canvas works slightly better. I have added to my frame (containing the canvas) a WindowListener that repaints the view when the w

Re: [JAVA3D] Canvas disappearing (goes blank/grey)

2002-05-13 Thread Scott Rutledge
Can anyone point me to someone at Sun that I could talk to this about? I haven't managed to find any way to fix this, and it's stopping us from moving to 1.4 (which we've been wanting to do for a while). I'm hoping they can provide some sort of patch we could use. Thanks, Scott At 03:56 PM 5/8/2

Re: [JAVA3D] Canvas graphics draw - bug or feature?

2002-05-06 Thread Kelvin Chung
MAIL PROTECTED]> >Subject: [JAVA3D] Canvas graphics draw - bug or feature? >To: [EMAIL PROTECTED] >MIME-version: 1.0 >X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 >X-Priority: 3 >X-MSMail-priority: Nor

[JAVA3D] Canvas graphics draw - bug or feature?

2002-05-06 Thread Andrei Moisseev
Hi! I have made a simple example. Mouse events are processing in this example.On click and on drag the rectangle is drawing. And if in the same case the key Ctrl is pressed then an oval is drawing.     Graphics g = canvas.getGraphics();    g.setColor( Color.WHITE);

Re: [JAVA3D] Canvas disappearing (goes blank/grey)

2002-04-19 Thread Gustaf Duell
me. Best regards Gustaf Duell PS Skojigt foretag du jobbar pa Roger, kolla garna in varat pa: www.mentice.com DS _-Original Message- _From: Roger Berggren [mailto:[EMAIL PROTECTED]] _Sent: den 12 april 2002 09:12 _To: [EMAIL PROTECTED] _Subject: [JAVA3D] Canvas disappearing (goes blank/gre

[JAVA3D] Canvas disappearing (goes blank/grey)

2002-04-18 Thread Roger Berggren
Hi, I'm trying to create an application using Swing and Java 3D. My problem is that it seems as if the Canvas3D stops rendering when I resize or try to open a file using the standard file opener. It's even more strange than that. If you resize the window and releases the mouse, everything looks

[JAVA3D] Canvas Mapping Changes ...

2002-03-25 Thread Kapil Joshi
hi all !       here's a problem i face ...   if i draw a point @ some location (x,y,z) in the canvas and then resize the canvas and again try to draw the point @ same location (x,y,z), the point appears somewhere else... maybe the AWT to canvas mapping changes. what shud i do to keep a consi

Re: [JAVA3D] canvas disappears on window machine

2002-03-04 Thread Mona Wong
anks. > > - Kelvin > > > >Date: Mon, 04 Mar 2002 14:50:50 -0800 (PST) > >From: Mona Wong <[EMAIL PROTECTED]> > >Subject: Re: [JAVA3D] canvas disappears on window machine > >To: [EMAIL PROTECTED] > > > >Hi Kelvin: > > > >

Re: [JAVA3D] canvas disappears on window machine

2002-03-04 Thread Kelvin Chung
>Date: Mon, 04 Mar 2002 13:17:27 -0800 (PST) >From: Mona Wong <[EMAIL PROTECTED]> >Subject: Re: [JAVA3D] canvas disappears on window machine >To: [EMAIL PROTECTED] >Cc: [EMAIL PROTECTED] >MIME-version: 1.0 >Content-MD5: fAz+nMK8Sgy7T4cvfVjyXw== > >Hi Kelvin: >

[JAVA3D] canvas disappears on window machine

2002-03-04 Thread Mona Wong
Hi: I'm trying to figure out why my Java 3d application works fine on the Solaris machine but the canvas keeps disappearing on the Windows machine. The Windows machine has the latest OpenGL version of 3d installed (Java 1.4) Any help or pointer is greatly appreciated! S

[JAVA3D] canvas disappears on pc

2002-02-11 Thread Mona Wong
Hi: I have a java 3d application where the canvas disappears on the Windows PC platform. I can occassionally get it to come back when I resize it several times ... it isn't consistent so I cannot get it to come back consistently ... Can anyone tell me why it is doing this and/or

Re: [JAVA3D] Canvas focus

2002-01-16 Thread Robert Bergman
d J. To: [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 5:43 AM Subject: [JAVA3D] Canvas focus In JDK 1.4 you have to use the setFocasable() setFocus() to have the canvas get the focus.  But even though we are doing this it seems the canvas is receiving no events at

Re: [JAVA3D] Canvas focus

2002-01-16 Thread Daniel Selman
Dave.   I saw Bob Bergman had code to do that in his JDK 1.4 full screen demo (which responds to the ESC key).   Sincerely,   Daniel Selman -Original Message-From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Behalf Of Yazel, David J.Sent: Wednesday, January 1

[JAVA3D] Canvas focus

2002-01-16 Thread Yazel, David J.
In JDK 1.4 you have to use the setFocasable() setFocus() to have the canvas get the focus.  But even though we are doing this it seems the canvas is receiving no events at all.  Even clicking on the canvas gets no results.  Has anyone had any issues with this in the past?  Perhaps something else

[JAVA3D] Canvas Disappering Causes

2001-03-09 Thread Sackmunky
I am always running into the scenerio where :   I have a Canvas3D in an Jinternal frame. I also have another IFrame that pops up at the same time. THe texture in the frames keep disappearing.I am using all the new Java releases.   Is there any workarounds or fixes for these problems. I know

[JAVA3D] Canvas 3D changes

2001-02-27 Thread Carlos Ariza
I all, I have an application which i run using java3d and 1.2 jdk1.3, i have a Canvas3D put in a JinternalFrame. How can I implement changes in Canvas 3D from a button of other Jframe (addChild for example)? Please help. Thanks. ===

[JAVA3D] Canvas Image saving

2001-02-08 Thread Illarramendi Amilibia, Aitor
Title: Canvas Image saving Hello Abel:     You could use an example called PrintCanvas3D of the demo directory of the last Java 3D Beta version. There you have an example of how extending Canvas3D for achieve the rendered image of your scene canvas with offscreen rendering.       

Re: [JAVA3D] Canvas 3D disabling

2001-01-15 Thread "Sánchez Sanz, Javier"
Ethernaly yours, Javi -Original Message-From: Illarramendi Amilibia, Aitor [mailto:[EMAIL PROTECTED]]Sent: lunes 15 de enero de 2001 15:59To: [EMAIL PROTECTED]Subject: [JAVA3D] Canvas 3D disabling Hello:     I'm developing a littel application with Java 3D and a

[JAVA3D] Canvas 3D disabling

2001-01-15 Thread Illarramendi Amilibia, Aitor
Title: Canvas 3D disabling Hello:     I'm developing a littel application with Java 3D and a Swing component based HCI.     During the use of the application is needed to present some dialogs (nowadays with the method showMessageDialog of the component JOptionPane, but the idea is

[JAVA3D] Canvas 3D and swing

2000-09-30 Thread Ben Arbel
hi all   ive been getting strange results when exploring the awt hierarchy coming from a my Canvas3D. im getting the Canvas3D object from a simple universe i created after i creates its scenegraph.   now, my scene is displayed without a problems but when i tries to add several other awt panel

Re: [JAVA3D] Canvas Capture

2000-06-16 Thread Barry Walsh
EMAIL PROTECTED] Subject: [JAVA3D] Canvas Capture Hi All, I have a canvas updated every 10 seconds and would like to save the content into a file format to create some type of movie file. Is there a way to do such a thing? Can I capture a canvas content and save it in a file to make an avi? Thank

Re: [JAVA3D] Canvas Capture

2000-06-16 Thread John R.
Is there any way to draw an arrow, with the head and tail points known as Point3d's ? In 2d this is fairly simple, but in 3d I'm a tad lost as to how to aim the diagonals properly. Any help would be appreciated. John R. =

[JAVA3D] Canvas Capture

2000-06-16 Thread Malguy, Eric G.
Hi All, I have a canvas updated every 10 seconds and would like to save the content into a file format to create some type of movie file. Is there a way to do such a thing? Can I capture a canvas content and save it in a file to make an avi? Thanks for your help Eric

[JAVA3D] canvas hidden then restore: not rendered properly anymore

2000-02-16 Thread Olivier fillon
Hi Everyone, my canvas3d can be switched on/off (its parent panel removed or added) it used to work ok with the previous j3d version 1.1.3 but now, my scene is not rendered anymore when restored, a white screen yet it is still active, i can even trigger picks and added objects (once the restore i

Re: [JAVA3D] Canvas 3D Problem

1999-12-06 Thread Vladimir Olenin
I wish some folks from Sun have commented on the performance and other problems connected with Canvas3D. See my email and the email from Young dedicated to the performance problems with Canvas3D. Doug, what do u have to say about this? We all need your help and comments badly! vladimir

[JAVA3D] Canvas 3D Problem

1999-12-06 Thread Rui Prada
Hello, I have a canvas 3D in a JPanel used as content pane for a JFrame. I use it to display a small scene... everything is ok. Then I remove it from the JPanel and create a new Canvas and as I try to show the same(or other) scene in the new canvas I get e Dr.Watson Message!!! If I don't remove t