[JAVA3D] InputDevice and Behavior

2001-01-11 Thread Dipl. Ing. Paul Szawlowski
Hello, I just encountered a problem which I think should get resolved. I wanted to implement a class which implements the InputDevice interface and inherits from Behavior. For that I need unfortunatly a method initialize with no parameters which shall return void in one case and boolean in the o

[JAVA3D] extracting scale,translation, rotation vectors from a transform m atrix

2001-01-11 Thread Thijs Maenhout
Hi there, I am wroking on project to write the scenegraph to disk but ( You can guess it) I'am having a problem right here. The filestructure i write to is the VRML format. I write geometry and appearance of a shape3d to disk but when I try to write a transform3d I get stuck. The problem is th

[JAVA3D] Picking / general API question

2001-01-11 Thread Rikard Elofsson
Hi all I don't quite get the API, have only worked with it a couple of days, plz help out. I've extended PickMouseBehavior, getting a nice pick in updateScene(), i get hold of a Shape3D (Leaf). How do i get from the shape to the Transform3D to move it around? All the examples have the Transform3

Re: [JAVA3D] Picking / general API question

2001-01-11 Thread Paul James
Hi, Is it a CapabilityNotSetException? If it is you need to set the capabilities of your shape3D (using it's setCapability() method)to allow you to access it. Capabilities define what interactions can be made with an object when it the scene graph is live, (i.e. being rendered on the screen).

Re: [JAVA3D] Antwort: [JAVA3D] stereoscopic glasses and Sgi

2001-01-11 Thread Giuseppe Conti
Hi Nenad, Thanks for replying and I apologise for my delay but I was abroad for holiday. Now we've got CrystalEyes and I would be grateful if you could send me the patch file. Thanks sincerely, Giuseppe Conti Giusep

Re: [JAVA3D] Picking / general API question

2001-01-11 Thread Rikard Elofsson
Paul James wrote: > > Hi, > > Is it a CapabilityNotSetException? > > If it is you need to set the capabilities of your shape3D (using it's > setCapability() method)to allow you to access it. > > Capabilities define what interactions can be made with an object when it the > scene graph is live, (i.

Re: [JAVA3D] Exporting VRML

2001-01-11 Thread Timo Buschick
> I tried to export a scenegraph using x3d with the following code snippet: > > File f = new File(dir, file); > FileWriter fw = new FileWriter(file); > System.out.println("Saving scene "+scene+" to file "+dir+file); > try { > scene.writeX3D(fw,"x3d.dtd"); > } catch (Exception e) { System.out.print

[JAVA3D] Texture Map performance hit?

2001-01-11 Thread Bob Gray
Title: Texture Map performance hit? I created a simple scene is which I have 2 torus shapes.  I added a behavior to wake up every so many milliseconds and move the 2 objects around.  I get *very* nice motion and frame rate, about 17 to 20 fps. Then I added a single sphere and a texture mappi

[JAVA3D] Beginner Question

2001-01-11 Thread Kyle Wayne Kelly
Does anyone know of any really good book or html resource on java's 3D graphics?

Re: [JAVA3D] Java Based Solid Modeler

2001-01-11 Thread Qiuli Sun
I am searrching this kind of solid modeler also. If you have any info, please let me know. But I guess you have to code them line by line. It needs a lot of effort. Qiuli -Original Message- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Behalf Of Abhishek K. Agrawal

[JAVA3D] Java Based Solid Modeler

2001-01-11 Thread Abhishek K. Agrawal
I am looking for a simple library of solid operations based upon Java. I guess any simple solid modeler based upon C++/C can also be used through JNI. abhishek On Thu, 11 Jan 2001, Qiuli Sun wrote: > I am searrching this kind of solid modeler also. If you have any info, > please let me know. >

[JAVA3D] Multitexture problem

2001-01-11 Thread J. Lee Dixon
I am finally trying multitexturing for the first time. Doesn't look that difficult but it is *definitely* not working. My problem is that when rendering begins, ALL other textured objects in the scene become textured with my index 0 texture. If I take the multitextured object out of the scene,

Re: [JAVA3D] Beginner Question

2001-01-11 Thread Ahmed Shakil
"Ready to run Java 3d" was a good book. (I recommend that) I didnt like "3d user interfaces withJava3d" its really all theories and boring I am really hoping that "Java 3d programming" would be a good book, I havent seen it yet     Plus that examples which come with Java3D are the biggest help  

Re: [JAVA3D] Multitexture problem

2001-01-11 Thread Charmaine Lee
Joel, There are a few multitexture bugs that are fixed in the upcoming 1.2.1beta2 release. From your description, it is not obvious to me what is the problem, so I can't tell you for sure whether the problem is already fixed in 1.2.1beta2. So will you please send us a test program, we'll take a l

Re: [JAVA3D] Multitexture problem

2001-01-11 Thread J. Lee Dixon
Well, I didn't think I would even have a shot at making a test program since my scene and code is complex. But I tried replicating the problem in the "MultiTextureTest" in the demos and it shows up there too!!! I've attached the edited Java code. I added 4 lines of code. An extra box is added

[JAVA3D] short key help

2001-01-11 Thread Malguy, Eric G.
Evening folks, I need to open a GUI when the user push a defined (e.g. Alt+E) key and the window need to stay up ONLY as long as the user hold the key down. When the key is released the window closes. Does anyone have an example for my problem? Thanks for your help, Eric

Re: [JAVA3D] extracting scale,translation, rotation vectors from a transform m atrix

2001-01-11 Thread Kelvin Chung
Hi, See Transform3D: /** * Places the quaternion equivalent of the normalized rotational * component of this transform into the quaternion parameter; * places the translational component into the Vector parameter. * @param q1 the quaternion representing the rotation

Re: [JAVA3D] short key help

2001-01-11 Thread Jeremy E. Denton
Eric, This is a bit off topic (more general Swing/AWT stuff) but if it helps... You need to give a little more detail for what this is for. The problem is that when a window isn't visible, It doesn't have the focus from the keyboard. So no keyevents ever get to it. So something needs to be a th

[JAVA3D] GeometryInfo Bug?

2001-01-11 Thread Jean-Marie Dautelle
Could someone give me an example of code to create a polygon with an hole in it using com.sun.j3d.utils.geometry.GeometryInfo.setContourCounts(int[]). I tried everything and it doesn't seem to work!?? (I suspect a bug...). Thanks. ==

Re: [JAVA3D] Multitexture problem

2001-01-11 Thread Charmaine Lee
Lee, The problem is already fixed in 1.2.1beta2. Unfortunately, there is no workaround for this problem. But the good news is 1.2.1beta2 will be available very soon. -Charmaine Lee Java3D Engineering Team > From: "J. Lee Dixon" <[EMAIL PROTECTED]> > To: "'Charmaine Lee'" <[EMAIL PROTECTED]> >

[JAVA3D] CapturingCanvas3D ~ The first BufferedImage is always blank

2001-01-11 Thread Pondrom, Pierre L
Hello, I have used the subject class, but Capture0.jpeg contains only blank space. I believe it may be because no screen swap had been made. Do I need to make sure there has been a swap? or did I make an error? === To unsu

[JAVA3D] Why can not OrietentedShape3D and Text3D.setString() work together?

2001-01-11 Thread Qiuli Sun
Hi, I have a strange problem. When I used setString() to change the string in an Text3D instance of an OrientedShape3D object, the string is changed but it never rotates again. If I don't use setString() of Text3D, everything works fine. What is the reason? Thank you. Qiuli =

Re: [JAVA3D] Why can not OrietentedShape3D and Text3D.setString() work together?

2001-01-11 Thread Kelvin Chung
Hi Qiuli, The attach program invoke setString() after a few second but it works fine under v1.2. Can you please give us a test program that to illustrate this bug. Thanks. - Kelvin - Java 3D Team Sun Microsystems Inc. >X-Unix-From: [EMAIL PROTECTED] Thu Jan 11 15:39:24 2001 >M