[JAVA3D] nedd help for algorhytme

2004-05-20 Thread hterrolle
Hi,   I need an algorythme that will allow me to make a circle of object.   example :                             5                     6  4   7 3                  8    2                         1

[JAVA3D] want to add a javax.media.j3d.Canvas3D JBean into one JPanel

2004-05-20 Thread
Hello! I am using Jbuilder9.0. I want to add a javax.media.j3d.Canvas3D JBean into one JPanel named "contentPane", but it do not success.And It always reports: 'Class or public constructor for the class not found: new Canvas3D()'. Can you tell me WHY?? THANK

Re: [JAVA3D] want to add a javax.media.j3d.Canvas3D JBean into one JPanel

2004-05-20 Thread Alessandro Borges
Try to instatiate your Canvas3D object this way: java.awt.GraphicsConfiguration config= SimpleUniverse.getPreferredConfiguration(); Canvas3D canvas3D = new Canvas3D(config); There is no exist a Canvas3D constructor with no arguments. Alessandro --- ÕÅ <[EMAIL PROTECTED]> escreveu: > Hello! >

Re: [JAVA3D] want to add a javax.media.j3d.Canvas3D JBean into one JPanel

2004-05-20 Thread Alessandro Borges
Of course you can also extends Canvas3D with a zero argument construtor Bean like class: public class MyCanvas3DBean extends Canvas3D { // since the super class Canvas3D needs a config // argument static java.awt.GraphicsConfiguration config= SimpleUniverse.getPreferredConfiguration(); publi

Re: [JAVA3D] nedd help for algorhytme

2004-05-20 Thread Brian McCormick
Hi,   If speed is not a concern, you can always do something like the pseudocode below.   loop theta = 0 to 2 * pi {    x = xcenter + radius * cos(theta);    y = ycanter + radius * sin(theta);    plot(x,y); }   Is speed is a concern, you should use Bresenham's line scan conversion algorithm

[JAVA3D]

2004-05-20 Thread Liu Samuel
hi all, There is a NullPointerException occured when I attempted to detach a BranchGroup from the locale, there is a collision detection behavior serves as a child of the BranchGroup. The call trace is: java.lang.NullPointerException at javax.media.j3d.TransformGroupRetained.getCurrentC

[JAVA3D] cleanup() of multiple SimpleUniverses

2004-05-20 Thread Mark Sholund
I don't have a lot of knowledge about Java3D. I have been tasked to fix memory problems with three applications which each create a SimpleUniverse to display. Each one functions as it should and when I close the application, the cleanup() (I am running Java3D 1.3.1) method on my SimpleUniverse ge

Re: [JAVA3D]

2004-05-20 Thread Chien Yang
Samuel, Have you tried doing the detach in a j3d Behavior ? There is a known MT bug with detach() executed in the user thread. - Chien Yang Java 3D, Sun Microsystems Inc. Liu Samuel wrote: > hi all, > There is a NullPointerException occured when I attempted to detach a BranchGroup >

[JAVA3D]

2004-05-20 Thread Liu Samuel
hi, Peter, I do have an accountID, and I have voted the bug. But it seems the bug you submitted is not quite the same as mine Any way, thanks for your help. PS: Where is the workaround? I see "NO" for workarounds. Liu - Original Message - From: Peter Antoniac <[EMAIL PROTECTED]> To

Re: [JAVA3D]

2004-05-20 Thread Liu Samuel
Chien Yang: I tried it out, but unfortunately failed, the exception comes out again. Any more suggestions to have this job done? The weird thing is even I disable these behaviors before I detach the BranchGroup, this problem still will be there. Really troublesome. Thanks for your repl

Re: [JAVA3D]

2004-05-20 Thread Chien Yang
Samuel, Very strange. Can you send us a reproducible test program ? - Chien Yang Java 3D, Sun Microsystems. Liu Samuel wrote: >Chien Yang: > I tried it out, but unfortunately failed, the exception comes out again. > Any more suggestions to have this job done? > The weird thing is even I d