Re: [JAVA3D] Memory handling

2001-07-16 Thread Karsten Fries
Oops, > Also, to truly override finalize of the Java native classes, > finalize must be declared protected, not private as I formerly stated or > public as in Karsten's code. thanks for the correction. Lazyness is always awkward. > protected void finalize() throws Throwable { > // your cod

Re: [JAVA3D] plz help!

2001-07-16 Thread Bob Dengle
Hi I think its because Primitive keeps track of the individual Shape3Ds that make it up. That way when a transform is applied, Primitive applys it to its child Shape3Ds. When you detach a part of the primitive it objects and refuses to work until the removed parts are reattached. For what you wan

Re: [JAVA3D] Stsreo viewing

2001-07-16 Thread Dan Petersen
Looks good! I would only add that we did address the issue of cards that share the z-buffer between the left and right eyes. We added a property j3d.sharedstereozbuffer. Setting this to true will force Java 3D to clear the Z-buffer between renderings of the left and right eyes. By default this p

Re: [JAVA3D] VRML/EAI?

2001-07-16 Thread Justin Couch
Kenneth SEE wrote: > Do you know how I can convert a text file, which whole a set of points with > x,y,z coordinates, to a VRML file? This will have to be custom code as I don't know the format of the file. These sorts of tasks are much simpler to do using your own knowledge so that you get the

Re: [JAVA3D] Question on Raster Labels

2001-07-16 Thread Doug Gehringer
Here is an implementation of Raster labels (attached). It is basically Text2D modified to used a Raster instead of a texture mapped polygon. There are currently no plans to add raster text to the Java 3D utilities, but a raster text utility may be considered if there is interest. I'd like to he

Re: [JAVA3D] Stsreo viewing

2001-07-16 Thread Justin Couch
Dan Petersen wrote: > > The FAQ needs to be updated. That's my problem. The internal version of the FAQ has not yet made it to the outside world. If you can read through all the XML, this is the current page contents: General Stereo Setup You've probably called setStereoEnable() in you

Re: [JAVA3D] Bug with OrbitBehavior and transforming viewer position?

2001-07-16 Thread Andrea Tartaro
Daniel, The view is jumping to look at the center of rotation, which by default is (0, 0, 0). Try changing your center of rotation. andrea "Römer, Daniel" wrote: > > Hi, > > I have a problem with the OrbitBehavior class. > > For that I created a simple scene with a colorcube. > Now I added th

[JAVA3D] Bug with OrbitBehavior and transforming viewer position?

2001-07-16 Thread "Römer, Daniel"
Hi, I have a problem with the OrbitBehavior class. For that I created a simple scene with a colorcube. Now I added the OrbitBehavior and I translated the viewer position to somewhere else. But after clicking with the mouse the cube jumps back to center. This only effects the translation in X a

Re: [JAVA3D] Ques. on GeometryInfo "indexifier"

2001-07-16 Thread Paul Pantera
The indexify() method uses a hash table, so the two Objects would have to have the same hashCode() to get the same index. The Classes being used are the Vecmath classes Point3f, Color3f, etc. Looking at the hashCode() implementation for those classes, there is no tolerance - the two Objects' x, y

Re: [JAVA3D] Memory handling

2001-07-16 Thread Christopher Collins
Oops! Big mistake! Of course if I had actually referred to my working code, I would have recalled the super.finalize() call and the throwable declaration... Any text or FAQ can explain finalize and it's use more clearly. Sorry for my mistake! However, I think the following would be better th

Re: [JAVA3D] Help: installation of java 3d on a notebook

2001-07-16 Thread Paul Pantera
There are known problems with our installer and the 1.4 Beta VM. Is that what you are using? If so, This is bug 4464766. You can keep tabs on the status of the bug here: http://developer.java.sun.com/developer/bugParade If you're not using 1.4, check the size of the executable file to make

Re: [JAVA3D] Installation bug

2001-07-16 Thread Paul Pantera
There are known problems with our installer and the 1.4 Beta VM. Is that what you are using? If so, This is bug 4464766. You can keep tabs on the status of the bug here: http://developer.java.sun.com/developer/bugParade If you're not using 1.4, check the size of the executable file to make

Re: [JAVA3D] Memory handling

2001-07-16 Thread Karsten Fries
Oouch, > private void finalize() { > System.out.println("BranchGroup finalized"); > } > this is definitely not the way to do it. This is a AntiPattern in Java!!! When overriding finalize make sure you use this construct public void finalize() java.lang.Throwable { // this is very

Re: [JAVA3D] Closing a JDialog

2001-07-16 Thread Frank Bellegarde
Well, I thank you for answering in such a great number. I finaly chose what some of you suggested, wich is using the JOptionPane. It works more than well enough in addition to offering many options and saving a lot of trouble. I recommend it! Thanks a lot. Frank B. Find the best deals on the w

Re: [JAVA3D] Closing a JDialog

2001-07-16 Thread David Yazel
I have to admit it is confusing. It is not documented that I can find. I spent about 5 hours on Sun's site trying to answer this same question before. There is no real way to *really* close a window. Hide it and kill the reference is about the only way that I have found. I did see some code t

Re: [JAVA3D] Closing a JDialog

2001-07-16 Thread Joachim Diepstraten
Ehlo Frank! > Could someone help me getting rid of this stupid > problem please? How about trying this.hide(). But you should actually find these sort of information in the JAVA2 API Documentation or in the JAVA2 Tutorial (GUI with Swing Chapter) EOF, J.D. -- Realtime Raytracer in JAVA (http:/

[JAVA3D] JRE Plugin & Security Permission

2001-07-16 Thread Tina Manoharan Valappil
Dear All, I am running my JApplet in Netscape using the JRE plugin. On clicking a button I want to open up NetMeeting. This is what I am doing. -- Runtime r = Runtime.getRuntime(); try {

Re: [JAVA3D] Confused Rotations?

2001-07-16 Thread Jason Taylor
> You need two TransformGroups like this: > >TG1 -- TG2 -- [Objects] > > Apply translations to TG1, and apply rotations to TG2. Doing so you will >achieve what you're looking for, I think ;) > > Vïctor Thanks!!! Works a treat and kind of makes sence. :) As I guessed this slows thin

[JAVA3D] Focus lost...

2001-07-16 Thread Víctor
Hi all, I have a Java 3D application (as you probably supposed). I use JNI to use a native viewer. The problems comes whenever I close the native viewer. Though my application goes on, I lost keyboard focus. I am not able to gain focus again, does anybody has a clue? My initialization code looks

Re: [JAVA3D] Closing a JDialog

2001-07-16 Thread Christopher Collins
Have your thought about using a JOptionPane? I think it's better if you only want a warning message to show. Something like this has all the buttons and closing methods built in: JOptionPane.showConfirmDialog(ParentFrame, warnMessage, "Warning", JOptionPane.YES_NO_OPTION ); There are also show

Re: [JAVA3D] Confused Rotations?

2001-07-16 Thread Víctor
You need two TransformGroups like this: TG1 -- TG2 -- [Objects] Apply translations to TG1, and apply rotations to TG2. Doing so you will achieve what you're looking for, I think ;) Vïctor Jason Taylor ha escrito: > Futher investigation > > It seems that by default all rot

Re: [JAVA3D] Closing a JDialog

2001-07-16 Thread Jenkins, Todd (HOU)
Frank, You might consider using the JOptionPane class. For example: JOptionPane.showMessageDialog(parent, "Your message here"); Quick and easy. There are even options to specify which buttons and icons are present. Todd -Original Message- From: Frank Bellegarde [mailto:[EMAIL PROTECT

Re: [JAVA3D] Confused Rotations?

2001-07-16 Thread Jason Taylor
Futher investigation It seems that by default all rotations are around 0,0,0 on the Y axis, how do I apply a rotation to a TransformGroup that is not located at 0,0,0 so that the object it contains stays where it was and spins around? I tried this but ended up with objects moving to 0,0,0 an

[JAVA3D] Closing a JDialog

2001-07-16 Thread Frank Bellegarde
Ok, I know this isn't Java3d but it is easier to get an answer around here 'cause there's a lot more of people. I've added a JDialog containing a warning that popup when the user mess with something. I've since then been trying to make a button inside it close the damned thing but I can't seem to

[JAVA3D] How much Hardware Memory does Java3D need ?

2001-07-16 Thread "Schäfer, Peter"
When switching to fullscreen-mode (or maximizing the window) Java3D always complains about not having enough hardware memory and switches to software mode. How much Hardware Memory does Java3D need ? Turning of double buffering didn't work, I just got a blank window ;-( Peter =

Re: [JAVA3D] newbie

2001-07-16 Thread Jenkins, Todd (HOU)
Lorena,   A large number of sample programs should have been included when you installed Java3D.  Look under JDK1.3/demo/java3d/.   -Todd -Original Message-From: Lorena [mailto:[EMAIL PROTECTED]]Sent: Sunday, July 15, 2001 10:15 PMTo: [EMAIL PROTECTED]Subject: [JAVA3D] newbie

Re: [JAVA3D] Stsreo viewing

2001-07-16 Thread Dan Petersen
The FAQ needs to be updated. If your graphics card supports stereo through either the standard OpenGL or D3D API then you can get stereo through Java 3D. Several people are running PC cards in stereo mode. Dan Petersen Java 3D Team Sun Microsystems > Delivered-To: [EMAIL PROTECTED] > MIME-Versi

Re: [JAVA3D] VRML/EAI?

2001-07-16 Thread Jason Taylor
>Can you use openGL and accomplish the same level of control you enjoy with >Java3D? I've not read anything on openGL programming but I would suspect that there is a lot of specific rendering/geometry tasks that you can't do in Java3D but you can in openGL. But as openGL is a graphic language you

Re: [JAVA3D] VRML/EAI?

2001-07-16 Thread Joachim Diepstraten
Hi Gerard > << As with any lower level approach to programming it is harder to get > things started but when you get it going there is almost no limit to > what you can do with it as you have complete control! >> > > Can you use openGL and accomplish the same level of control you enjoy with > Jav

[JAVA3D] GeomBuffer? Purpose?

2001-07-16 Thread Joachim Diepstraten
Hi While looking at the source code of the Util class Box I found an interesting class called GeomBuffer. But I couldn't find any info about it in the JAVADOCs. But to me it looks like a public class otherwise Box couldn't use it. EOF, J.D. -- Jmark2k+1 (http://www.antiflash.net/jmark) Test th

Re: [JAVA3D] Memory handling

2001-07-16 Thread Christopher Collins
Greg: Note my wording: "You can force the garbage collection _somewhat_ by calling System.gc()." Garbage collection in Java seems to be slow at best, but if objects have no references remaining and you set them to null, you are likely to get garbage collection and _if_ garbage collection occurs

Re: [JAVA3D] Memory handling

2001-07-16 Thread Justin Couch
Greg Munt wrote: > System.gc is not guaranteed to do ANYTHING. Yes it is. It is guaranteed that the VM will make its best efforts to reduce the amount of currently allocated memory that has no references to it. If it has no free references to collect, then it will not appear to do anything, but

[JAVA3D] Confused Rotations?

2001-07-16 Thread Jason Taylor
Hi, I have a scene with 300 objects and thought I'd try adding some Interpolators to spice it up. I managed a color one okay as I can generate a single material object and associate it with multiple shapes, just had to slow the cycle so that mouse responce was okay. But I wanted to try a rotation

Re: [JAVA3D] Memory handling

2001-07-16 Thread Greg Munt
This is just not true. Garbage collection is never guaranteed to happen. Ever. (This means that finalizers are never guaranteed to run, ever.) System.gc is not guaranteed to do ANYTHING. For this reason, I fail to see the point of its existence, actually. -Original Message- From: Christop

Re: [JAVA3D] Memory handling

2001-07-16 Thread Christopher Collins
You can try a trial version of the program "OptimizeIt", which will allow you to track the number of instances of each type of object while your program is running, and the amount of memory they take up. This program helped me out a lot last week. Just search for OptimizeIt on any shareware site

Re: [JAVA3D] works as an application but not as an applet for ImageComponent2D

2001-07-16 Thread Jim Allers
I can think of two reasons why there would be a difference between an applet and an application in your case.   First, applets do not have access to files on the hard disk unless you specifically specify that permission. If you run it in appletviewer, it might give you file access without spe

[JAVA3D] ... is out of office from 16/07/2001 until 29/07/2001 (additional information)

2001-07-16 Thread Daniel Moscoso
Estaré fuera del 16/7 al 29/7. I'll be out of office from 16/7 to 29/7 - Daniel Moscoso Rivas emagine Iberia Consulting and Technology, S.A.

[JAVA3D] Text3D vs. Texture

2001-07-16 Thread Gerd Mueller
Hi, I've got a lot of objects and each of them has a label created with a OrientedShape3D. The text of the label could be created either by a Text3D object or by rectangle with a texture where the texture is rendered 'online' via a BufferedImage. I would simply draw the label text into the image.

[JAVA3D] PickRay + Transformation

2001-07-16 Thread "Römer, Daniel"
hi all! Does anyone know if there is a possibility to do a transformation at a PickRay Object? The problem is that there is no difference between picking at the root branchgroup or a later attached transformgroup! As shown in the following source code I do picking from a starting point to one d

Re: [JAVA3D] VRML/EAI?

2001-07-16 Thread Jason Taylor
>I have seen your message. I am also going to work on a project of using >VRML, Java3D and Java EAI. Would you give me some journal or paper about >using the JAVA EAI and why you feel it is not good? I would like to get some >more details before I move to Java 3D. > >Many thanks, >Kenneth I'm no

[JAVA3D] Stsreo viewing

2001-07-16 Thread Guang Bin Liu
Hi EveryOne: By browsing the stereo viewing page on the Java3D FAQ, I found the following information: 1. General Stereo Setup First, be aware that in the current release of Java 3D, stereo is only supported on Sun workstations. PCs with stereo hardware will be able to use stereo in the ne

Re: [JAVA3D] Help: installation of java 3d on a notebook

2001-07-16 Thread Chris Thorne
On some systems I had to run it twice to get the installAnywhere to work (e.g. on my athlon with win98). First time it would just hang with a blank dialog box and I had to kill it off. Second time no problems. Chris Wilson Wen wrote: > I jsut downloaded (twice) the java 3d for Windows > (.exe

[JAVA3D] Help: installation of java 3d on a notebook

2001-07-16 Thread Wilson Wen
I jsut downloaded (twice) the java 3d for Windows (.exe files) from sun web site but have trouble to install on my Toshiba Tecra notebook (P3 733 with 256MB memory running Windows 2000 SP2). When I run the .exe, only an InstallAnyWhere dialogue box came out but nothing else. Then the installation