Results 1 to 2 of 2

Thread: 3d-Face-Collision

  1. #1
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,530
    Rep Power
    171

    3d-Face-Collision

    I'm currently thinking about a simple face-collision and how to calculate it. Maybe someone is able to think the idea to an end


    I have the following - thoughts in degrees°...

    1. 3 Vectors, With Corner .X1,.Y1,.Z1/.X2,.Y2,.Z2/.X3,.Y3,.Z3 (which describe the corners of the face)
    2. Center-Position of face calculated like Center.X = (.X1+.X2+.X3)/3, Center.Y = (.Y1+.Y2+.Y3)/3, Center.Z = (.Z1+.Z2+.Z3)/3 , End With
    3. Face normals which describe a perpendicular vector to the surface, added to Center the Normals describe a Point that is in 1 Unit Distance
    4. a point on a directional line from face-Center to faces corner in exact 1 Unit Distance from center describes the 0°-Direction while normals describe same point rotated altogether 90°
    5. this 90°-Rotation is based somehow onto the Normal-Values - I guess it's 90 * Normal.X around one axis + 90 *Normal.Y around other axis + 90 * Normal.Z around third axis.
    if a point P's distance from faces center is greater than distance from center to any corner (= Radius) then it can not intersect the face
    if point P is AT AN angle >0° and angle<180° then point P does not intersect nor touch face else point P collides...so ATAN2 will tell somehow...

    All these numbers and points dancing in my headi think there are others that have broken their minds already with that,

    I tried to find some information - but I do not understand the C-stuff as used here or at nehe-lessions and they think totally different ways...
    Last edited by ReneMiner; 01-05-2013 at 07:27.
    I think there are missing some Forum-sections as beta-testing and support

  2. #2

    3d face collision

    [QUOTE=ReneMiner;88584]I'm currently thinking about a simple face-collision and how to calculate it. Maybe someone is able to think the idea to an end

    Hi Rene,

    Not sure exactly what you mean by "simple" but the following pdf may be of interest http://www.geometrictools.com/Docume...nDetection.pdf
    It describes method of oriented bounding boxes OBB for detecting intersection of 3D objects.

    it is particulalry useful when you have large number of objects that need to be compared with each other.

    This method I found very useful for predicting high precision collisions between large numbers of moving spheres (Example: )
    My coding was done in VB6 and is rather old-fashioned as I do not understand matrices or modern graphics very well.

    I suspect that the best technical approach would be to use one of the available C-libraries for high speed collision determination.
    But I dont do "C".

    There are some other posts on collision detection in this forum but I think their needs (gaming) were different to mine (scientific simulation).
    For example see the sample application PONG which uses tgbl (Petr) and oxygen (Charles).


    I am interested to see what you will produce.


    Good luck,
    Steve.

Similar Threads

  1. Collision Test
    By peter in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 1
    Last Post: 16-10-2012, 14:01
  2. Most typical face in the world
    By Charles Pegge in forum Shout Box Area
    Replies: 0
    Last Post: 05-03-2011, 07:35
  3. TBGL sprite collision; I want to tune the box2circle collision a bit
    By Michael Hartlef in forum TBGL module by Petr Schreiber
    Replies: 3
    Last Post: 31-07-2009, 23:36
  4. 2D and Collision Detection
    By Michael Clease in forum TBGL General
    Replies: 10
    Last Post: 04-02-2008, 15:49
  5. good collision paper
    By kryton9 in forum TBGL General
    Replies: 4
    Last Post: 06-02-2007, 22:47

Members who have read this thread: 1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •