[JAVA3D] Picking (for a change!)

1999-09-21 Thread Tim Uren
Hi all,   I wonder if any kind soul can help?   I am in the latter stages of developing a simple modelling program and am trying to 'glue' objects together to form more complex models.  So far during the development each new primitive has been added to the same branch group for simplicity, an

[JAVA3D] API documentation for utilities packages

1999-09-21 Thread Gareth Morgan
Does anyone know whether the full API documentation avaiable on-line for the Java 3D utils packages(com.sun.j3d.utils). It is available for javax.media.j3f and javax.vecmath packages but not for the utils packages. === To un

[JAVA3D] texture mapping question

1999-09-21 Thread ing. P.W.L. JANSSEN
Hi all, I want to make a very simple box with a texture on it. I read in the book Ready-to-run Java 3D how to do it but I still get the error message: Error: in loading image Error: in loading image java.lang.NullPointerException at com.sun.j3d.utils.image.TextureLoader.getTexture(TextureLoader

[JAVA3D] extrusion

1999-09-21 Thread Oliver Radfelder
Hi Until recently, I only worked with VRML. So one of the things I really miss is something like the EXTRUSION-Node. Am I right? I need it because I want to use it for extruding a 2D-shape from one Point3f to another. If there is a better way with Java3D it would be nice if someone could tell m

Re: [JAVA3D] Runtime commands

1999-09-21 Thread Jan Kuras
Hi Renaud, to run the command-line commands like copy, mdir,... the only important thing to do it is to give the shell to the exec("...") So your commynd would lok like this: r.exec("command.com /c copy t1.java t2.java"); I hope it helps. Regards, jan CAZOULAT Renaud CNET/DIH/REN wro

Re: [JAVA3D] API documentation for utilities packages

1999-09-21 Thread Kevin Rushforth
If you go to the main Java 3D API Home Page (at java.sun.com/products/java-media/3D), you will see this: NOTE: The Java 3D API documentation does not include documentation for the com.sun.j3d.* packages. Documentation for these packages is available as part of the

[JAVA3D] Picking a point in a Shape

1999-09-21 Thread Jean-Yves BRUD
I would like to pick a point in a Shape3D.   The pickNode method of PickObject class only get picking information about Nodes. No precise information like point, line or triangle picked seems available.   Is ther a good (and simple) solution ?? :-(   Thanks.   =

Re: [JAVA3D] Picking (for a change!)

1999-09-21 Thread Guillermo E. Gutierrez
Tim, What do you mean by "fails to work"?  Do you get an exception or simply nothing?  It may be a capability problem.  Do you have setPickable(true) on ALL the pertinent nodes (ie. object and it's "owner"?).  Remember that a getPickable value of false indicates that this Node and ALL its childr

[JAVA3D] Using Multiprocessor or Native Threads

1999-09-21 Thread Shawn Kendall
Well, I feel pretty dumb! I wrote a test program that spawns a couple of looping threads and sure enough it hammers both processes on NT using JDK1.3. So.. My question now is, why, when I set-up a behavior that loops (attempting to reproduce the threading test above) does Java3D NOT use up all

Re: [JAVA3D] texture mapping question

1999-09-21 Thread CAZOULAT Renaud CNET/DIH/REN
Hi, a null pointer exception in texture loader often means it cannot find the texture. Try to use the constructor with an url like : TextureLoader texLod0 = new TextureLoader(new java.net.URL ("file:sign1.gif"), new String("RGB"), this); I

[JAVA3D] J3D into JavaBeans?

1999-09-21 Thread Tristan Wang
Does anyone have any experience writing a J3D program into a JavaBean? I wrote an applicationn in J3D and J2D. I'd like to import it into an existing program that was in Visual Basic. I was thinking about convert the java program into JavaBean, then ActiveX. Thanks for any pointers. Tristan _

Re: [JAVA3D] Using Multiprocessor or Native Threads

1999-09-21 Thread Mats Olsson
> Well, I feel pretty dumb! I wrote a test program that spawns a couple of > looping threads and sure enough it hammers both processes on NT using > JDK1.3. > So.. > My question now is, why, when I set-up a behavior that loops (attempting > to reproduce the threading test above) does Java3D NO

Re: [JAVA3D] All QuadArrays disappear [Update 1]

1999-09-21 Thread Barry Walsh
Hello Daniel, I've been having a little closer look at the disappearing QuadArray and have found an interesting item. My object does not disappear when I input the geometry file from the command line. This means: 1. when geometry is supplied at the command line, the Shape3D is created with t

Re: [JAVA3D] J3D into JavaBeans?

1999-09-21 Thread mark rudolph
You probably want to cut up your program into 'Components' and create interfaces for them that conform to JavaBean 'design patterns'. Most of the J3D classes, being well-thought out Objects, are already convenient packages of functionality and follow to some extent the JavaBean design patterns any

[JAVA3D] Upcasting ViewerAvatar

1999-09-21 Thread Douglas Tarr
Hi java3d people, I'm using the ViewerAvatar utility class. I'm using the VRML loader to load the avatar geometry for the avatar, and I'm trying to upcast(I think that's the direction?) from a BranchGroup to a ViewerAvatar. First off, can you do this? My code looks like this: SimpleUniverse

[JAVA3D] Java3D on solaris2.7 - can't load J3D error solution

1999-09-21 Thread Peter Kunszt
Using solaris2.7 on sun boxes that do not have OpenGL graphic cards is far superior to using MESA. Sun's software-GL is well written and worth the upgrade. The Java3D installation lacks a crucial hint though - it took me quite a while to figure out that the infamous 'cant find J3D in java.library

[JAVA3D] Any dashboard examples?

1999-09-21 Thread Tim Bray
Anyone have an example of a dashboard-style thing? I'm trying to add status readouts to PlatformGeometry objects in the presence of a KeyboardNavigator and having trouble producing any visible effect. -Tim === To unsubscribe

Re: [JAVA3D] Detaching BranchGroup

1999-09-21 Thread Leung, Sunny
Hi Marco, I had tried behavior.setEnabled(false) but without any success. The CPU usage is still 100%. Fortunately, I have been told my Sun engineer that this particular problem will be solved in the upcoming v1.2 alpha release. So you can actually detach a collision detection behavior at run-ti