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.

DarkBASIC Professional Discussion / New CSG Commands For Boolean Operations!

Author
Message
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: 9th Apr 2014 22:30 Edited at: 17th Apr 2014 19:38
We are making Bullet Physics Wrapper for DBPro.
http://forum.thegamecreators.com/?m=forum_view&t=208831&b=8

In the process of developing a fracture system we implemented a CSG algorithm.
It works so well that we have added CSG commands that can be used separate from the physics.
The new commands are Union, Intersection, A minus B, B Minus A.
The Boolean operations keep all the original UV data and Normals.
We create a new object with two limbs so you can have both textures on the one object.
If you are not familiar with CSG Boolean Operations watch the video.

CSG Boolean Operations Commands







[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
Barry Pythagoras
10
Years of Service
User Offline
Joined: 14th Mar 2014
Location:
Posted: 9th Apr 2014 23:08
In the video you didn't move the rock away from the barrier. If the rock has a hole in it, can you move it away from the barrier?
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: 9th Apr 2014 23:23
Quote: "In the video you didn't move the rock away from the barrier. If the rock has a hole in it, can you move it away from the barrier?"


Yes you can. All the CSG operations create a new object.


[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 10th Apr 2014 01:17
This looks like an efficient implementation of what the built in DBPro CSG commands should do (except I can never get them to do what I expect them to do ). How do these new commands compare with the existing DBPro ones?



Powered by Free Banners
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: 10th Apr 2014 02:47 Edited at: 10th Apr 2014 02:51
Quote: "How do these new commands compare with the existing DBPro ones?"


1.The existing CSG commands use one object as a brush object and modifies the other object.
Our CSG commands uses both objects and creates a new object which is the result of both.

2.The existing CSG commands never give you solid geometry there is always missing faces.
Our CSG commands are true Constructive Solid Geometry, no missing faces.

3.Our CSG Commands preserve the UV data and Normals of both objects.
We create two limbs for the faces of each object.
This allows for two different textures on the resulting object.

[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 10th Apr 2014 13:55
Thanks for that.

Sounds and looks excellent. Hope to look at this more closely sometime soon.



Powered by Free Banners
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 10th Apr 2014 20:19
Take my money!

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: 16th Apr 2014 22:21 Edited at: 16th Apr 2014 22:38
Here is a Demo of the new CSG commands.
There are several objects included to test with, but you can try your own objects.
One important requirement is that the objects can not have intersecting geometry.
Objects with intersecting geometry will prevent the CSG algorithm from closing holes.

Download directly from our website

http://www.stabinthedarksoftware.com/forumdemos/DBProCSGDemo.zip

[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
Barry Pythagoras
10
Years of Service
User Offline
Joined: 14th Mar 2014
Location:
Posted: 16th Apr 2014 22:56
I tried it, and it works just fine.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 16th Apr 2014 23:42
Works fine here too - but I had to tell Norton's Sonar to trust the exe. First time that's happened for months. I wonder why it objected to your exe file?



Powered by Free Banners
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 17th Apr 2014 11:56
Same here, works ok. I do the same as GG to force my antivirus to let downloading. I've got directx 90c and I had to look for the D3DX9_43.dll .I supposed that would come included in the same Directx

I'm not a grumpy grandpa
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: 17th Apr 2014 16:09 Edited at: 17th Apr 2014 16:10
Thanks for testing.
We forgot to set the key to rotate the objects.
A new version with the option to rotate the objects uploaded.


[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 17th Apr 2014 19:34
Could you fix the link in your first post? I think it's missing a ?.



Powered by Free Banners
basjak
14
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 17th Apr 2014 23:55
well done, even much better than what AC3D can do.

Chris Tate
DBPro Master
15
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 18th Apr 2014 00:49
Looks interesting. I will test this out after I finish a few tasks.

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 Apr 2014 05:40
Quote: "well done, even much better than what AC3D can do."


Yes it does a better job than most modeling programs.
When combined with a Voronoi fracture algorithm it opens up a lot of possibilities in level design and game mechanics.

We have been working on a Voronoi fracture demo and will post it
soon.

[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.

Login to post a reply

Server time is: 2024-04-20 10:19:23
Your offset time is: 2024-04-20 10:19:23