Hi Martin,
>
>I've been using my program to do some experiments, this involves smashing
>TransformGroups into each other, and seeing which ones generate collisions,
>here are the results:
>
>Test1 - arm and Target nodes are Shape3d
>-------------------------------------------
>This is the scene graph that I'm using:
>
>BranchGroup                scene_branch
>+-- TransformGroup     blue_transform  <-- transform3D changed every frame
>to move blue
>|      +-- Shape3d          blue_shape  <-- armNode for blue_behavior
>|      +-- Behavior          blue_behavior
>+-- TransformGroup     red_transform  <-- transform3D changed every frame to
>move red
>|      +-- Shape3d          red_shape  <-- armNode for red_behavior
>|      +-- Behavior          red_behavior
>
>This works well in v1.2 and is a LOT faster than 1.1.x
>

For simple case Collision may slower because of the overhead
in the internal data structure. But for large scene with lots
of colliding object v1.2 should be faster.


>Test2 - arm nodes are TransformGroups
>----------------------------------------
>This is the scene graph that I'm using:
>
>BranchGroup                scene_branch
>+-- TransformGroup     blue_transform  <-- used to move blue and as armNode
>for blue_behavior
>|      +-- Shape3d          blue_shape
>|      +-- Behavior          blue_behavior
>+-- TransformGroup     red_transform  <-- used to move red and as armNode
>for red_behavior
>|      +-- Shape3d          red_shape
>|      +-- Behavior          red_behavior
>
>In v 1.2 collision only occurs when the OTHER shape passes through (0,0,0)
>In v 1.1 it works as in test 1.
>
>I know there is an issue about the implicit conversion of bounds to sphere
>in transformGroups, but its not that, it is that the world coordinates of a
>TransformGroup are not affected by its own Transform.
>
>I was hoping to use the TransformGroups as the arm and Target nodes, but it
>looks like I'll have to use the Shape3D nodes?
>

This sounds like a bug in v1.2beta2, can you please send us the complete
program to debug ?

Thanks.

- Kelvin

----------
Java 3D Team
Sun Microsystems

===========================================================================
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