HomeHome  SearchSearch  RegisterRegister  Log inLog in  

Share
 

 IRRSystem scale doesn't work?

Go down 
AuthorMessage
mrteddy



Messages : 3
Date d'inscription : 2010-11-22

IRRSystem scale doesn't work? Empty
PostSubject: IRRSystem scale doesn't work?   IRRSystem scale doesn't work? Icon_minitimeThu Nov 25, 2010 8:42 pm

Is it possible to scale a system? Because when I call setScale() from the system it doesn't have any effect, but setPosition() does... here's my exact code:

Code:

   IRRSystem* newSystem = SPK_Copy(IRRSystem,system->getSPKID());
   newSystem->setParent(device->getSceneManager()->getRootSceneNode());

   newSystem->setPosition(pos);
   newSystem->setScale(vector3df(2, 2, 2));

EDIT: well, I currently have a scaling at the initialization, but it would be nice to be able to scale the particle systems as I want whenever I need to create a copy. Smile
Back to top Go down
Juff
Developer


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

IRRSystem scale doesn't work? Empty
PostSubject: Re: IRRSystem scale doesn't work?   IRRSystem scale doesn't work? Icon_minitimeFri Nov 26, 2010 1:33 pm

Hi,

Applying scaling to particle systems is not that easy because the scale will need to recompute lots of parameters (forces, position... everything that is dependent on distance unit actually).

However, if you dont use world space particles but rather system space particles (meaning that if you move or rotate your system, already emitted particles will follow it), you can scale it. However they are other constraints with local space particles : they cannot interract with world space object for instance...).

Anyway, to use local space particles, just create your base system by specifying particles will not be in world space :

Code:
baseSystem = new IRRSystem(null,device->getSceneManager(),false);
Back to top Go down
http://spark.developpez.com
mrteddy



Messages : 3
Date d'inscription : 2010-11-22

IRRSystem scale doesn't work? Empty
PostSubject: Re: IRRSystem scale doesn't work?   IRRSystem scale doesn't work? Icon_minitimeSat Nov 27, 2010 3:57 pm

Cool, thanks for the info Very Happy
Back to top Go down
Sponsored content




IRRSystem scale doesn't work? Empty
PostSubject: Re: IRRSystem scale doesn't work?   IRRSystem scale doesn't work? Icon_minitime

Back to top Go down
 
IRRSystem scale doesn't work?
Back to top 
Page 1 of 1

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