[solved] how to color particles using infr-red color scheme?

   3073   5   1
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
suppose I have a group of particles, each having a point attrib “DF”

How to color these particles using the infr-red color scheme for the value range from the minimum “DF” value to the maximum “DF" value? something like the color image below…

thanks!

Ji
Edited by - Dec. 26, 2011 05:44:45

Attachments:
0.PNG (18.2 KB)
1.PNG (36.5 KB)
particle_color1.hipnc (40.8 KB)
test_pts.rar (20.4 KB)

User Avatar
Member
330 posts
Joined: July 2007
Offline
hi ,

here im uploading a file which might be useful ; with the VopSOP you can have more control over the colours .

im posting also the simple python otl which i used in the file , since i do not know yet how to include it in the ‘scene’ .

Attachments:
Screenshot.png (41.6 KB)
particle_colorz1_109.hipnc (81.5 KB)
pyMinMax.otl (6.5 KB)

except the things that cannot be seen , nothing is like it seems .
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
Thanks a lot, zarti!

pls see my update below.

the 1st image shows the interior space with Daylight Factor (a measure of daylight quality) value between 2% and 3%

the 2nd image shows the interior space with Daylight Factor larger than 2%

Ji

Attachments:
DLV001.PNG (127.3 KB)
room.rar (992 bytes)
point color _zarti4.hipnc (139.3 KB)
test_pts_100000.rar (2.3 MB)
DLV002.PNG (60.6 KB)

User Avatar
Member
330 posts
Joined: July 2007
Offline
hi Ji ,

on a side note ;
in the example i posted above , the range of color ramp fits within the whole range of “DF” attribute .

normally , applying colors in this way , isn't correct ( my example simply used min and max of DF values to define the range ) . this might be more noticeable if you had a sequence of animated .CSV files and min or max values wd change , i imagine .

anyway , you can delete imported min and max of detail attributes that are inside the VopSOP and replace the both Minimum & Maximum Value in Source with parameters to be promoted one level up . from there you can use your custom ( exact ) values to precisely ( min&max independent ) spread the colors .




again , interesting usage

except the things that cannot be seen , nothing is like it seems .
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
Hi zarti, I understand your advise and i agree that defining a fixed min and max value for color scheme is important for animating a serious of csv files.

wish u and the houdini community a happy new year!

Ji
User Avatar
Member
330 posts
Joined: July 2007
Offline
thanks Ji ! best wishes to you too !
except the things that cannot be seen , nothing is like it seems .
  • Quick Links