CGTalk > Software > Autodesk 3ds max > Particle Flow
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 03-21-2008, 02:53 AM   #1
Debneyink
Expert
portfolio
christian debney
director/animator
debneyink
Central London, United Kingdom
 
Join Date: Sep 2005
Posts: 479
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-21-2008, 10:32 AM   #2
noouch
Smooth Like Hollywood
 
noouch's Avatar
portfolio
Niko Conte
Munich, Germany
 
Join Date: Nov 2005
Posts: 1,151
Send a message via ICQ to noouch
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:

Code:
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-21-2008 at 10:37 AM.
 
Old 03-21-2008, 10:33 AM   #3
PsychoSilence
3Delicious
 
PsychoSilence's Avatar
portfolio
Anselm von Seherr - Thoß
VFX Technical Director
Incendii VFX
New Orleans, USA
 
Join Date: Aug 2003
Posts: 2,480
Send a message via ICQ to PsychoSilence
 
Old 03-21-2008, 11:27 AM   #4
Debneyink
Expert
portfolio
christian debney
director/animator
debneyink
Central London, United Kingdom
 
Join Date: Sep 2005
Posts: 479
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-22-2008, 09:13 PM   #5
Debneyink
Expert
portfolio
christian debney
director/animator
debneyink
Central London, United Kingdom
 
Join Date: Sep 2005
Posts: 479
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-23-2008, 12:32 AM   #6
OlegB
The Particles Caregiver
 
OlegB's Avatar
Oleg Bayborodin
Software Developer
USA
 
Join Date: Apr 2004
Posts: 410
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-23-2008, 12:45 AM   #7
Debneyink
Expert
portfolio
christian debney
director/animator
debneyink
Central London, United Kingdom
 
Join Date: Sep 2005
Posts: 479
not a bad answer but im not using a demo and im not using anything from box1! just 5k worth of max.
 
Old 03-23-2008, 01:12 AM   #8
PsychoSilence
3Delicious
 
PsychoSilence's Avatar
portfolio
Anselm von Seherr - Thoß
VFX Technical Director
Incendii VFX
New Orleans, USA
 
Join Date: Aug 2003
Posts: 2,480
Send a message via ICQ to PsychoSilence
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-23-2008, 01:32 AM   #9
Debneyink
Expert
portfolio
christian debney
director/animator
debneyink
Central London, United Kingdom
 
Join Date: Sep 2005
Posts: 479
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-23-2008, 01:32 AM   #10
CGTalk Moderation
Expert
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,478
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 06:41 PM.


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