Page 1 of 1

when i called Multiple .ptc files..it ll be crashed..why?

PostPosted: Wed Oct 17, 2012 12:04 pm
by raju
we can not call two .ptc files at time..means how can i work with multiple .ptc files at time in different classes..??could you please reply As soon as Possible..

Re: when i called Multiple .ptc files..it ll be crashed..why?

PostPosted: Wed Oct 17, 2012 1:54 pm
by Odin_KG
API allows to load any number of ptc files. I need more info on your problem.

Re: when i called Multiple .ptc files..it ll be crashed..why?

PostPosted: Thu Oct 18, 2012 5:00 am
by raju
is it possible to rendering many .ptc files at a time? if Yes ,can you please explain me..because i loaded and rendered two .ptc files in different classes..Then it got crashed here..,
mp->RestoreAtlas();
mp->CloseFiles();

Re: when i called Multiple .ptc files..it ll be crashed..why?

PostPosted: Thu Oct 18, 2012 6:06 am
by raju
abd then I was just commented MP->Stop(); then it Renders all particles (all .ptc files) but one by one it rendering..but i need some files are loop mode and some files are once or timer basis..So what can i do for my requirement..??can you please explain me..

Re: when i called Multiple .ptc files..it ll be crashed..why?

PostPosted: Thu Oct 18, 2012 8:50 am
by ajgamester
Try this code... it works ...

MP_Emitter* emitter=m_mp->GetEmitterByName( this is name of the emitter in ptc );
emitter->SetState( MAGIC_STATE_UPDATE );
Magic_SetLoopMode( emitter->GetEmitter(),1 );

Re: when i called Multiple .ptc files..it ll be crashed..why?

PostPosted: Thu Oct 18, 2012 9:59 am
by Odin_KG
if Yes ,can you please explain me..because i loaded and rendered two .ptc files in different classes..

What do you mean as "different classes"? You may create MP_Manager one time only. You may load many ptc in one MP_Manager.

Re: when i called Multiple .ptc files..it ll be crashed..why?

PostPosted: Fri Jun 14, 2013 7:41 am
by angelblue15
There is no physics in Magic Particles yet. If you need you can test the vertexes on your own.

Magic Particles allows to define the rectangle and all particles will be destroying behind this rectangle.

Re: when i called Multiple .ptc files..it ll be crashed..why?

PostPosted: Fri Jun 14, 2013 11:39 am
by Odin_KG
There is no physics in Magic Particles yet.

Physics will be added in next version of Magic Particles. Currently I am working at this task.