Problems building or running the engine, queries about how to use features etc.
OgreUser1
Gnoblar
Posts: 13 Joined: Tue Apr 24, 2012 8:21 am
Quote
0
login to like this post
Post
by OgreUser1 » Wed Jun 06, 2012 7:58 am
Hi,
Is there a way to get template which was used in specific ParticleSystem? Something like this(of course there is no GetTemplate() method in ParticleSystem class, just to explain what I'm looking for...):
Code: Select all
Ogre::ParticleSystem* particle = mSceneMgr->getParticleSystem("XXX");
Ogre::String templateName = particle->GetTemplate();
Searched in forum and google, but didn't find...
suny
Greenskin
Posts: 137 Joined: Thu Mar 12, 2020 5:53 pm
x 60
Quote
0
login to like this post
Post
by suny » Sun Aug 29, 2021 8:47 pm
I'm bumping this old question, because I also looked in the documentation and didn't found anything.
S.
sercero
Bronze Sponsor
Posts: 449 Joined: Sun Jan 18, 2015 4:20 pm
Location: Buenos Aires, Argentina
x 156
Quote
0
login to like this post
Post
by sercero » Mon Aug 30, 2021 4:49 am
Unfortunately, I don't know much about particle systems so I don't know how to get the template.
But, have you looked at the source?
Perhaps it is not very difficult to create the missing getter and submit a patch...
paroj
OGRE Team Member
Posts: 1994 Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:
Quote
1
login to like this post
Post
by paroj » Sat Sep 04, 2021 10:44 am
the template is just another ParticleSystem whose details are copied over to the instance on creation. The parent>child relationship is not tracked.
suny
Greenskin
Posts: 137 Joined: Thu Mar 12, 2020 5:53 pm
x 60
Quote
0
login to like this post
Post
by suny » Sat Sep 04, 2021 2:02 pm
Yes, this is what I understood.
Thanks!
S.