This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > April 2004 > collision detection help





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author collision detection help
Andrew Neiderer

2004-04-29, 5:42 pm

I am trying to familiarize myself with collision detection/anticipation.
I have taken an example from a W.A. Badawy paper and typed it in,
only to discover nothing displayed.

Can anyone see what I am missing or doing wrong here ?

Also, does anyone have suggestions on URLs which address VRML and collision
detection/anticipation. I ultimately want an animation of a soldier
(human character) navigating through an urban environment.

Thank you.
- Andrew M. Neiderer

---------------------------------------------------------

#VRML V2.0 utf8
{
Transform {
children [
DEF COLLISION_DOOR Collision {
children [
DEF TR_DOOR Transform {
children [
Sphere {
geometry Box {
}
appearance Appearance {
material Material {
diffuseColor 1 1 1
}
}
}
]
}
]
}
]
}

DEF TIS_COLLISION TimeSensor {
cycleInterval 5.0
loop FALSE
}

DEF OI_COLLISION OrientationInterpolator {
key [0.0, 0.25, 0.5, 0.75, 1.0]
keyValue [1 0 0 0.62,
1 0 0 1.25,
1 0 0 1.88,
1 0 0 2.51,
1 0 0 3.14]
}

ROUTE COLLISION_DOOR.collideTime TIS_COLLISION.startTime
ROUTE TIS_COLLISION.fraction_changed OI_COLLISION.set_fraction
ROUTE OI_COLLISION.value_changed TR_DOOR.set_rotation
}
Eckhard M. J?ger

2004-04-29, 10:35 pm

Better try that:
#VRML V2.0 utf8

Transform {
children [
DEF COLLISION_DOOR Collision {
children [
DEF TR_DOOR Transform {
children [
Shape {
geometry Box {
}
appearance Appearance {
material Material {
diffuseColor 1 1 1
}
}
}
]
}
]
}
]
}

DEF TIS_COLLISION TimeSensor {
cycleInterval 5.0
loop FALSE
}

DEF OI_COLLISION OrientationInterpolator {
key [0.0, 0.25, 0.5, 0.75, 1.0]
keyValue [1 0 0 0.62,
1 0 0 1.25,
1 0 0 1.88,
1 0 0 2.51,
1 0 0 3.14]
}

ROUTE COLLISION_DOOR.collideTime TO TIS_COLLISION.startTime
ROUTE TIS_COLLISION.fraction_changed TO OI_COLLISION.set_fraction
ROUTE OI_COLLISION.value_changed TO TR_DOOR.set_rotation

About Collisin:
http://accad.osu.edu/~pgerstma/clas...Ref/ch3-308.htm

About Object collision:
http://www.parallelgraphics.com/dev...sions/collision
http://developer.blaxxun.com/doc/3d...g7.html#1043821

Karamba!
::VRMLsuck::Bart
http://www.neeneenee.de/vrml/
http://www.neeneenee.de/vrml/forum/
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews