mrteddy
Messages : 3 Date d'inscription : 2010-11-22
| Subject: IRRSystem scale doesn't work? Thu 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. | |
|
Juff Developer
Messages : 539 Date d'inscription : 2009-07-14 Age : 42
| Subject: Re: IRRSystem scale doesn't work? Fri 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); | |
|
mrteddy
Messages : 3 Date d'inscription : 2010-11-22
| Subject: Re: IRRSystem scale doesn't work? Sat Nov 27, 2010 3:57 pm | |
| Cool, thanks for the info | |
|
Sponsored content
| Subject: Re: IRRSystem scale doesn't work? | |
| |
|