HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 IRRSystem scale doesn't work?

View previous topic View next topic Go down 
AuthorMessage
mrteddy



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

PostSubject: 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. Smile
Back to top Go down
View user profile
Juff
Developer


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

PostSubject: 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);
Back to top Go down
View user profile http://spark.developpez.com
mrteddy



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

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

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




PostSubject: Re: IRRSystem scale doesn't work?   Today at 3:39 am

Back to top Go down
 
IRRSystem scale doesn't work?
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Take a UFC fighter to work contest.
» It’s Your Work of Art Contest *read location restrictions*
» Has Anyone Gotten Chrome Driver to Work with Windows 7?
» How do we run 10 cases out of 100 in TestNG frame work
» Does Keppra work?

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