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 / Meta Balls example

Author
Message
Hannibal
17
Years of Service
User Offline
Joined: 5th Mar 2007
Location:
Posted: 11th Feb 2017 23:46
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 14th Feb 2017 01:53

Yo man, this program crashed my sh*t, are you some kind of idiot or what? LOLOLOL

j/k dude.
Send your parents to noisy sprite demo hell... enter the D-Zone
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 14th Feb 2017 11:10
Yes, I was wondering why he posted that code too.

At the very least it needs some explanation, e.g. did he need help getting it to work, was he offering it to us as an example or what? The file references to drive e: are unhelpful to say the least - and there's an obvious error at the end where the variable "fram" suddenly becomes "frame". Also, the code seems to get stuck in an infinite loop as soon as you try to run it. Not much point delving further into the code without more input from Hannibal (who after 9 years on this forum should know better).


Powered by Free Banners
Hannibal
17
Years of Service
User Offline
Joined: 5th Mar 2007
Location:
Posted: 14th Feb 2017 15:19
It's an example of meta balls lol

The 2 subroutines are for loading and saving images and are not called...
Hannibal
17
Years of Service
User Offline
Joined: 5th Mar 2007
Location:
Posted: 14th Feb 2017 15:27
or....


For some reason DBPro is acting weird


Try this version, attached

Attachments

Login to view attachments
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 14th Feb 2017 15:38
This version does work and does not lockup. The first version just showed a blank screen and didn't want to exit. I didn't look through to see what the difference in the two is.

BTW, you're last name isn't Lector is it?



So many games to code.....so little time.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 14th Feb 2017 16:12 Edited at: 14th Feb 2017 16:29
I still get just a blank screen. Should I have to wait a while or what?

Edit The answer seems to be "YES!!". After a few minutes this appeared:



Looks pretty at least.


Powered by Free Banners

Attachments

Login to view attachments
Hannibal
17
Years of Service
User Offline
Joined: 5th Mar 2007
Location:
Posted: 14th Feb 2017 16:47
wow, minutes? !
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 14th Feb 2017 16:50
Yep.

I've added a couple of lines so you can see something happening while you wait:



Powered by Free Banners
Hannibal
17
Years of Service
User Offline
Joined: 5th Mar 2007
Location:
Posted: 14th Feb 2017 17:18
Takes about 5 seconds here with an old 8400 gs and quad core q8300 2.5ghz :_(
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 14th Feb 2017 18:37
I'm using a GT630M laptop.

Oops! Just realised I'm using the Intel GFX card as a default. The code runs far quicker with the GT630M card.


Powered by Free Banners
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 15th Feb 2017 02:07
It took over 2 min before something was displayed on screen. Didn't see any animation though. I clicked the screen and it crashed. Running a GTX660 and i7-3770K

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
Hannibal
17
Years of Service
User Offline
Joined: 5th Mar 2007
Location:
Posted: 15th Feb 2017 16:32

If you haven't already,
try the meta7.dba one and not the cut and paste one...
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 19th Feb 2017 15:08

@GG
Dude I almost just p***ed my pants just reading that initial response from the 14th. Being drunk didn't help.

BTW, Always Sunny S8E8 is the greatest ever. (Charlie Rules the World)
Send your parents to noisy sprite demo hell... enter the D-Zone
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 20th Feb 2017 18:16
Quote: "Being drunk didn't help."


Who? You or me?
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 20th Feb 2017 23:20

Quote: "Who? You or me?"


Send your parents to noisy sprite demo hell... enter the D-Zone

Login to post a reply

Server time is: 2024-04-24 10:31:21
Your offset time is: 2024-04-24 10:31:21