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
here a good start for you :)
http://www.j3d.org/implementation/collision.html
Jack
Aaron
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
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
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
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
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";>
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
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
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
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
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
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
Just an idea: have you tried to include the dlls (J3DUtils.dll,
j3daudio.dll, J3D.dll from the rep \jre\bin)???
Jack
Nick Stark
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
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
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 =
{
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
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
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
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
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);
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
>
> 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
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;
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
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
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
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
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
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
45 matches
Mail list logo