Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 Problem with Emiters :S

Go down 
2 posters
AuthorMessage
CytraL




Messages : 8
Date d'inscription : 2010-08-17

Problem with Emiters :S Empty
PostSubject: Problem with Emiters :S   Problem with Emiters :S Icon_minitimeTue Aug 17, 2010 1:09 pm

Hello! I'm trying to do that when a ball collides sparks fly ... The program crash when I created a system after another is erased ..
The problem seems to always apply the settings the same issuer .. and then to copy (to create new systems of particles) is copied with the parameters changed ..
Sry for my bad english :\

Class CParticle:
- HPP File
- CPP File

Create new System with:
Code:
 createParticleSystem(<POS> , PARTICLE_SPARK);




Download TEST [Windows x86]: http://filebeam.com/f9b3895455afd2bc9b955806ebf616f8
Problem with Emiters :S Triog10
Back to top Go down
Juff
Developer



Messages : 539
Date d'inscription : 2009-07-14
Age : 41

Problem with Emiters :S Empty
PostSubject: Re: Problem with Emiters :S   Problem with Emiters :S Icon_minitimeTue Aug 17, 2010 2:31 pm

Hi,

I ll check that.

Which version of SPARK are you using ? Which compiler ?
Which version of SFML ?

Thanks
Back to top Go down
http://spark.developpez.com
CytraL




Messages : 8
Date d'inscription : 2010-08-17

Problem with Emiters :S Empty
PostSubject: Re: Problem with Emiters :S   Problem with Emiters :S Icon_minitimeTue Aug 17, 2010 2:40 pm

Oops Sry... hehehehe

Im using..
SPARK version 1_05_02
SFML version 1.5
Compiler: MinGW (Code::Blocks IDE)


THX!
Back to top Go down
Juff
Developer



Messages : 539
Date d'inscription : 2009-07-14
Age : 41

Problem with Emiters :S Empty
PostSubject: Re: Problem with Emiters :S   Problem with Emiters :S Icon_minitimeTue Aug 17, 2010 3:34 pm

I dont see any errors in your code. Seems like you ve taken the code from the SFML demo of SPARK with no change.

Have you tried compiling the SFML demo against the same version of the SPARK libraries as the the one you used ?
Have you tried compiling your code in debug mode to see where it crashes ?

To me it looks like a null pointer error. Have you checked that your systems are not null when updating or rendering them ?
When are you calling the CParticleSystem destructor ?
Back to top Go down
http://spark.developpez.com
CytraL




Messages : 8
Date d'inscription : 2010-08-17

Problem with Emiters :S Empty
PostSubject: Re: Problem with Emiters :S   Problem with Emiters :S Icon_minitimeTue Aug 17, 2010 3:56 pm

I don't even try to compile the demo .. I will now.

Im update and rendering with "CParticleSystem::tick()" (If i delete the line "destroyParticleSystem(*it);" the progam don't crash but not render systemParticle)
The CParticleSystem destruct is called when the program is closing.

** The program crash when exec: "engine.screen.Display()"
Back to top Go down
CytraL




Messages : 8
Date d'inscription : 2010-08-17

Problem with Emiters :S Empty
PostSubject: Re: Problem with Emiters :S   Problem with Emiters :S Icon_minitimeTue Aug 17, 2010 4:10 pm

If i use "PARTICLE_SMOKE" the program not crash :S...
Code:
createParticleSystem(<POS> , PARTICLE_SMOKE);


Download TEST 'PARTICE_SMOKE' [Win x86]: http://filebeam.com/e50c194c1131e0ca509152081071ff22
Back to top Go down
Juff
Developer



Messages : 539
Date d'inscription : 2009-07-14
Age : 41

Problem with Emiters :S Empty
PostSubject: Re: Problem with Emiters :S   Problem with Emiters :S Icon_minitimeTue Aug 17, 2010 4:14 pm

hmm...

Have you compiled the Spark SFML module and your game against the same version of the SFML ? In the 1.05.02, the sfml module is compiled with the SFML 1.6. If you're using the SFML 1.5 in your game, you need to compile the SPARK SFML dll with the 1.5 as well. Moreover when using SPARK dynamic libraries you need to set the macro SPK_IMPORT (even if with gcc it might not be important).
Back to top Go down
http://spark.developpez.com
CytraL




Messages : 8
Date d'inscription : 2010-08-17

Problem with Emiters :S Empty
PostSubject: Re: Problem with Emiters :S   Problem with Emiters :S Icon_minitimeTue Aug 17, 2010 4:52 pm

WIIIIIIIIIII ^^


Thx!! xDDDD i compiled the SPARK DLL with SFML 1.5 and now works fine Very Happy!!
Back to top Go down
Juff
Developer



Messages : 539
Date d'inscription : 2009-07-14
Age : 41

Problem with Emiters :S Empty
PostSubject: Re: Problem with Emiters :S   Problem with Emiters :S Icon_minitimeTue Aug 17, 2010 5:01 pm

That s good to hear ! Bad linking errors are hard to track and often cause weird bugs...
Anyway keep us informed with your project and dont hesitate to ask if you have further questions.
Back to top Go down
http://spark.developpez.com
CytraL




Messages : 8
Date d'inscription : 2010-08-17

Problem with Emiters :S Empty
PostSubject: Re: Problem with Emiters :S   Problem with Emiters :S Icon_minitimeTue Aug 17, 2010 7:24 pm

Ok, thx for all Juff Wink


P.D For Developers Team: Great work with Spark!! thx for make it free Smile
Back to top Go down
CytraL




Messages : 8
Date d'inscription : 2010-08-17

Problem with Emiters :S Empty
PostSubject: Re: Problem with Emiters :S   Problem with Emiters :S Icon_minitimeWed Aug 18, 2010 5:07 pm

Preview Game with SPARK working... Smile

Back to top Go down
Juff
Developer



Messages : 539
Date d'inscription : 2009-07-14
Age : 41

Problem with Emiters :S Empty
PostSubject: Re: Problem with Emiters :S   Problem with Emiters :S Icon_minitimeMon Aug 30, 2010 2:03 pm

Very nice ! Good luck with your project
Back to top Go down
http://spark.developpez.com
Sponsored content





Problem with Emiters :S Empty
PostSubject: Re: Problem with Emiters :S   Problem with Emiters :S Icon_minitime

Back to top Go down
 
Problem with Emiters :S
Back to top 
Page 1 of 1
 Similar topics
-
» Spark opengl 64 bit
» Spark Particle Engine with D3D API
» Problem with GL_QUADS
» Problem when set particle position
» [SPARK2] Problem with QuadRenderer in a Ortho

Permissions in this forum:You cannot reply to topics in this forum
 :: English Forum :: Questions (en)-
Jump to: