Spawn particles from other particle shapes?

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
  06 June 2007
Spawn particles from other particle shapes?

Hello everyone!

I have a question. Is it possible to spawn particles from edges/polys/vertices of already existing particle shapes. Normally, when you spawn particles, they're being spawned from the pivot of every particle... Is there any possibility except any PFlow Upgrades. maybe Script Tests?

Thank you very much!!!

Greets
vertigo
__________________
VFX artist
www.emilstefanov.com
 
  06 June 2007
The easiest way it to use a mesher, then use position object on that mesher in another flow -- with animated shape turned on.
__________________
http://www.fx-td.com
 
  06 June 2007
hm, that's an idea, SoLiTuDe.
I hope the method will work with the birth script I use. I'll try!
Thanks!!!


Greets
vertigo

P.S.: OK, it works, although max is pretty unstable with performance (and I just did a test schene with 7-8 particles) . But, hey, thanks man!
__________________
VFX artist
www.emilstefanov.com

Last edited by vertigo : 06 June 2007 at 04:27 PM.
 
  06 June 2007
It can be a bit buggy though. I'd do a particle transfer to scene objects. Via Bobo's site then bake the animation of that and emmit from the baked geometry.

Edit: And this method is much less processor/ram intensive since you'll be working with keyframes. Feel free to tear into my rifter script. It's heavily commented and should get you headed in the right direction. If I haven't uploaded the version that bakes keyframes email me and bug me about it and send you the most recent one.
__________________
WilliamRickert.com

Last edited by supremepizza : 06 June 2007 at 08:30 PM.
 
  06 June 2007
Much better idea there. Not as easy to set up, but much better in the long run.
__________________
http://www.fx-td.com
 
  06 June 2007
Hi supremepizza,

That sounds good.
Where can I find this script? I couldn't locate it on scriptspot.com...

Thanks!

Greets
vertigo
__________________
VFX artist
www.emilstefanov.com
 
  06 June 2007
I attached it somewhere here in a post. Here I'll post my latest version here. It isn't exactly what you need. It's more of a poor man's Afterburn but if you're familliar with MAXScript you should be able to cut out what you'll need. This basically just cuts up the model and explodes it using atmospheric gizmos. But instead of gizmos you'll be wanting to drive your geometry. It's fairly easy to bake the keyframes which is in the last rollout so just look at that towards the bottom of the script.

Hope it helps. I've used it for everything from blowin stuff up to proceedural asteroid fields where I drive SDeflectors and winds instead of gizmos.

Enjoy,
Bill
Attached Files
File Type: zip Rifter 1_1b.zip (5.1 KB, 17 views)
__________________
WilliamRickert.com
 
  06 June 2007
Here, I cut/pasted my code from the asteroid scene I did for McKay's class. First one is particle transfer to scene objects for your script operator and the second is for baking the keyframes. Not as complicated as some people want to make it. You will need to do a hold and fetch but I'm sure you're familliar with that. If not let me know.
on ChannelsUsed pCont do
(
	 pCont.useTM = true
	 pCont.useAge = true
)
on Init pCont do 
(
	 global My_SDeflector_01 = $SDeflector*
	 global My_SWind_01 = $SWind*
	 My_SDeflector_01.pos = [0,0,-100000]
	 My_SWind_01.pos = [0,0,-100000]
)
 
on Proceed pCont do 
(
	 partcount = pCont.NumParticles()
	 count = amin #(partcount,My_SWind_01.count)
	 for i in 1 to count do
	 (
		 pCont.particleIndex = i
		 My_SDeflector_01[i].transform = pCont.ParticleTM
		 My_SWind_01[i].transform = pCont.ParticleTM
	 )
)
 
on Release pCont do 
(
)


animate on

for t = 0 to animationrange.end do

(

	  slidertime = t

	  $SDeflector01.transform = $SDeflector01.transform

	  $SWind01.transform = $SWind01.transform

)--end t loop

animate off
__________________
WilliamRickert.com
 
  06 June 2007
On a related note here's my "Scripted Chunks By Mass" birth script. Great for blowin stuff up but you'll have to keyframe your wind values to get it right. To see the results of it I'll upload the composite to my portfolio for ya. Basically just tryin to turn you on to the possibilities of "scripted chunks" and "particle transfer to scene objects" techniques. Both have uses in what you're trying to do and are great for pre-baking and setting up particles for use with reactor.
on ChannelsUsed pCont do
(
 pCont.useAge = true
 pCont.useTM = true 
 pCont.useShape = true
 pCont.useScale = true
 pCont.useFloat = true
)--end channels used
 

on Init pCont do
( 
 global ChunksArray = $bfrag* as array
 --Global theCount = pCont.NumParticles()
 --Global NumChunks = ChunksArray.count
)--end init
 
on Proceed pCont do
(
 t = pCont.getTimeStart() as float
 if t < 0 do
 (
  NumChunks = ChunksArray.count
  for i = 1 to NumChunks do
  (
   pCont.AddParticle()
   pCont.particleIndex = pCont.NumParticles()
   pCont.particleAge = 0
   pCont.particleTM = ChunksArray[i].transform	  
   pCont.particleShape = ChunksArray[i].mesh
  )--end i
 )--end if
 theCount = pCont.NumParticles()
 for i in 1 to thecount do
 (
  pCont.particleIndex = i
  theMax = ChunksArray[i].max
  theMin = ChunksArray[i].min
  theScale = distance theMax  theMin
  --pcont.particlescale = theScale
  pCont.particleFloat = 1.0/(theScale)
 )--end i
)--end proceed

on Release pCont do
(
)
__________________
WilliamRickert.com
 
  06 June 2007
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 10:28 AM.


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