ogre1.64 and particle universe 1.3

Moderator: spookyboo

ogre1.64 and particle universe 1.3

Postby bruce on Fri Jul 30, 2010 7:02 am

Hi,
I have a problem, I am using particle universe 1.1, and there are some problems.
Particle universe 1.3 have soloved the problems. But I have an other problem, can particle universe 1.3 use ogre 1.64?
I can not change ogre1.64 to ogre1.71, so if I use particle universe1.1, the problems will still there, but particle universe 1.3 is not suit my project.
So is there any ways to solove this problem.
Thank you.
bruce
 
Posts: 7
Joined: Tue Mar 09, 2010 7:10 am

Re: ogre1.64 and particle universe 1.3

Postby spookyboo on Fri Jul 30, 2010 11:59 am

PU 1.3 is compatible with Ogre 1.7 and not with 1.6
Best way is to apply the changes that solved the bug to 1.1 manually (not sure what the bug is though). This needs a source compare I'm afraid.
If you tell me what the bug was, maybe I can point you to the right piece of code.
User avatar
spookyboo
 
Posts: 447
Joined: Sat May 17, 2008 7:58 pm

Re: ogre1.64 and particle universe 1.3

Postby JustBoo on Fri Jul 30, 2010 8:15 pm

Oh Rats!. I'm using Ogre 1.6.5. I am not going to upgrade anytime soon.

So, there is no way to use PU with that version? Never saved off a good version for 1.6.x?

Hoping for a rabbit in a hat I guess.
JustBoo
 
Posts: 3
Joined: Fri Jul 30, 2010 8:11 pm

Re: ogre1.64 and particle universe 1.3

Postby spookyboo on Sat Jul 31, 2010 6:06 pm

The changes from PU 1.2 to 1.3 are major, because the new scriptcompiler is used. All ..Tokens files are rewritten for example.
User avatar
spookyboo
 
Posts: 447
Joined: Sat May 17, 2008 7:58 pm

Re: ogre1.64 and particle universe 1.3

Postby bruce on Mon Aug 02, 2010 1:58 am

Thank you .
The problem. I create a particle system and I used a handle to callback the function stop(), and after I stop the particle, I need to delete the particle , I create a listener for the particle, when the listener is called, the particle can not delete currently, but next frame I can do. so I need a function for example update() to do this.
So , I think can there be a listener for UniverparticleManager, and called by univerparticlesystem.
That's all , Thank you , can you help me , if there are more helpful methods.
bruce
 
Posts: 7
Joined: Tue Mar 09, 2010 7:10 am

Re: ogre1.64 and particle universe 1.3

Postby spookyboo on Tue Aug 03, 2010 7:26 pm

Sorry, I have no idea what you mean precisely. If you want to destroy a particle system after it has stopped, you can use a ParticleSystemListener in PU 1.3
- Create a ParticleSystemListener and implement handleParticleSystemEvent()
- Add the ParticleSystemListener to the ParticleSystem by means of ParticleSystem::addParticleSystemListener()
- In the handleParticleSystemEvent() you check on particleUniverseEvent.eventType() and compare it with PU_EVT_SYSTEM_STOPPED
- If this is the event, delete the ParticleSystem.
User avatar
spookyboo
 
Posts: 447
Joined: Sat May 17, 2008 7:58 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron