Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / CSG Commands Request.

Author
Message
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 19th May 2016 09:57
It has been over a year since I requested a set of CSG commands for AppGameKit (https://forum.thegamecreators.com/thread/212232?page=9#msg2558656) on the feature request thread. Now that AppGameKit is really growing on the 3D front, I'd like to suggest it again in case it has been forgotten about.

How cool would it be, to be able to smash 3D objects, or slice an object in two, or blow holes in buildings and landscapes, or even make our own 3D editors!

All the code required is available in DB-Pro (https://github.com/LeeBamberTGC/Dark-Basic-Pro/tree/Initial-Files/Dark%20Basic%20Public%20Shared/Dark%20Basic%20Pro%20SDK/Shared/Objects CSG.CPP / .H). I'm sure it wouldn't take too long for someone with Paul's ninja coding skills to implement.

Pretty please!


V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 19th May 2016 15:48
They're on my list, but too many other things to do at the moment!
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 19th May 2016 15:54
Cool beans. I can wait.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Stab in the Dark software
Valued Member
21
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 19th May 2016 20:19 Edited at: 19th May 2016 20:23
You might not want to use the CSG code from DBPro.
It had very unstable behavior and was very slow.
It added too many polygons to the new objects and also left missing polygons.
It did not handle the UV data or the normals of the objects.
In my opinion it would not be worth the time it would take to implement.

P.S. you would need more than CSG to smash objects.
The coffee is lovely dark and deep,and I have code to write before I sleep.
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 19th May 2016 21:46
Ok... maybe not use the DB-Pro CSG implementation. There's lots of open libraries to choose from (https://github.com/Arakis/Net3dBool, OpenCSG etc.). Just need to find one that works nicely and can handle real-time operations.

Quote: " you would need more than CSG to smash objects"
True, but with a comprehensive set of CSG commands, we'd have the building blocks to make our own "smash object" functions. We can decide how they should break up, and how each piece gets influenced by physics etc. It would be SWEET!

V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 20th May 2016 05:45
here some old csg code from 2003 for blitzbasic with uv coords.
Code archives/3D Graphics - Mesh/CSG Functions another edition
http://www.blitzbasic.com/codearcs/codearcs.php?code=560
AGK (Steam) V2.0.18 : Windows 10 Pro 64 Bit : AMD (15.30.1025) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 20th May 2016 09:22
If only the amazing code Stabs made as part of his AGK2 bullet physics library made it into AGK....

But that's none of my business..

Login to post a reply

Server time is: 2024-11-25 05:27:09
Your offset time is: 2024-11-25 05:27:09