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.

Dark GDK / [DBP] Make any object explode - Code Snippet ported to DGDK

Author
Message
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 10th Nov 2010 18:45
I did a quick translation and posted it here:

[DBP] Make any object explode

Blow up all your objects

Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 11th Nov 2010 21:11
Wow, that's impressive! Thanks for calling our attention to it.
But, which Dark GDK version are you using? I tested with 7.3 and the October 26 update too, and the function dbCalculateObjectBounds does not exist. I had to comment it out.
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 12th Nov 2010 08:58
Oh it seems to be a missing declaration in the header.

Just add the line:



To the 'DarkSDKBasic3D.h' file.

Calling that function updates the object bounds with the current vertex positions. This allows the fragments to be seen even when the original limits of the object are off screen, otherwise DGDK thinks that it is not visible and hides it all.

Login to post a reply

Server time is: 2024-11-19 16:40:01
Your offset time is: 2024-11-19 16:40:01