The reason is very simple. I want the camera (the user is moving freely in a "scene" full a shapes) to NEVER
see some "walls forbiden to see".
How I managed to do it ? I have a transparent shape that is a cone (like the "cone view" of the camera) in
front of the camera and it detects collision with those "wall forbiden to see".
The bad hing I discovered, it's that the Cone Bound is a sphere .... and my detector covers
to much space. In clear those "walls forbiden to see" are detected even when the camera is quite far away from them.
 
If you have a another solution .... please do not hesitate has I am loosing my marble ;)
 
Thierry  
 
-------Original Message-------
 
Date: Thursday, March 25, 2004 19:56:26
Subject: Re: [JAVA3D] collisionBounds ==>exact geometry or BoundingPolytope type
 
If there any reason that you would like to use a bounding polygon? If
you are using the bounding polygon for collision detection or culling
then you are much better off sticking with a bounding box or sphere. The
reason these two bounding objects are commonly used is because an
intersection query is very fast whereas with a bounding polygon it can
be very slow.
 
Sean
 
On Thu, 2004-03-25 at 05:27, Thierry Milard (free) wrote:
> Hello. I am a bit stuck with a shape that is a Cone.
> I want this shape to have :
> - neither a BOUNDING_BOX
> - neither a BOUNDING_SPHERE
> - But more like a BOUNDING_POLYTOPE
>
> Question n°1: To have my Cone shape with the 'collisionBound'
> parameter exactly equals to the cone shape geometry,
> is there an easy way that would be like this:
> [myshape.setBound(myshape.getGeometry()) ]
>
> Questionn°2: If not, I will create a BOUNDING_POLYTOPE bound for the
> cone shape. would someone has a concrete example
> of the creation of a BOUNDING_POLYTOPE bound.
>
> Thanks, Thierry ... and "vive java3D"
>
>
>
>
>
>
> ____________________________________________________
> IncrediMail - Email has finally evolved - Click Here
> =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
 
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
 
.
____________________________________________________
  IncrediMail - Email has finally evolved - Click Here
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to