Ricardo Chaves wrote:
Hi,
I'm a relative new in Java 3D programming. I was trying to make a
program like a FPS game, where you can navigate in a 3D virtual
environment. But I'm having problems with collision detection and
response...
Many people said that I have to use behaviors
(WakeupOnColl
I need to detect the collision between object and viewer (avatar). My
scene is a set of rooms, and I do not want the viewer to run through
walls. I use WakeupOnCollisionEntry and WakeupOnCollisionExit
conditions ... but how avoid the modification in transform related to
viewer?
Thanks a lot.
Wa
Huuum... You mean the fact that your viewer
actually goes partly through the wall? To fix that, just make the viewer's
collisionBounds a bit bigger (trial and error) till he no longer goe through the
wall. 8*)
Hope this helps,
CHRIS
- Original Message -
From:
Cassia Trojah
At 14:45 17/10/2003 +0200, you wrote:
anyone know any ebooks or tutorials
where I can read more about implementing
collision detectin? or collision avoidance..not the one already existing
in
Java.
I read on j3d.org but I didn't manage to understand everything they did,
and
I can't find the source
Hi Csaba,
Please send us a test program to investigate.
Thanks for your bug report.
- Kelvin
-
Java 3D Team
Sun Microsystems Inc.
Csaba Pales wrote:
Hi,
I'm developing a little simulation, and need collision detection in
this. There are some objects in the scene that will be anim
riginal Message-
From: ramanathan v [mailto:v_ramanath@;YAHOO.CO.UK]
Sent: 06 November 2002 17:48
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Collision detection issues
I meant about the boundingsphere. I gave a overall
boundingsphere in my code (0,0,0,1000) and placed few
objects within this
I meant about the boundingsphere. I gave a overall
boundingsphere in my code (0,0,0,1000) and placed few
objects within this domain and i am checking for
collision for two particular objects. I could not
detect collision if there are more than 2 objects and
if i reduce the number of objects to 2 ..
Not sure quite what you mean by the 'collision domain' Ramanath.
-Original Message-
From: ramanathan v [mailto:v_ramanath@;YAHOO.CO.UK]
Sent: 05 November 2002 18:59
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Collision detection issues
Hi Group,
I am working on some collision detections, wh
Actually I'm not so sure anymore that the reported
collisions are with the
Cylinder. If I rotate the scene using the usual
MouseBehavior I get all kinds
of wakeupOnCollisionEntry and wakeupOnCollisionExit
events. How can I find
out what causes these collisions? As all objects
maintain their
Have a
look at the FAQ pages on http://www.j3d.org/faq for details on just how
to do this. Essentially, you cast a ray in the direction of movement and
see if it intersects anything.
I
wrote some code once to find the intersecting face. The approach was to
look at each face of the interse
Hi Christoph,
I have post to you a simple sample on this issue.
>From: Christoph Wille <[EMAIL PROTECTED]>
>Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [JAVA3D] collision detection
>Date: Mon, 12 Nov 2001 13:57:11 +0100
>
>Hello
>
>I'd like to d
000
>From: Thomas Gilbert Giusepe <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] collision detection problem just for inclined plane ?
>Comments: To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>
>Hi Paul,
>
>Thnxs a lot by your reply, the demo works fine but the ground is al
;
>To: [EMAIL PROTECTED]
>Subject: Re: [JAVA3D] collision detection problem just for inclined plane ?
>Date: Fri, 26 Oct 2001 09:33:54 -0700
>
>Hi Thomas,
>
>You may want to take a look at Java 3D Fly Through, available from the
>Java3D web page.
>
>The example appl
Hi Thomas,
You may want to take a look at Java 3D Fly Through, available from the
Java3D web page.
The example application includes a drive behavior which will move the
ViewingPlatform along the 'floor' staying a specified height above
the geometry.
Full source of application is available.
Rg
Hi Sam,
The test fail to load the model Crane.wrl since it is not
included, please resend it.
Also, make sure you are using the latest v1.2.1_03 release.
There are several bug related to collision currently:
4461427, 4504154, 4475966
Thanks.
- Kelvin
-
Java 3D Team
Sun Microsyst
Research "picking" to learn how to do collision avoidance.
- John Wright
Starfire Research
"Tonz ." wrote:
>
> I'm sorry that i can't understand the concept of collision avoidence
> i don't know why?
> please send me an algorithm helping me in solving this problem.
> i read so much about this pr
"Tonz ." wrote:
>
> Hi all .
>
> I have a wall, how can I detect the collision and how can I not allow the
> user from going through the wall.
http://www.j3d.org/tutorials/collision/
http://code.j3d.org/
http://www.j3d.org/implementation/collision.html
--
Justin Couch
Hi,
additional information:
- Using Java3D 1.2 works much better (why ???)
- If I reset the view to (0, 0, offset) before the collision test the results
with Java3D 1.2 seem to be correct (not with Java3D 1.2.1_01), but I
need to use Java3D 1.2.1_01 for other reasons :-(
Regards
Flori
There is 2 diffrent ways you may want to do it...
The first and autmated way is to use the default Java3D collision detection
by setting up the objects and creating a behavior that wakes on collision
entries and exits. An example of that can be found in the java3d demos
directory under TickTockCo
-Priority: Normal
> > X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
> > Date: Thu, 22 Feb 2001 15:51:12 +0100
> > From: alvaro zabala <[EMAIL PROTECTED]>
> > Subject: Re: [JAVA3D] Collision Detection in J3D 1.2.1 beta2
> > To: [EMAIL PROTECTED]
> &g
MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
> Date: Thu, 22 Feb 2001 15:51:12 +0100
> From: alvaro zabala <[EMAIL PROTECTED]>
> Subject: Re: [JAVA3D] Collision Detection in J3D 1.2.1 beta2
> To: [EMAIL PROTECTED]
>
> I'm having a lot of troubles with this task.
>
Hi all,
I am trying to introduce the applet into a Frame in order to add
my menus and icons ...?
Is there any reference where one can find these info. ?
If not any help is very appreciated ...
Thanx
Firas
Hi Jonathan,
Java 3D can do what you want, but it will take a bit more setup when creating
the scene graph. Lets start by looking at the geometry primitives ColorCube
and Sphere. These are a subclass of Primitive which is a subclass of Group.
This allows each primitve to be created with a small
om: Kelvin Chung <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] Collision Detection in J3D 1.2.1 beta2
>Comments: To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>
>Hi Siau,
>
> We can reproduce this bug and Bug 4419555 -
>Collision detection for geometry is not accurate
>X-Apparently-From:
>From: "Siau Tan Long" <[EMAIL PROTECTED]>
>To: "Kelvin Chung" <[EMAIL PROTECTED]>
>Cc: <[EMAIL PROTECTED]>
>Subject: Re: Re: [JAVA3D] Collision Detection in J3D 1.2.1 beta2
>Date: Sat, 24 Feb 2001 13:46:27 +0800
>
MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
> Date: Thu, 22 Feb 2001 15:51:12 +0100
> From: alvaro zabala <[EMAIL PROTECTED]>
> Subject: Re: [JAVA3D] Collision Detection in J3D 1.2.1 beta2
> To: [EMAIL PROTECTED]
>
> I'm having a lot of troubles with this task.
>
imeOLE V4.72.2106.4
Date: Thu, 22 Feb 2001 15:51:12 +0100
From: alvaro zabala <[EMAIL PROTECTED]>
Subject: Re: [JAVA3D] Collision Detection in J3D 1.2.1 beta2
To: [EMAIL PROTECTED]
I'm having a lot of troubles with this task.
I think that some very important subjects in collide re
your
scene's object.
Alvaro Zabala Ordoñez.
-Mensaje original-
De: Siau Tan Long <[EMAIL PROTECTED]>
Para: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Fecha: jueves 22 de febrero de 2001 15:00
Asunto: Re: [JAVA3D] Collision Detection in J3D 1.2.1 beta2
>Additi
Additional observation:
I have also added a MouseZoom,MouseRotate and MouseTranslate behavior to the
scene.
Whenever I rotate the scene(the whole universe), the object of concern
reports collision entry.(which is not yet collide and should not be
reporting so)
> What I see is:
> The object did
What I see is:
The object did not collide and the collision detection(entry) is already
triggered.
By the way, I am using vrml loader. All my objects are loaded from the vrml
file.
Do you think that is the problem?
> Current specification will not do collison avoidance,
> so you may see the obj
Hi Siau,
>
>But I have 1 more problem.
>How do I adjust the accurary of the collision detection?
>I have tried using using the speedhint="USE_GEOMETRY" and hi-res coord
>but both doesn't seem to improve the accurary.
>
>Is there other thing I could try?
speedhint "USE_GEOMETRY" should do the tr
Thanks. I got it working.
But I have 1 more problem.
How do I adjust the accurary of the collision detection?
I have tried using using the speedhint="USE_GEOMETRY" and hi-res coord
but both doesn't seem to improve the accurary.
Is there other thing I could try?
Thanks again.
_
Hi Siau,
>
>This is my collision detector behavior class:
>
>
> public void initialize()
>{
> wEnter = new WakeupOnCollisionEntry(tg);
> wMove= new WakeupOnCollisionMovement(tg);
> wExit = new WakeupOnCollisionExit(tg);
> wakeupOn(wMove);
>System.out.println("init");
>
February 13, 2001 10:20 AM
Subject: Re: [JAVA3D] Collision Detection in J3D 1.2.1 beta2
> Hi Siau,
>
> >
> >I was actually using a VRML loader to load my mesh.
> >Can I actually pass in TransformGroup to WakeupOnCollisionEntry( tg)?
>
> See,
> /**
> * Constru
Hi Siau,
>
>I was actually using a VRML loader to load my mesh.
>Can I actually pass in TransformGroup to WakeupOnCollisionEntry( tg)?
See,
/**
* Constructs a new WakeupOnCollisionEntry criterion.
* @param armingNode the Group, Shape, or Morph node used to
* arm collision detecti
t; <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 13, 2001 3:54 AM
Subject: Re: [JAVA3D] Collision Detection in J3D 1.2.1 beta2
> Hi Siau,
>
>Yes, collision detection is fully functional since 1.2.
> As John suggest, you can use picking to detec
Hi Siau,
Yes, collision detection is fully functional since 1.2.
As John suggest, you can use picking to detect collision
in order to do avoid collision beforehand. There is no
way in 1.2 API to use your own collision detection
algorithm right now.
Thanks.
- Kelvin
-
Java 3D Team
Siau,
I'd say most of us use "picking" to do collision detection.
- John Wright
Starfire Research
> Siau Tan Long wrote:
>
> Is collision detection fully functional in beta2?
> Is there any other ways to implement collision detection in J3D?
> Thanks.
==
At 21:34 01/01/01 -0600, you wrote:
> Once a collision has occurred and a behavior triggered - is there a way
>to get the normal of the face of the object with which the collision
>occurred? I read something on www.j3d.org I tried this, but have a
>couple questions: I only want to pick o
Hi!
We have tested the Java3d-CollisionEngine in a project some months ago.
We needed exact collsion detection (a bounding box was to unprecise). But
the build-in Java3d collision was far to slow. So we switched to vcollide
(written in c) and jni ( :( porting to other platforms sucks ).
My quest
I know this may sound a little bone headed at the moment, but have you ensured the
"COLLIDABLE" capability has been set on the appropriate nodes? I tried implementing
collision detection in Java3D with little success. It just got too hard to compute
contact points based on arbitrary geometries
Hehe, people have GOT to start using the "search
archives" feature. This question was asked and answered 3 days
ago.
Dave Yazel
- Original Message -
From:
Ravi Goel
To: [EMAIL PROTECTED]
Sent: Tuesday, November 21, 2000 12:34
AM
Subject: [JAVA3D] Collision
Hi,
maybe, you can fix it like this:
PickIntersection info = ...
Vector3d normal = calculateNormal( info.getPrimitiveCoordinates() );
and
private Vector3d calculateNormal(Point3d[] verts) {
if ( verts.length < 3 ) {
return null;
} else {
Vect
ngineering
- Original Message -
From: "Yazel, David J." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 16, 2000 11:14 AM
Subject: Re: [JAVA3D] Collision Detection!
> The problem people generally want to solve is not really collision
> detection,
The problem people generally want to solve is not really collision
detection, but collision prediction and collision avoidance. Before you move
your object, you need to check to see if the new location will result in
there being a collision, if so then you do NOT actually make the move.
Since java
Tina,
I'd recommend you use "picking" to detect collisions *before* they
occur, then you can stop your moving object before it has actually
intersected another object.
- John Wright
Starfire Research
Tina Manoharan Valappil wrote:
>
> Hello,
>
> I saw the collision detection program under the d
Title: Collision detection
Hi,
There are two famous website talking about
real-time 3D tech.
http://www.realtimerendering.com/
http://www.graphicsgems.org
But, all the source code for collision-dectction
are in C, so you have to spend some time to migrate them into Java.
Good Luck!
Hongkun
Canoe wrote:
> Could you give me some collision detection examples, or where can I get source code
>about collision detection?
Unfortunately I don't have any handy and j3d.org doesn't seem to have
any links to tutorials etc. I thought my Raw J3D tutorial had a whole
bunch of code there (I remem
ember 20, 2000 7:42 AM
Subject: Re: [JAVA3D] Collision Detection Challenges
> John Wright wrote:
>
> > What I believe most of us are doing in order to have accurate collision
> > detection is to use picking to detect collisions. For instance in our
> > application the ava
EMAIL PROTECTED]>
Sent: Tuesday, September 19, 2000 7:42 PM
Subject: Re: [JAVA3D] Collision Detection Challenges
John Wright wrote:
> What I believe most of us are doing in order to have accurate collision
> detection is to use picking to detect collisions. For instance in our
> appl
John Wright wrote:
> What I believe most of us are doing in order to have accurate collision
> detection is to use picking to detect collisions. For instance in our
> application the avatar sends out a pickray in the direction it is
> walking *before* it moves to make sure it's a valid move.
Th
John,
The answer is you can't.
What I believe most of us are doing in order to have accurate collision
detection is to use picking to detect collisions. For instance in our
application the avatar sends out a pickray in the direction it is
walking *before* it moves to make sure it's a valid move
i solved the problem by setting user data
colReporter.setUserData("Checkpoint: "+(++num));
on the 'gate' object. When collision occurs, u just retrieve the data
from the node:
Node trigObj = trigPath.getNode(trigPath.nodeCount()-1);
Object userData = trigObj.getUser
Hello DereK
A good starting point might be to have a look at TickTockCollision.java
The class demonstrates simple collision detection. It uses
WakeupOnCollisionEntry() and WakeupOnCollisionExit().
Anders
>From: Derek Augustus Ruths <[EMAIL PROTECTED]>
>Reply-To: Discussion list for Java 3D AP
Shahbaz,
Attached is a program which collides 2 cubes.
It uses Canvas3D.preRender() to move the cubes which should be smoother than
using a timer.
It uses WakeupOnCollisionEntry to detect the collision.
It uses Shape3D as the arming node, so should work with both v 1.1.x and v
1.2beta2.
At the m
On 24 Mar 00, at 15:41, ÃÖ¿øÅÂ wrote:
> Hi, I'm deeply interested in implementing VRML Browser with Java3D.
> I want my browser to support collision detection.
> But I can't find any sample codes, souces implement collision detections in Java3D.
> Help me...
> Thanks for reading
see www.burrows
I wait your mail.
[]s
Haroldo
>From: Daniel Selman <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: [JAVA3D] Collision Detection - walking through walls.
>Date: Mon, 7 Feb 2000 01:53:41 -
>
>Anders,
>
>To use Java 3D
Anders,
To use Java 3D collision detection you want to use a Behavior with a
WakeupOnCollisionEntry / Exit condition. Create some geometry to represent
the viewer (an avatar) and check for collisions between this geometry and
the geometry in your scene.
You either have to manually assign collisi
On 2 Feb 00, at 18:15, Anders Breivik wrote:
> Hi,
>
> I've just started learning how to use Java3D's collision detection
> methods using the example TickTockCollision class. There is one simple issue
> which I can't figure out:
>
> I've used "WakeupOnCollisionExit(Node armingNode,int speedHint)"
Anders,
You need to put the class in from of the USE_BOUNDS variable. For example:
wEnter = new WakeupOnCollisionEntry(shape,
WakeupOnCollisionEntry.USE_BOUNDS);
Also make sure that the "javax.media.j3d.*" package is imported at the top
of the file.
Hope this helps
Dean
- Original Messag
Hi Anders,
I think you need the class name. Try: PickObject.USE_GEOMETRY.
Regards, Larry
Anders Breivik wrote:
> Hi,
>
> I've just started learning how to use Java3D's collision detection
> methods using the example TickTockCollision class. There is one simple issue
> which I can't figure
> X-Originating-IP: [194.83.240.23]
> Mime-Version: 1.0
> Date: Wed, 2 Feb 2000 18:15:18 CET
> From: Anders Breivik <[EMAIL PROTECTED]>
> Subject: [JAVA3D] Collision Detection
> To: [EMAIL PROTECTED]
>
> Hi,
>
> I've just started learning how to use Java3D's collision detection
> methods using the
Anders,
This is what you need:
wExit = new WakeupOnCollisionExit(shape, WakeupOnCollisionExit.USE_GEOMETRY);
You have to tell Java what class the speed hint is from.
r/
Andy Kimsey
p.s. Let me know if you actually get collision detection working. I can tell if
I'm in collision but beyond that
those are variables that are defined in the WakeupOnCollisionEntry class...
you have to use WakeupOnCollisionEntry.USE_BOUNDS or the same thing with
USE_BOUNDS, not just the var name by itself.
Eric
- Original Message -
From: Anders Breivik <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent
On 17 Jan 00, at 8:37, Dean Keeler wrote:
> Hi All,
>
> I am trying to write a collision detection routine. I have followed the examples in
>the "Ready-to-Run Java 3D" book and also from mail archive from Tony Burrows. I have
>been unable to get it to work. Whenever I try to use the collisio
Dean,
Set
the collidable property on the Nodes you want Java 3D to check for collisions.
Set the scheduling bounds on the Collision Behavior large enough to include all
the Nodes. Add the collision behavior to the scenegraph. Set the Node.ENABLE_COLLISION_REPORTING
capability.
I
would
Shawn Kendall wrote:
>
> I can not find a call anywhere in the API for returning the normal or
> even the actual polygon collided with in the collision detection stuff.
> Does any of the APIs support that somewhere, or do I HAVE to write my
> own collider for GeometryArrays? (Please say no...)
Se
67 matches
Mail list logo