[JAVA3D] question about collision detection

2003-01-10 Thread Aaron
Hi I want to deduce the topological relationship between a few 3D objects, such as boxes, cylinders, and balls. I can write my own algorithm to calculate the spatial relationship. But it might not be the most efficient way to solve the problem. I heard that some software deduced the topological re

[JAVA3D] Réf. : [JAVA3D] question about collision detection

2003-01-10 Thread Jacky Rymasz
here a good start for you :) http://www.j3d.org/implementation/collision.html Jack Aaron

Re: [JAVA3D] VRML setting Capabilities

2003-01-10 Thread Philip J Colbert
Thanks I had already place the offending section into a try block and all worked out fine. Thanks for the responses. So now I know what was causing it thanks. C YA Phil Colbert :) >= Original Message From Discussion list for Java 3D API <[EMAIL PROTECTED]> = >Philip J Colbert wrote

Re: [JAVA3D] problem with View clipping

2003-01-10 Thread Nitin.Jain
Kelvin, I'm attaching a test file which creates 300 spheres in the scene. There is also a slider which can be used to move the front clipping plane. After the initial display, move the slider leftward this will reduce the front clip distance. Then if you rotate the view a little bit you will see l

[JAVA3D] apply texture

2003-01-10 Thread Jonathan Cheung
Dear All, Anyone can send me an example about how to apply texture to a imported object? Thanks! == Disclaimer == This message is intended only for use of the addressees and may contain information

[JAVA3D] Triangulating irregular grid of points.

2003-01-10 Thread Nathan Bower
Hello List, Ive been piddling around with a problem for a while now, and have not yet found an elegant solution. I have an array [x][y] that holds height values (x always equals y) and another identically sized array that holds importance values. From these arrays I extract height values only if

[JAVA3D] Réf. : [JAVA3D] More X3D M6

2003-01-10 Thread Jacky Rymasz
I installed Xj3D M6 from the .exe on Win NT SP6. I have JDK 1.4.0.1 and J3D 1.3. I tried the "hello world" example from http://www.web3d.org/TaskGroups/x3d/translation/examples/HelloWorld.html Here the code: http://www.web3d.org/specification/x3d/x3d-3.0.dtd";>

[JAVA3D] Roam tiled terrain data question

2003-01-10 Thread Desiree Hilbring
Hi, I am still fiddling with the Roam code of code.j3d.org. I am using SimpleTiledTerrainData. This class has a method setActiveBounds(Rectangle bounds) which is not implemented yet. The documentation says it should limit the access to an area of the terrain. However, in class SplitMergeLandscape

[JAVA3D] Local Coords difference from VRML

2003-01-10 Thread Philip J Colbert
Hi All I have successfully loaded a VRML model and set all the capabilities now I have a question about the XJ3D Loader "Vrml97Loader" when importing the geometry of the Vrml model are there any changes to the Local coordinates points? That may not be very clear but the reason I ask is: In the

[JAVA3D] Bug in triangulating polygons with multiple contours

2003-01-10 Thread Tero Karhunen
Title: Bug in triangulating polygons with multiple contours It seems that sometimes when i attempt to use GeometryInfo by specifying polygons with holes, the triangulated results aren't correct. The test method attached can duplicate this, it only creates a Shape3D however, since even a min

Re: [JAVA3D] how to move an object with curse

2003-01-10 Thread Jack Bowie
Can't be sure without looking at your code, but the problem may be the translate scale factor you're using in the behavior (pixels to virtual world motion). I used the following factor for one of my apps (it uses parallel projection thus getScale()). transFactor = canvas.ge

[JAVA3D] Question on the theory of picking

2003-01-10 Thread Rob Nugent
Hi All, I have a question for the Java3D folks. In my app, I am using the method in Shape3D: intersect(SceneGraphPath path, PickRay pickRay, double[] dist); Now, I'd really like to know the normal at the intersection point, and I'm wondering whether it would (theoretically) be possible for a *si

[JAVA3D] Creating Native Executables in JBuilder w/ Java3D libraries

2003-01-10 Thread Nick Stark
Hello, I recently noticed that JBuilder7 has the ability to create native executables for a project, and I decided to just try it out to see how it worked. I include all the java3D dependencies in the jar file that is created for the executable, but when I run the executable, I get an error that

[JAVA3D] Réf. : [JAVA3D] Creating Native Executables in JBuilder w/ Java3D libraries

2003-01-10 Thread Jacky Rymasz
Just an idea: have you tried to include the dlls (J3DUtils.dll, j3daudio.dll, J3D.dll from the rep \jre\bin)??? Jack Nick Stark

Re: [JAVA3D] Creating Native Executables in JBuilder w/ Java3Dlibraries

2003-01-10 Thread John Wright
Nick, I'm assuming that JBuilder is only making an exe launcher like Codewarrior does. (thus it still requires Java and Java 3D to be installed on any client machine) JBuilder hasn't actually added a Java native compiler has it? - John Wright Starfire Research Nick Stark wrote: > > Hello, > > I

Re: [JAVA3D] Creating Native Executables in JBuilder w/ Java3Dlibraries

2003-01-10 Thread Nick Stark
You are correct. The Java and Java3D JREs must be present on the computer running the executable. Actually, I encountered the problem on a coworker's computer yesterday (who also has all the sdks installed), but trying the same executable on my computer is working, so I'm guessing it might be an

Re: [JAVA3D] Bug in triangulating polygons with multiple contours

2003-01-10 Thread Dave Smith
Title: Bug in triangulating polygons with multiple contours I'm surprised such a simple example doesn't work.  I even reduced the noise and made everything planar.    Looks like a bug to me.   -DaveS   ps.  Used same setup pps.  Here is the modified data:   Point3d[] coordinates = { 

Re: [JAVA3D] Creating Native Executables in JBuilder w/Java3Dlibraries

2003-01-10 Thread John Wright
Nick, Long ago I ran into a similar issue with Codewarrior. The EXEs were keyed to a specific JRE and if the client updated Java the old EXEs would no longer work. Thus I stopped using the EXEs. So now I'm back to using batch files or JAR files to launch Java programs. The only real problem I

Re: [JAVA3D] Creating Native Executables in JBuilder w/Java3Dlibraries

2003-01-10 Thread Nick Stark
John, Thanks for your help. As far as your comment on allocating memory, I have never thought about how to do that without using a batch file, but I might have to look into that out of curiosity since it is an annoyance at times, but at least it's nothing more than that. I'll post an answer if I

[JAVA3D] AW: [JAVA3D] Bug in triangulating polygons with multiple contours

2003-01-10 Thread Florin Herinean
Title: Bug in triangulating polygons with multiple contours Well, it's more or less a bug. The GeometryInfo actualy is not really generating a "planar surface with a hole" but a sort of a mesh. If the "hole" coordinates are not in the same plane, it will create a 3d surface which is not in th

Re: [JAVA3D] ? Frame Rates ?

2003-01-10 Thread John Wright
Mario, The first aspects (from a Java 3D point of view) that I'd look at would be the size of your texture map for the earth model and how are you creating your earth sphere (how many vertices does it have?). The TNT2 isn't exactly a fast video card by today's standards and I suspect it would be

[JAVA3D] Pick Result Capability

2003-01-10 Thread Brobbey,Isaac (neuron)
Dear All: how do I set the capability for Pick result object to read a cone ? this the code that does it. public void mouseClicked(MouseEvent e) { String stdev; JSObject win = JSObject.getWindow(this); pickCanvas.setShapeLocation(e);

Re: [JAVA3D] ? Frame Rates ?

2003-01-10 Thread ZACZEK, MARIUSZ P. (JSC-DM) (NASA)
oops...sorry, I meant to include that OS info. I'm running: Windows 2000 Java 2 SDK v1.3.1_01 Java 3D 1.3 (DirectX) SDK The size of the texture for the earth (and mercator map) is: 254 KB The sphere used for the earth is just the standard default sphere. The size of the VRML model is: 95

Re: [JAVA3D] Réf. : [JAVA3D] More X3D M6

2003-01-10 Thread Justin Couch
Jacky Rymasz wrote: I tried the "hello world" example from http://www.web3d.org/TaskGroups/x3d/translation/examples/HelloWorld.html Here the code: http://www.web3d.org/specification/x3d/x3d-3.0.dtd";> The problem is this bit. It's wrong. Quite franky, I would not trust _anything_ in t

Re: [JAVA3D] ? Frame Rates ?

2003-01-10 Thread Justin Couch
John Wright wrote: j3d.org note: Justin - we really should have an easy to find example of how to make a frame rate counter in the j3d.org FAQ. This is a very basic aspect of Java 3D that most everyone ends up wondering about when they are first learning Java 3D (I don't think Sun's example code

Re: [JAVA3D] ? Frame Rates ?

2003-01-10 Thread Justin Couch
ZACZEK, MARIUSZ P. (JSC-DM) (NASA) wrote: The size of the VRML model is: 955 KB That's a huge model! What have you got in there? I woiuldn't be surprised if that is causing you problems because of the amount of geometry being thrown at the video card. -- Justin Couch ht

Re: [JAVA3D] ? Frame Rates ?

2003-01-10 Thread John Wright
Mario, You could try the OpenGL version of Java 3D. There are many factors that influence this but it can make up to a 50% difference in performance. The size of the texture file isn't important, the dimensions and color depth are! If that is a JPG, then most likely it's "huge". Convert it to

Re: [JAVA3D] problem with View clipping

2003-01-10 Thread Kelvin Chung
Nitin.Jain wrote: Kelvin, I'm attaching a test file which creates 300 spheres in the scene. There is also a slider which can be used to move the front clipping plane. After the initial display, move the slider leftward this will reduce the front clip distance. Then if you rotate the view a littl

Re: [JAVA3D] ? Frame Rates ?

2003-01-10 Thread ZACZEK, MARIUSZ P. (JSC-DM) (NASA)
I can't believe you think the 955 KB model is huge...that's smaller than 1 MB...did I list that wrong? I mean I have models which I'd like to eventually use and they are about 5MB. Mario Mariusz Zaczek NASA - Johnson Space Center Automated Vehicles and Orbit Analysis / DM35 Flight Design and

Re: [JAVA3D] Pick Result Capability

2003-01-10 Thread Hans Horn
First of all, the capability in question is not to be set on the PickResult, but rather on the object (and/or its parent) you are trying to read! To enable geometry picking on a Primitive, call its setCapability(Primitive.ENABLE_GEOMETRY_PICKING). For a Shape3D, you need setCapability(Shape3D.ALL

Re: [JAVA3D] ? Frame Rates ?

2003-01-10 Thread ZACZEK, MARIUSZ P. (JSC-DM) (NASA)
I'll try reducing the image...I did try that before and did see a performance increase but I was hoping to keep the detail. The stars are represented just by points. I wish I could replace the TNT2 card...but that is not up to methese are NASA computers. And the TNT2 is the lowest card that m

Re: [JAVA3D] ? Frame Rates ?

2003-01-10 Thread Justin Couch
ZACZEK, MARIUSZ P. (JSC-DM) (NASA) wrote: I can't believe you think the 955 KB model is huge...that's smaller than 1 MB...did I list that wrong? For the system you're trying to run it on, yes, that's quite a complex model. I'm guessing something around 10 - 15K polygons and a collection of scrip

Re: [JAVA3D] ? Frame Rates ?

2003-01-10 Thread Alan Hudson
ZACZEK, MARIUSZ P. (JSC-DM) (NASA) wrote: I can't believe you think the 955 KB model is huge...that's smaller than 1 MB...did I list that wrong? I mean I have models which I'd like to eventually use and they are about 5MB. Really depends. I have a project that is 20MB of VRML data that runs fi

Re: [JAVA3D] ? Frame Rates ?

2003-01-10 Thread ZACZEK, MARIUSZ P. (JSC-DM) (NASA)
The space station model has 8555 triangles (according to 3DReducer which is now called VIZup Optimizer www.3dreducer.com) Although, for some reason it did not display the model correctly...at least not like it is displayed in my VRML (vrml97) animationkind of wierd. Mario Mariusz Zaczek N

Re: [JAVA3D] ? Frame Rates ?

2003-01-10 Thread ZACZEK, MARIUSZ P. (JSC-DM) (NASA)
Yes, I update the 2D panels basically every time I update the graphics on the screenwhich I set my wakeupon conditions to be: private WakeupOnElapsedFrames conditions = new WakeupOnElapsedFrames(0,false); Basically as fast as possible. Ok, here is the test results on a DIFFERENT machine:

Re: [JAVA3D] ? Frame Rates ?

2003-01-10 Thread Alan Hudson
ZACZEK, MARIUSZ P. (JSC-DM) (NASA) wrote: Yes, I update the 2D panels basically every time I update the graphics on the screenwhich I set my wakeupon conditions to be: private WakeupOnElapsedFrames conditions = new WakeupOnElapsedFrames(0,false); Basically as fast as possible. Ok, here

Re: [JAVA3D] Question on the theory of picking

2003-01-10 Thread Kelvin Chung
Rob Nugent wrote: Hi All, I have a question for the Java3D folks. In my app, I am using the method in Shape3D: intersect(SceneGraphPath path, PickRay pickRay, double[] dist); Now, I'd really like to know the normal at the intersection point, and I'm wondering whether it would (theoretically) b

Re: [JAVA3D] ? Frame Rates ?

2003-01-10 Thread Nathan Bower
> > For the system you're trying to run it on, yes, that's quite a complex > model. I'm guessing something around 10 - 15K polygons and a collection > of scripting. TNT cards are not known for being fast, and practically > become graphics decelarators when textures are applied. Not quite! I used t

[JAVA3D] Capability Not Set Exception

2003-01-10 Thread Brobbey,Isaac (neuron)
Dear all: this is my code for creating a Cone, Cone cone = new Cone(coneRadius, coneHeight, Cone.ENABLE_GEOMETRY_PICKING|Cone.GENERATE_NORMALS|Cone.ENABLE_APPEARANCE_MO DIFY|, appearance); enumKids(cone); cone.setUserData((Object) p); enumKids(coneTGB) coneTGB.addChild(cone); return coneTGB;

Re: [JAVA3D] Capability Not Set Exception

2003-01-10 Thread Hans Horn
1. The Primitive ctor() turns on ENABLE_PICK_REPORTING by default. Nuttin to do here. 2. A Cone Primitive is made up of two Shape3Ds, one for the BODY, and one for the CAP. By specifying ENABLE_GEOMETRY_PICKING when invoking its ctor(), it should go thru all its children (CAP & BODY) and set invok

[JAVA3D] Pick Result Capability

2003-01-10 Thread Brobbey,Isaac (neuron)
Hans: this is every thing i have now on the cone cone.setCapability(Geometry.ALLOW_INTERSECT); cone.setCapability(Shape3D.ALLOW_GEOMETRY_READ); cone.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE); cone.getShape(Cone.BODY).getGeometry().setCapability(Geometry.ALLOW_INTERSEC

Re: [JAVA3D] ? Frame Rates ?

2003-01-10 Thread Michael P. McCutcheon
Just to let you know...here is my system: Pentium 2 450 Mhz. 512 MB memory TNT 1 Graphics card Windows 2000 (and Max OS X :) JDK 1.4.1_01 Java3D 1.3.1 beta1 For scenes of similar complexity I get roughly 30-60 FPS. (nothing scientific, but suffice it to say that it can be 'smooth', even on old co

[JAVA3D] Shape3D problem

2003-01-10 Thread Brobbey,Isaac (neuron)
Dear all: please look carefully at this mail. i know there is a shape3D involved, but i dont know which vintage it really occurs. the code in my mouseClicked(MouseEvent e) shows hows i try to get the cone. the error that it throws is shown below: i create a cone and set all the Capabilities for it

Re: [JAVA3D] ? Frame Rates ?

2003-01-10 Thread ZACZEK, MARIUSZ P. (JSC-DM) (NASA)
actually the model does not seem to have much affect on the speed...as a matter of fact I used a 2kb model and same issues with frame rate. These were the results of frame rates I posted before: Ok, here is the test results on a DIFFERENT machine: Dell 2.4 Pentium 4, 256 Mb ram, Nvidia Geforce2

Re: [JAVA3D] ? Frame Rates ?

2003-01-10 Thread Michael P. McCutcheon
Run your program with -verbosegc and see if the garbage collector is running often. If so, it could be that you are allocating a lot of objects in the loop somewhere. A good Java3D program won't allocate ANY objects (if possible). Zero garbage collection. All CPU goes to make 3D go fast :) i've