Re: [JAVA3D] Bounds of loaded 3DS model

2005-02-23 Thread John Wright
Peter, No, there is no way to set the bounds in 3D Studio Max. It's been a long time since I look at the bounds issues but as I recall the Java 3D code will automatically encapsulate your shape in a bounding box. Thus if you have even a tiny portion of your model far away from the main model it wi

[JAVA3D] Getting Vertices just onetime..

2005-02-23 Thread Rolf Gabler-Mieck
Hi all, I load a surface (ElevationGrid) with the VRML97 loader and like to have the coordinates of every Vertex... but just once. to get all used Vertices I use: GeometryArray dgeom=(GeometryArray)shape3d.getGeometry() ; int vertexanz=dgeom.getVertexCount() ; dgmpoints=new Point3f[vertexanz]; for(

Re: [JAVA3D] keyNavigatorBehavior & view problem

2005-02-23 Thread Brian McCormick
Hi, You could do this to translate the x-component of the viewer: //get transform3D of platform simpleUniverse.getViewingPlatform(). getViewPlatformTransform().getTransform(transform3D); transform3D.get(trans); //translate x-component trans.x += desiredDeltaX; //re-set tr

Re: [JAVA3D] Problem with Offscreen Canvas3D

2005-02-23 Thread Bill Rumpl
This is my last (I hope) missive on this topic. The problem that I was having with rendering an off-screen Canvas3D image (see my previous inquiries on this subject) was found to be due to the color-depth setting on my SunBlade 100 workstation. Apparently when the workstation was originally setup

Re: [JAVA3D] Getting Vertices just onetime..

2005-02-23 Thread Mike Goldwater
> But what I need is an array with every single vertex. > is there an easy way, ... > get all values between "hight[" and "]"? Yes. Add each point to a HashSet. The set will only hold one copy of each point. Then iterate through the set putting the points into a new array. Set set=new HashSet();

Re: [JAVA3D] Getting Vertices just onetime..

2005-02-23 Thread Christophe LOREK
to produce your array, you could use the toArray method of the HashSet (inherited from AbstractCollection) Set set=new HashSet(); for(i=0; i To: Sent: Wednesday, February 23, 2005 9:56 PM Subject: Re: [JAVA3D] Getting Vertices just onetime.. > > But what I need is an array with every single ve