SFML community forums

Help => General => Topic started by: schuki on November 06, 2014, 10:38:16 am

Title: explosions with smfl
Post by: schuki on November 06, 2014, 10:38:16 am
Hi there,
I'm new to sfml and created a little break out game. It's very basic and therefor I want to pimp it with some explosions. I thought about creating a little particle system to simulate a explosion of the breaks. Then I found the spar engine, which seems to be a very powerful engine for particle purposes....

Please could you tell me, what the common way in sfml to create explosions is? Sprites or bigger systems like spark?

thx a lot.
rgds
_schuki
Title: Re: explosions with smfl
Post by: eXpl0it3r on November 06, 2014, 10:45:08 am
There's no common way, "explosions" are not SFML specific, you can do it however you want.
Title: Re: explosions with smfl
Post by: Kojay on November 06, 2014, 10:30:31 pm
On the other hand, Thor does have a particles module (http://www.bromeon.ch/libraries/thor/v2.0/doc/group___particles.html) which makes creating pretty explosions pretty easy (check the fireworks example).
Title: Re: explosions with smfl
Post by: schuki on November 07, 2014, 02:16:48 am
Thanks for the advice using thor. I did the cmake, but I can't compile the files. I get the following error: msb6006 code 3.
Could anyone pls compile and upload this library?

I use SFML 2.1 and VS2013, Windows 8.1

Thanks a lot
_schuki
Title: Re: explosions with smfl
Post by: Nexus on November 07, 2014, 10:02:20 am
See the link in eXpl0it3r's signature, he provides nightly builds for Thor.
Title: Re: explosions with smfl
Post by: schuki on November 08, 2014, 05:27:49 pm
Ok thanks a lot. Ill try the library, because it supports the particle system I need =)
To include the library into my projekt I have to do the same as I did with SFML, right?

_schuki
Title: Re: explosions with smfl
Post by: Nexus on November 08, 2014, 05:31:58 pm
Pretty much. Please refer to the installation tutorial on my homepage (link in my signature).
Title: Re: explosions with smfl
Post by: schuki on November 09, 2014, 03:00:50 pm
I tried to include Thor. Visual Studio now knows the thor library, but if I excecute my game it tells me that it isn't able to find the thor-d.dll. How could I fix this?

If I copy the file into my project folder I get an "Entry Point Not Found" exception :(
Title: Re: explosions with smfl
Post by: Nexus on November 09, 2014, 03:06:04 pm
Then you have a version or configuration mismatch. Please follow the linking steps of my tutorial precisely, a lot of people don't read it carefully.

How are you linking Thor? Are you sure the .lib and .dll binaries are from the same compiler and Git revision?
Title: Re: explosions with smfl
Post by: schuki on November 09, 2014, 03:16:06 pm
Hi there,
I downloaded the nightly build from the following
url: http://www.nightlybuilds.ch/project/show/2/Thor/ (http://www.nightlybuilds.ch/project/show/2/Thor/)
commit: 949f79ebcf10e85656d9c9d5e81faf7a6cf68dfd

I put the content into: C:\Thor

Then I opened the properties of my project and added the thor libraries:
http://www.directupload.net/file/d/3801/aj329oge_jpg.htm (http://www.directupload.net/file/d/3801/aj329oge_jpg.htm)
http://www.directupload.net/file/d/3801/dgx9vsmm_jpg.htm (http://www.directupload.net/file/d/3801/dgx9vsmm_jpg.htm)
http://www.directupload.net/file/d/3801/hv4twi8i_jpg.htm (http://www.directupload.net/file/d/3801/hv4twi8i_jpg.htm)      

Did I miss something?

_schuki
Title: Re: explosions with smfl
Post by: Gambit on November 10, 2014, 03:46:37 am
The configuration looks fine, are you getting errors?