PDA

View Full Version : Collision Detection with Q3 Bezier Patches?



Dtag
02-03-2003, 07:10 AM
Hey http://www.opengl.org/discussion_boards/ubb/smile.gif
Iam currently using a Brush based collision detection to detect collisions. Its working pretty well. Now I started drawing Q3s Bezier Patches and I realized that the brushes don't seem to cover those ( for example I can walk into the tongue of Q3DM1 ). Do I need to do another collision detection just for those bezier patches or did I miss something?
TIA http://www.opengl.org/discussion_boards/ubb/smile.gif

LarsMiddendorf
02-03-2003, 07:42 AM
The bezier-patches are tesselated into small thin brushes for collision detection.

Dtag
02-03-2003, 07:46 AM
Got any examples for that maybe? http://www.opengl.org/discussion_boards/ubb/smile.gif

castano
02-03-2003, 07:52 AM
This is what I did in the past:
- tesselate the patch at a fixed resolution.
- merge the resulting coplanar triangles into polygons.
- create brushes for those polygons.

It's way inneficient, but I could reuse the previous collision detection code.

Dtag
02-03-2003, 07:53 AM
What is the reason for not covering those Bezier Patches as Brushes?

[This message has been edited by Dtag (edited 02-04-2003).]

Dtag
02-04-2003, 08:45 AM
Any ideas? Maybe a link to an open source engine that uses this tesselation into brushes?