[JAVA3D] Problem with PickResult.getIntersections();

2004-09-07 Thread ashish khandelwal
I m trying to implementing Terrain following for that i am using a pick tool class Setting its PickRay to Start at My current Postion and Pointing Vertically down Then i pick the closest result into a PickResult Object and from this result i query intersection(0) This is working absolutely fine

Re: [JAVA3D] Three simple (and rapid) question.

2004-09-07 Thread Mike Pilone
Hello, The orbit behavior is somewhat limited. If you need precise control over movement, you may want to write your own behavior. As for 2 and 3, yes to both. To reset the position, simply modify the transform group that the orbit behavior is operating on. To get the position, read the transform

Re: [JAVA3D] Three simple (and rapid) question.

2004-09-07 Thread Claudio Mazzuco
Mike Pilone wrote: Hello, The orbit behavior is somewhat limited. If you need precise control over movement, you may want to write your own behavior. Ok, i've think on it.. pheraphs it's better if i write a "root" Transofrm3d and manipulate it for rotate-translate-size the object. If i rotate all

Re: [JAVA3D] Three simple (and rapid) question.

2004-09-07 Thread Mike Pilone
You may also want to look at using Behavior's and WakeOnAWTEvents so you can better synchronize with the renderer. I'm not positive but I think there are some examples in the Java3D tutorial for this. -mike -Original Message- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTE

[JAVA3D] Newbie Question

2004-09-07 Thread FantasyFooty.org
Hi,   I'm just getting into Java3D and was wondering whether there are any sample java files on the internet which produce a very basic first person perspective on a bumpy terrain. I've looked and ran the purple dude program from newview and would like something like this only with the camer

Re: [JAVA3D] Newbie Question

2004-09-07 Thread Ben Moxon
I don't know about sample files - I haven't seen any, or maybe I did, but not for a long time and I don't recall where- but if you follow through that tutorial you should be able to sort out a roaming camera approach from it with a bit of extension of the existing behaviour, perhaps looking

Re: [JAVA3D] Three simple (and rapid) question.

2004-09-07 Thread Rolf Gabler-Mieck
hi, there's a nice code-example for using/developing an own Behavior at j3d.org called KeyBehavior, which show how a "Doom"-Key-Naviagtion works and how to handle processStimulus & friends best regards rolf Mike Pilone schrieb: You may also want to look at using Behavior's and WakeOnAWTEvents so yo

[JAVA3D] loader3ds. docs

2004-09-07 Thread Rolf Gabler-Mieck
Hi all, theres a newer 3dsLoader at j3d.org developed by Josh DeFord & Eric Miller. Has anbody seen the docs or maybe a correct e-mail to any of the developers? thanks in advance rolf -- Rolf Gabler-Mieck c/o LGI-Geographisches Institut der CAU-Kiel Ludewig-Meyen Str. 14 24098 Kiel Tel: +49 431-880

Re: [JAVA3D] Newbie Question

2004-09-07 Thread FantasyFooty.org
Ben, quality tutorial. I wonder if you could help me modify it slightly?   I've attached this to the BranchGroup and it happily lets me look around with the mouse.       oMouseRotate_1 = new MouseRotate(MouseBehavior.INVERT_INPUT);    oMouseRotate_1.setTransformGroup(ourView.getView

[JAVA3D] Out of memory

2004-09-07 Thread Mike Goldwater
Colleagues,   In December 2000 KRK posted a note http://archives.java.sun.com/cgi-bin/wa?A2=ind0012&L=java3d-interest&F=&S=&P=36521 to the list. His application runs out of memory when he attaches and detaches screen graphs in succession. I can’t find any reply, but I have the same proble

Re: [JAVA3D] Newbie Question

2004-09-07 Thread Ben Moxon
As I'm sure you can tell, what I'm doing there is rotating the transformgroup in the Y direction - what you want to do is change the translation to step you left or right in the same way that it currently steps you forward.   Once you've compensated for the fact that I don't think you can pi

Re: [JAVA3D] Out of memory

2004-09-07 Thread cs
Mike Goldwater,您好! an old topic.I find a mail about it on 2004-07-30:     Open the Java Plug In Control Panel (Start|ControlPanel|JavaPlugIn) and click"Advanced" tab and at "Java Runtime Parameters" write  -Xmx256m You can increase the amount of max memory available to JVM just setting a valuegr

Re: [JAVA3D] Out of memory

2004-09-07 Thread Mike Goldwater
Alessandro,   Thank you for your hint. However I am up to 512MB (I have 2GB in my computer but any more than -Xm512M makes the ATI driver blue screen â a question for another day.) Eventually whatever value I use I get the out of memory problem back. KRK in his problem got the out of mem

Re: [JAVA3D] Newbie Question

2004-09-07 Thread FantasyFooty.org
Cheers. I'm still having difficulties though. When I go up it works fine, but left, right and back it just stalls the program?   Here's the methods in question as it is (all other methods are similar to the original): I've not used stepper because he tends to shoot off in the distance if the

Re: [JAVA3D] Out of memory

2004-09-07 Thread FantasyFooty.org
ï Try forcing the garbage collector to collect? - System.gc()   public void refresh(){  System.gc()  mainBranchGroup.removeChild(0);  objRoot= null;  objRotate= null;  mainBranchGroup.addChild(createSceneGraph(canvas3D));} - Original Message - From: Mike Goldwater To: [EMA

Re: [JAVA3D] Out of memory

2004-09-07 Thread Rolf Gabler-Mieck
I remind that there was a bug (it was in j3d 1.2x) due ImageTexture using jpg's bigger then 1mb (or any rasterimage..unsure)... try to downsample bigger jpgs... thats the way I'd managed this 3 years ago...maybe today there's a better solution... I never try that what goalsgoals2004 has written...

Re: [JAVA3D] Illustrator/SVG graphics?

2004-09-07 Thread Paul Gordon
Justin Couch wrote: M. Halpin wrote: Anyway, so I was wondering if anyone knew of a way to load/convert SVGs into something Java3D can render as polygons? Since SVG is an XML-based language, with a bit of XSLT hacking, you could transform it to X3D and then use one of the loaders available for tha

[JAVA3D] Runnig VirtualUniverse within Applet

2004-09-07 Thread Dudi Gil
Hi,   Is it possibleto run J3D application within applet and if it is what should be done, where to put the jar file: vecmath.jar,j3dcore.jar so the applet will recognize it ?   Regards David   === To unsubscribe, send email

Re: [JAVA3D] Runnig VirtualUniverse within Applet

2004-09-07 Thread Justin Couch
Dudi Gil wrote: Is it possibleto run J3D application within applet and if it is what should be done, where to put the jar file: vecmath.jar,j3dcore.jar so the applet will recognize it ? Because these files interact with a DLL, you have to have Java3D installed on the machine. There is a way of doin

Re: [JAVA3D] Runnig VirtualUniverse within Applet

2004-09-07 Thread Mona Wong-Barnum
Hi David: > Is it possibleto run J3D application within applet and if it is what should be done, > where to put the jar file: vecmath.jar,j3dcore.jar so the applet will recognize it ? Another option is you can also run Java 3D programs via Java Web Start; that works very well for us. che

Re: [JAVA3D] Runnig VirtualUniverse within Applet

2004-09-07 Thread michaelpfeiffer
Its really not _that_ complicated. If you can use Java WebStart instead of an applet, Sun offers everything you need for an automatic installation at https://j3d-webstart.dev.java.net/ Le Tue, 7 Sep 2004 12:12:09 -0700, Justin Couch <[EMAIL PROTECTED]> a écrit: Dudi Gil wrote: Is it possibleto run

Re: [JAVA3D] Runnig VirtualUniverse within Applet

2004-09-07 Thread Justin Couch
[EMAIL PROTECTED] wrote: Its really not _that_ complicated. If you can use Java WebStart instead of an applet, Note that he specifically requested an applet, and that is difficult to do reliably and convoluted. If he had asked for something else, I would have given a different answer. We offered Xj

Re: [JAVA3D] Runnig VirtualUniverse within Applet

2004-09-07 Thread michaelpfeiffer
Le Tue, 7 Sep 2004 12:20:56 -0700, Justin Couch <[EMAIL PROTECTED]> a écrit: [EMAIL PROTECTED] wrote: Its really not _that_ complicated. If you can use Java WebStart instead of an applet, Note that he specifically requested an applet, For me thats no reason to keep secret possibly better alternativ

Re: [JAVA3D] Runnig VirtualUniverse within Applet

2004-09-07 Thread Dudi Gil
As I understand what you are saying it's best runing a j3d via the web using WebStart. Any suggestions as to where to start, tutorials, information examples etc ? David - Original Message - From: "Justin Couch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 07, 2004

Re: [JAVA3D] Runnig VirtualUniverse within Applet

2004-09-07 Thread michaelpfeiffer
You can use my JNLP-file from http://www.3dchat.org/webstart/vu.jnlp as template. A detailled documentation about this file format can be found at http://java.sun.com Michael Le Tue, 7 Sep 2004 22:32:04 +0200, Dudi Gil <[EMAIL PROTECTED]> a écrit: As I understand what you are saying it's best runin

Re: [JAVA3D] Out of memory

2004-09-07 Thread Mike Pilone
Hello, Current Issue 25 is filed for " Memory leak of removed scene graph objects". The issue is not very detailed and lacks a test case. I know there was talk previously about removing a branchgroup and the retained graph not cleaning up properly, but do not remember the work around. If you work

Re: [JAVA3D] Out of memory

2004-09-07 Thread Justin Couch
Mike Pilone wrote: Current Issue 25 is filed for " Memory leak of removed scene graph objects". The issue is not very detailed and lacks a test case. I know there was talk previously about removing a branchgroup and the retained graph not cleaning up properly, but do not remember the work around. I

[JAVA3D] problems with PickCanvas

2004-09-07 Thread Denis Santos
Hi, In my scene I have a big Box with four Shperes. Like this: front: side: +-+ + |() ()| (|) | | | |() ()| (|) +-+ + The user may click on one of the Spheres or on the big box. I am using the PickCanvas class for this. But my problem is that for some

Re: [JAVA3D] Runnig VirtualUniverse within Applet

2004-09-07 Thread Dudi Gil
Thank you all for the information it's been very helpful. David - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 07, 2004 9:37 PM Subject: Re: [JAVA3D] Runnig VirtualUniverse within Applet > You can use my JNLP-file from http://www.3dchat.o

Re: [JAVA3D] problems with PickCanvas

2004-09-07 Thread Andre Bialojahn
Denis, > But my problem is that for some of the Spheres, when I > click on them. PickCanvas returns the Box!? > > How can I fiz this??? > Any one can help me? Some? Not all? If some work and some don't, it seems to be a logical problem, not a methodical. Are all the spheres created identically?

Re: [JAVA3D] problems with PickCanvas

2004-09-07 Thread Denis Santos
Hi, Everything must be fine with the Spheres because when I remove the Box. all the Spheres are identified correctly! Thanks Denis --- Andre Bialojahn <[EMAIL PROTECTED]> wrote: > Denis, > > > But my problem is that for some of the Spheres, > when I > > click on them. PickCanvas returns the Bo

Re: [JAVA3D] Illustrator/SVG graphics?

2004-09-07 Thread Mark McKay
The latter, although more verbose, could be manipulated by standard XSLT methods. The former requires deep XPath kung fu and declarative recursion programming to pick apart. The SVG folks went for conciseness rather than ease of transformation. :-( If you're lookiing for a good SVG reader, you co