[JAVA3D] How to quit programmatically?

2003-06-03 Thread Dola Woolfe
Hi, This is probably an FAQ, but I can't seem to find the answer. I would like to understand the loop that's "driving" Java3D. In particular, how do I stop it programatically so my program can quit w/o a System.exit() call? Can you point me to a source that talks about clearing Java3D resourses (

[JAVA3D] memory problem with removing BranchGraphs

2003-06-03 Thread Kuba Mahdal
Hi,i have a problem with removing Branch graphs from scene.   I use SimpleUniverse and have one Branch graph in the scene.I want it dynamically replaced by other one.After i do it, memory from the first is still usedand when i do it many times i received "java.lang.outOfMemory"exception.   C

[JAVA3D] Displaying text at the top of canvas

2003-06-03 Thread hammad
I want to display text at the right corner on the canvas that should always be visible while i room around by 3d universe I am using VirtualUniverse ... I heard that there are util packages like one available at http://www.newdawnsoftware.com/ but i think they are for only simpleUniverse ...

[JAVA3D] Sound related error

2003-06-03 Thread jrs
Hi All, I am getting the following wierd run-time error that is rather hard to trace for obvious reasons, anyone seen it before? any suggestions? I'm pretty sure it's in relation to haveing a sound below a switch? but this should be allowed shouildn't it? java.lang.ClassCastException at j

[JAVA3D] AW: [JAVA3D] 3D Studio MAX

2003-06-03 Thread Florin Herinean
Just a quick comment: if you have few objects, the Vector stuff should be ok. However, if the number of objects increases and you need speed, you may consider using a HashMap or Hashtable for storing the name-shape pairs instead of a Vector. Cheers, Florin -Ursprüngliche Nachricht- Von:

[JAVA3D] AW: [JAVA3D] problem with axis of revolution

2003-06-03 Thread Florin Herinean
As David have said, it's either a lighting problem or, more probable, a geometry construction problem. I've tryied to play with your profile. There are two pictures attached, first contains two objects, the profile rotated first around y axis and second around x axis. The second picture shows the

[JAVA3D] AW: [JAVA3D] Isometric Projection

2003-06-03 Thread Florin Herinean
Well, I'm not very sure, but if you set a parallel projection in the view and move the camera to a fixed position, let's say (100, 100, 100) and look at the origin (0, 0, 0), isn't that an isometric projection ? Cheers, Florin -Ursprüngliche Nachricht- Von: Justin Couch [mailto:[EMAIL P

[JAVA3D] New sound bug in 1.3.1

2003-06-03 Thread Nikolai V. Chr.
I use the example sound program, with system outs enabled. First I run the program until it writes: Test Complete Then I start minimizing it, then maximize it, and does this with some seconds delay. What should happen is: NOTHING What happens is : the sounds start playing again, or becom

[JAVA3D] OrderedGroup and transparency

2003-06-03 Thread Jeremy Booth
Hi I'm still having troubles with multiple transparencies, but having spend 4 days at it' I noticed the one difference to the code that works, and what I'm doing, mine are buried under an ordered group, if I change this for a branchgroup the transparencies work with each other, and I can see tran

[JAVA3D] Java3D's use of OpenGL display lists

2003-06-03 Thread Rob Nugent
Does anyone know if it's possible to stop Java3D using OpenGL displaylists ? E.G. is there a property I can set on the Java command line at start up ? Thanks, Rob -- Rob Nugent Sun Microsystems, Southampton, UK [EMAIL PROTECTED] Tel: +44 (0) 1489 585503 Fax: +44 (0) 1489 881363 ==

[JAVA3D] Canvas3D resizes in JSplitPane

2003-06-03 Thread Raghavendra R
Hi, I have a JSplitPane which has been split vertically. Now, this JSplitPane has 2 JSplitPanes on the left and right half. The left JSplitPane has 2 Canvas3Ds and the right JSplitPane has a bottom Canvas3D and a top Chart (extends JPanel). All the Canvas3Ds are attached to JPanels which in turn a

Re: [JAVA3D] Isometric Projection

2003-06-03 Thread Carlos D Correa
It is possible to have isometric projections. It's just a matter of setting an orthographic projection: view_.setProjectionPolicy(View.PARALLEL_PROJECTION); (optional: you can change the scale, i.e. "zoom" explicitly, using: view_.setScreenScalePolicy(View.SCALE_EXPLICIT);

[JAVA3D] Java 3D FAQ Weekly Posting (02 Jun 2003)

2003-06-03 Thread The Java 3D FAQ
The Java 3D Frequently Asked Questions list for Monday June 2 2003 This is a posting of topics covered in the Java 3D FAQ. The answers to these questions are kept at: http://www.j3d.org/faq Please consult this list and the web site before asking questions on the mailing list. If there

[JAVA3D] platform issue with texture image and linearray?

2003-06-03 Thread Tom Rink
Hi, I have an application wherein LineArrays turn black if they are displayed with a Texture. I'm running RedHat 8.0 with Sun's jdk1.3.1_08 and Java3D 1.3 fcs from Blackdown. I'm using a NVidea Quadro4 900XGL and I'm *fairly* sure the XFree86/OpenGL/nvidea drivers are updated and installed prope

Re: [JAVA3D] Displaying text at the top of canvas

2003-06-03 Thread Jeremy Booth
hammad wrote: I want to display text at the right corner on the canvas that should always be visible while i room around by 3d universe I am using VirtualUniverse ... I heard that there are util packages like one available at http://www.newdawnsoftware.com/ but i think they are for only simp

Re: [JAVA3D] Java3D's use of OpenGL display lists

2003-06-03 Thread CARLOS DA SILVA DOS SANTOS
Use java -Dj3d.displaylist=false AppName For a more complete list of Java 3D properties see: http://www.j3d.org/implementation/properties.html Hope this helps, Carlos -Original Message- From: Rob Nugent [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 2 de junho de 2003 12:39 To: [EMAI

[JAVA3D] setupCallback problem

2003-06-03 Thread Yi
Hi, All: I'm using PickMouseBehavior to pick and transform the objects in a scene. I need to get the information of transformations, so I use pick behavior's setupCallback() method. But after I call this method, the movement of the transformations became out of control, very big movements for r

Re: [JAVA3D] Java3D's use of OpenGL display lists

2003-06-03 Thread N. Vaidya
>On Mon, 2 Jun 2003 16:39:08 +0100, Rob Nugent <[EMAIL PROTECTED]> wrote: >Does anyone know if it's possible to stop Java3D using OpenGL displaylists ? >E.G. is there a property I can set on the Java command line at start up ? > Rob, I'm not sure if such a command line option has been made publi

Re: [JAVA3D] platform issue with texture image and linearray?

2003-06-03 Thread N. Vaidya
Well, something which caught my eye...TetrahedronILA doesn't have texture coordinates specified. Have you added them to the code ? I can confirm that on windows textured lines have been working even with Java versions pre-dating yours, though I may have used only a selected texture modes. Rgds V

Re: [JAVA3D] platform issue with texture image and linearray?

2003-06-03 Thread N. Vaidya
Hmm..something seems to be awry with my e-mail system today... none of my e-mails seem to go thru' Anyways, just wanted to check if you had specified Texture Coordinates on the TetrahedronILA. Set the Texture_COORDINATE_2 ( or even 3 )bit and do a setTextureCoordinates(...) on the ILA if you haven

Re: [JAVA3D] AW: [JAVA3D] Isometric Projection

2003-06-03 Thread Justin Couch
Florin Herinean wrote: Well, I'm not very sure, but if you set a parallel projection in the view and move the camera to a fixed position, let's say (100, 100, 100) and look at the origin (0, 0, 0), isn't that an isometric projection ? No. Isometric projection is a technique used in architectural a

Re: [JAVA3D] Java3D's use of OpenGL display lists

2003-06-03 Thread N. Vaidya
Sorry, there does appear to be a command line as Carlos mentioned. I really need to download and cache the props. file from j3d.org...:) Vaidya >On Mon, 2 Jun 2003 09:57:58 -0600, N. Vaidya <[EMAIL PROTECTED]> wrote: >>On Mon, 2 Jun 2003 16:39:08 +0100, Rob Nugent <[EMAIL PROTECTED]> wrote: > >

Re: [JAVA3D] AW: [JAVA3D] Isometric Projection

2003-06-03 Thread Karsten Wutzke
Justin Couch wrote: Florin Herinean wrote: Well, I'm not very sure, but if you set a parallel projection in the view and move the camera to a fixed position, let's say (100, 100, 100) and look at the origin (0, 0, 0), isn't that an isometric projection ? No. Isometric projection is a technique

Re: [JAVA3D] AW: [JAVA3D] Isometric Projection

2003-06-03 Thread Carlos D Correa
But that's precisely what you get when you fix the camera to some point (1,1,1) looking at (0,0,0). It is called isometric projection because the result is that angles between the three axes are equal (120 degrees) The fact that games use 2D or software rendering is just a matter of implementation.

Re: [JAVA3D] AW: [JAVA3D] Isometric Projection

2003-06-03 Thread Smith, David
For a good discussion of this see "Computer Graphics: Principles and Practice" Foley, van Dam, et al. -DaveS > -Original Message- > From: Carlos D Correa [mailto:[EMAIL PROTECTED] > Sent: Monday, June 02, 2003 6:29 PM > To: [EMAIL PROTECTED] > Subject: Re: [JAVA3D] AW: [JAVA3D] Isometr

Re: [JAVA3D] AW: [JAVA3D] Isometric Projection

2003-06-03 Thread Justin Couch
Carlos D Correa wrote: But that's precisely what you get when you fix the camera to some point (1,1,1) looking at (0,0,0). It is called isometric projection because the result is that angles between the three axes are equal (120 degrees) The fact that games use 2D or software rendering is just a m

Re: [JAVA3D] AW: [JAVA3D] Isometric Projection

2003-06-03 Thread Carlos D Correa
That's right, isometric projection cannot have perspective distortion. Of course, in order to get isometric projection you must set: view.setProjectionPolicy(View.PARALLEL_PROJECTION) and that's it. But again, it is possible to do it with Java3D. (Definition of isometric projection: http://www.w

Re: [JAVA3D] DOM interface for j3d/xj3d?

2003-06-03 Thread josh
Justin Couch wrote: Very simple - the requirements of DOM and those of the X3D scene graph model are almost mutually incompatible. [...] Justin Couch http://www.vlc.com.au/~justin/ That was really very enlightening. Thanks very much for the detailed reply - I appreciate it.

Re: [JAVA3D] platform issue with texture image and linearray?

2003-06-03 Thread Martin Traverso
Hi Tom, I'm having a similar problem on linux. The following applet will work ok on Windows, but on Linux all the stars will turn black (they are implemented as a PointArray). http://clans.gameclubcentral.com/shoot/earth If I remove the textured sphere from the scene the stars will show up fine.

Re: [JAVA3D] How to quit programmatically?

2003-06-03 Thread "Schäfer, Peter"
AFAIK, it is sufficient to call SimpleUniverse.removeAllLocales() that should clean up all J3D resources. I don't think that the J3D threads need to be shut down explicitly (supposing that they are deamon threads). > -Original Message- > From: Dola Woolfe [mailto:[EMAIL PROTECTED] > S

Re: [JAVA3D] Java3D's use of OpenGL display lists

2003-06-03 Thread Rob Nugent
Carlos, (and Vaidya), Thanks for your replies. I don't know how I missed this on j3d.org... Rob CARLOS DA SILVA DOS SANTOS wrote: Use java -Dj3d.displaylist=false AppName For a more complete list of Java 3D properties see: http://www.j3d.org/implementation/properties.html Hope this helps, Carl

[JAVA3D] Object detection

2003-06-03 Thread P Watson
Hi, I am wondering if anyone can help me. I have loaded a vrml file into my Java3D scene, assign a setUserData method to the branchgroup with a relative name. I have a separate pick routine that i would like to detect what object i have selected by using the getUserData method. The problem is tha

Re: [JAVA3D] OrderedGroup and transparency

2003-06-03 Thread Vladimir Vernikovski
Hi! If you use complex secluded transparency objects, OrderedGroup not help. OrderedGroup just make render objects one by one in compliance with childIndexOrder parameter. Try to use Universe options: u.getViewer().getView().setTransparencySortingPolicy(View.TRANSPARENCY_SORT_GEOMETRY); u.getVie

Re: [JAVA3D] OrderedGroup and transparency

2003-06-03 Thread Vladimir Vernikovski
On Mon, 2 Jun 2003 14:48:31 +0100, Jeremy Booth <[EMAIL PROTECTED]> wrote: >Hi > I'm still having troubles with multiple transparencies, but having spend 4 >days at it' I noticed the one difference to the code that works, and what I'm >doing, mine are buried under an ordered group, if I change t

Re: [JAVA3D] OrderedGroup and transparency

2003-06-03 Thread hterrolle
i have never use transparency. could you give some example. thanks -Message d'origine- De : Vladimir Vernikovski <[EMAIL PROTECTED]> À : [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date : mardi 3 juin 2003 12:40 Objet : Re: [JAVA3D] OrderedGroup and transparency >On Mon, 2 Jun 2003 14:48:31 +0

Re: [JAVA3D] OrderedGroup and transparency

2003-06-03 Thread Vladimir Vernikovski
You'v wrote: "I'm still having troubles with multiple transparencies...". May be you are using transparency :) Vladimir A. Vernikovski Programmer --- JPROOF Technologies Ltd. - Original Message - From: "hterrolle" <[EMAIL PROTECTED]> To: <[EMAIL PROT

Re: [JAVA3D] Object detection

2003-06-03 Thread Martin Frey
Try BranchGroup instead Node     = PICKING ===BranchGroup shapeClicked = null;    // Get Object Data to determine part  shapeClicked = (BranchGroup) pickResultArray[i].getObject();  Object shapeSelected = shapeClicked.getUserData(); greetz Martin   - Ori

Re: [JAVA3D] OrderedGroup and transparency

2003-06-03 Thread Jeremy Booth
Hi I guess I didn't explain well enough what I'm doing. I have a 3d world that contains transparent objects, these interact with each other as expected (most used to simulate lights/lens flare), then I am creating a HUD close to the viewer. The hud is designed to accept multiple levels and each o

[JAVA3D] Canvas3D resizes in JSplitPane

2003-06-03 Thread Raghavendra R
Hi, I am resending this mail. I have a JSplitPane which has been split vertically. Now, this JSplitPane has 2 JSplitPanes on the left and right half. The left JSplitPane has 2 Canvas3Ds and the right JSplitPane has a bottom Canvas3D and a top Chart (extends JPanel). All the Canvas3Ds are attached

Re: [JAVA3D] OrderedGroup and transparency

2003-06-03 Thread Vladimir Vernikovski
I undestand... Can you send me working sources of this application to let me run it in my computer and perfom some experiments? Vladimir A. Vernikovski Programmer --- JPROOF Technologies Ltd. - Original Message - From: "Jeremy Booth" <[EMAIL PROTECT

[JAVA3D] FW: Re: [JAVA3D] AW: [JAVA3D] Isometric Projection

2003-06-03 Thread Smith, David
Title: FW: Re: [JAVA3D] AW: [JAVA3D] Isometric Projection Is it just me or is this list bouncing messages as undelivered even though they are delivered? Last couple of mails I sent to the list did this. But I still see my message posted. Just checking, -DaveS  -Original Mess