Can I delete particles from a cache based on the particle phase? (it's a Lagoa sim)

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 07 July 2012   #1
[SOLVED]Can I delete particles from a cache based on the particle phase?

Hi Guys.

Another question for today:

Can I delete particles from a cache based on the particle phase? (it's a Lagoa sim)

The target for that is that i want to create two different meshes, one mesh will contain all the simulation, no matter what phase i'm using, and i want the other just with one of the two phases i'm using, so my objective is to cache the simulation and delete all particles that don't belong to the phase i want.

Cheers.
__________________
If there's no spoon you must eat the soup with your hands, don't let the tool be your life, be an artist.

Last edited by CerberusC : 07 July 2012 at 08:40 AM. Reason: Problem solved
 
Old 07 July 2012   #2
Ok, i've done it.

I can't access the phase information, because there is no such information in the cache (can it be added?), but i used the particle color, since i used two different colors for every phase, i used the particle color, i converted it to RGBA and then the scalars to a vector4, then i did the same with my predefined color, i passed a simple comparison equal test, and used an if to test it, then if it was true, i deleted the particles, and solved! i have my two different particle caches

Hope this helps another newbie in the future

Cheers.
__________________
If there's no spoon you must eat the soup with your hands, don't let the tool be your life, be an artist.
 
Old 07 July 2012   #3
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 02:49 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.