crowds in PFlow

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 03 March 2008   #1
crowds in PFlow

so i have a crowd of static stood people instanced in pflow watching a concert in the middle of a stadium is there a way to get the meshes to be rotated all looking at one central target? with out having to do seperate sections for each angle? there may well be an easy problem but it's late and my brain is fried! thanks
 
Old 03 March 2008   #2
I gave it a shot with a script operator, but the behavior is still a bit weird, probably due to my still mediocre math skills:


on ChannelsUsed pCont do
(
	pCont.useOrientation = true
	pCont.usePosition = true
)

on Init pCont do 
(
 
)

on Proceed pCont do 
(
	count = pCont.NumParticles()
	targetObject = Dummy01

	for i in 1 to count do
	(
		pCont.particleIndex = i
		orientationZ = atan ((pcont.particlePosition.x - target1.pos.x)/(pcont.particlePosition.y - target1.pos.y))
		pCont.particleOrientation = [0, 0, orientationZ]
	)
)

on Release pCont do 
(
 
)


And attached is the set up scene. Like i said the behavior is still a bit wonky, but you get the idea... Feel free to correct the shoddy math used in the process

*edit*
well damn, seems anselm nailed this one
Attached Files
File Type: zip particleLookAt1.zip (17.9 KB, 21 views)

Last edited by noouch : 03 March 2008 at 10:37 AM.
 
Old 03 March 2008   #3
http://www.orbaz.com/forum/viewtopic.php?p=3244#3244

thanks,
anselm
 
Old 03 March 2008   #4
thats fantastic thanks, nice to wake up to!! I was about to try and tackle it myself.

So its pretty simple, all done with the find target control by speed settings? is that correct?
 
Old 03 March 2008   #5
Hey,


So ive been putting my crowds in to the stadium for my project and going by your method in plfow it all looks great in my view port, but when i render the image it gives me something different. It's kind of as though they are in their frame one position. They move accordingly to look at the target in the view but not in in the render.
strange but true!

any tips to solve this cause other wise its perfect!
 
Old 03 March 2008   #6
Just a guess - the scene could be using a Box#1 operator. If you have Box#1 demo version only, it will work in viewports but not during render - as explained during Box#1 demo installation.

Thanks,
Oleg B.
__________________
More about Particle Flow at Orbaz Forum
 
Old 03 March 2008   #7
not a bad answer but im not using a demo and im not using anything from box1! just 5k worth of max.
 
Old 03 March 2008   #8
if your scene is not under any NDA please attach or send the scene to olegs(support@orbaz.com) or my(mail@3delicious.de) email adress and we will see what we can do.

kind regards,
anselm
 
Old 03 March 2008   #9
yeah its wierd i cant send you my scene as its for an agency and they'd freak at me but i looked at the scene you sent me and attached my own mesh rendered it and its working fine so not sure what ive done with my project scene??

something daft no doubt.


thanks though
 
Old 03 March 2008   #10
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 03:14 PM.


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