Results 1 to 8 of 8

Thread: How do you check collision ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Question How do you check collision ?

    Hi,

    regarding this old 2009 post #5 and subsequent #6. Today, how would you check for collision between a 3d triangle (poly) and other geometry (triangle, quad or box) ?
    ( 20 ~ 100+ entity, 60fps)
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732
    Hi Sebastian,

    I remember those times, I started working on collision library, but then I decided it was not good idea to bloat TBGL further.

    As of today, I think it would be the best to create dedicated collision module - or #compiled booster at least.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3
    Quote Originally Posted by Petr Schreiber View Post
    As of today, I think it would be the best to create dedicated collision module - or #compiled booster at least.
    can't this be done by the gpu ?
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

  4. #4
    Hi DirectuX
    there is a collision engine posted here some time ago, the 2 examples are for cubes, but the *.inc file contains a sphere and other shapes, i haven't checked it more
    https://www.thinbasic.com/community/...rcial-license)
    here is a one week link
    http://wikisend.com/download/996384/TB_TrueAxis.zip

    edit: i checked the package with virusTotal and it is fully clean.
    edit2: don't know if you know about xord3d (abandonware) , since i have posted here http://www.thinbasic.com/community/s...l-with-physics in a mediafire link a full package containing a spiral and a knot and when you press 'W' you see the meshes in wire mode and there is a sphere rolling inside the tubes. a collision between the sphere and inside the tubes.
    Last edited by primo; 24-12-2019 at 15:09.

  5. #5
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732
    can't this be done by the gpu ?
    Sure, what I wrote does not contradict that Both module and #compiled can use for example OpenCL or Vulkan. But I would suggest to make it optional - the presence of support for both technologies is not guaranteed on non-gaming rigs.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  6. #6
    Hi,

    @Primo, thanks, I'll have a look soon !
    @Petr, remember about ArrayFire ? It comes with a CPU fallback too !
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

Similar Threads

  1. Control set check
    By Michael Clease in forum Fixed or cleared errors in help material
    Replies: 1
    Last Post: 07-02-2010, 13:02
  2. 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
  3. Check internet connection
    By ErosOlmi in forum Internet related scripts
    Replies: 7
    Last Post: 22-03-2007, 05:37
  4. Do you need to check internet connection?
    By ErosOlmi in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 0
    Last Post: 16-10-2006, 10:45
  5. Master data check
    By ErosOlmi in forum Real world situations and solutions using thinBasic
    Replies: 0
    Last Post: 09-10-2006, 16:55

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

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