Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: TBCDL Collision Dection Library

  1. #1

    TBCDL Collision Dection Library

    Collision Detection Library for thinBasic

    Joshy
    (Sorry about my bad English.)

  2. #2
    Member sblank's Avatar
    Join Date
    Feb 2010
    Location
    Wayne City, Illinois
    Posts
    80
    Rep Power
    23

    Re: TBCDL Collision Dection Library

    Well done Joshy... looking forward to the examples!

    This is something I've been working on and trying to figure out for quite some time in both python and freebasic... you have made it look easy! I'm still working hard and it is fantastic to learn from such good programmers as you, Eros, Petr, Charles, Michael, Kent, Frank, and everyone else posting great code examples!

    Cheers,

    Stan

    Quote Originally Posted by D.J.Peters
    i will post some examples later
    but now i must sleeping i wrote two libs in one session.

    Joshy

  3. #3
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    68
    Posts
    3,869
    Rep Power
    404

    Re: TBCDL Collision Dection Library

    Thanks, another great library.
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  4. #4

    Re: TBCDL Collision Dection Library

    HI Joshi,

    thanks for the contribution. Can you turn these into TB modules? Because

    1) We get rid of the declares
    2) To my knowledge, calling external DLL functions is slower than module functions. But I could be wrong here.

  5. #5
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,138
    Rep Power
    733

    Re: TBCDL Collision Dection Library

    Hi Joshy,

    thanks a lot, this is looking fantastic.
    I am looking forward to test it more.

    Did you find the KeywordDocumenter usable?


    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
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,795
    Rep Power
    10

    Re: TBCDL Collision Dection Library

    To keep thing organized, I can create dedicated sub forum for this project.
    Just ask for it.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  7. #7
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,138
    Rep Power
    733

    Re: TBCDL Collision Dection Library

    I would vote for making it module too.

    Modules can autodeclare not only procedures for TB, but even UDTs (structs).
    For UDTs, I would propose convention with module prefix as well -> here TBCDL_Vector3D.

    This will help avoiding name conflicts.


    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

  8. #8

    Re: TBCDL Collision Dection Library

    Of course i can make a TB module later but in
    it's current experimental state it's ok as "normal" DLL.

    if we have
    ...
    TBGL_EntityGetCurrentMatrix(%SceneID,%EntityID,Matrix)
    TBCD_SetMatrix(%ModelID,Matrix)
    ...
    i will compile it as real TBCD module.
    (without "L" in it's name TBCDL = library TBCD = thinBasic module)

    Joshy

    (Sorry about my bad English.)

  9. #9

    Re: TBCDL Collision Dection Library

    first example RayModelTest.tBasic added.

    it's nice if you will create an 3D editor and need to select triangles from model with the mouse.

    get current version from first post.

    i will add more examples from time to time.

    Joshy
    (Sorry about my bad English.)

  10. #10
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,138
    Rep Power
    733

    Re: TBCDL Collision Dection Library

    Cool demo, keep it coming.
    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

Page 1 of 2 12 LastLast

Similar Threads

  1. 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

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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