Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: explosions with smfl  (Read 2954 times)

0 Members and 1 Guest are viewing this topic.

schuki

  • Newbie
  • *
  • Posts: 8
    • View Profile
explosions with smfl
« 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

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: explosions with smfl
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Kojay

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Re: explosions with smfl
« Reply #2 on: November 06, 2014, 10:30:31 pm »
On the other hand, Thor does have a particles module which makes creating pretty explosions pretty easy (check the fireworks example).

schuki

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: explosions with smfl
« Reply #3 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
« Last Edit: November 08, 2014, 05:28:04 pm by schuki »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: explosions with smfl
« Reply #4 on: November 07, 2014, 10:02:20 am »
See the link in eXpl0it3r's signature, he provides nightly builds for Thor.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

schuki

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: explosions with smfl
« Reply #5 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

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: explosions with smfl
« Reply #6 on: November 08, 2014, 05:31:58 pm »
Pretty much. Please refer to the installation tutorial on my homepage (link in my signature).
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

schuki

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: explosions with smfl
« Reply #7 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 :(
« Last Edit: November 09, 2014, 03:02:40 pm by schuki »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: explosions with smfl
« Reply #8 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?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

schuki

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: explosions with smfl
« Reply #9 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/
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/dgx9vsmm_jpg.htm
http://www.directupload.net/file/d/3801/hv4twi8i_jpg.htm      

Did I miss something?

_schuki
« Last Edit: November 09, 2014, 03:38:45 pm by schuki »

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: explosions with smfl
« Reply #10 on: November 10, 2014, 03:46:37 am »
The configuration looks fine, are you getting errors?