vopsop : how to get the maximum value of points attribute

   8021   5   3
User Avatar
Member
383 posts
Joined:
Offline
Hello,

I use a scatter sop with color attribute. The color value comes from HDR image and sometimes exceeds 1.0 .
I would like to fit all my point to reach the maximum value to 1.0.
How can I read the 3 components of the color of each points and get the maximum value inside them ?

Thanks for your help

Vincent
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
691 posts
Joined: 6月 2006
Offline
I have an asset that takes a float attribute and compute the min and max per frame and also across a time range.
Edited by - 2012年10月19日 18:03:40

Attachments:
SOP_aeb_att_min_max.otl (11.1 KB)

Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
User Avatar
Member
2624 posts
Joined: 8月 2006
Offline
vbk!!!
Hello,

I use a scatter sop with color attribute. The color value comes from HDR image and sometimes exceeds 1.0 .
I would like to fit all my point to reach the maximum value to 1.0.
How can I read the 3 components of the color of each points and get the maximum value inside them ?

Thanks for your help

Vincent

Hi Vincent,
I think your getting confused From the HDR image its the value you want to read in the Pixel from HSV which is then can be turned into an attribute and applied. I used the technique to sample a HDR to find the averaged brightest pixel from an HDR. I used this as a position and value for a key light. I made a tool some time ago and will have to dig out the workflow as it took some figuring.

rob
Gone fishing
User Avatar
Member
383 posts
Joined:
Offline
Thanks Alejandro,
It seems your otl do exactly what I am looking for.

Rob,
Not sure to understand what you wrote …
My purpose is to read through points attribute but the fact is I didn't think to use HSV intead of RGB. What the way to convert it in VOP ?
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
4495 posts
Joined: 2月 2012
Offline
Hi,

Try the RGB to HSV VOP.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
User Avatar
Member
383 posts
Joined:
Offline
of course …

thx !
http://vimeo.com/vbkstudio [vimeo.com]
  • Quick Links