THE FX - Community of FX enthusiasts: Splashing particles where foam is - THE FX - Community of FX enthusiasts

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Splashing particles where foam is Maya

#1 User is offline   Bob Icon


  •  London
  •  student
  •  UK

  •   5 posts
  •   29-January 10

Posted 12 February 2010 - 09:02 AM

Hello again. I'm using maya's default ocean. I would like to know how I go about expressions so that I can emit particles where foam is.

thank you.
B
0

#2 User is offline   daisuke Icon


  •  Daisuke
  •  FX Fan
  •  New Zealand

  •   203 posts
  •   27-September 09

Posted 12 February 2010 - 11:03 AM

foam is normally white so you can use 'colorAtPoint' function to get color data from the ocean shader..

vector $myPos = particleShape1.position;
float $px = $myPos.x;
float $pz = $myPos.z;
float $colorInfo[] = `colorAtPoint -o RGB -u $px -v $pz oceanShader1`;

use $colorInfo[0],$colorInfo[1],$colorInfo[2] in a conditional statement to determine where are white areas(foam). <<1,1,1>> is white so I would find points where the data is higher than 0.6 or something like that.

then emit particles from there.
~ houdini fan ~
0

#3 User is offline   frantejo Icon


  •  francisco
  •  freelancer
  •  chile

  •   1 posts
  •   04-June 10

Posted 04 June 2010 - 08:11 PM

i am new to the forum, are some examples of how to do it, try it and I could not, thanks
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Skin by Skinbox
Quality & cheap IPB skins, premade vBulletin styles, cheap Web templates and more! - Skinbox