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)
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
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
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.
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.can't this be done by the gpu ?
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
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
Bookmarks