| View previous topic :: View next topic |
| Author |
Message |
oat Houdini Expert

Joined: 24 Dec 2009 Posts: 386

|
Posted: Sun Dec 25, 2011 2:16 pm GMT Post subject: [solved] how to color particles using infr-red color scheme? |
|
|
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
| Description: |
|
| Filesize: |
18.25 KB |
| Viewed: |
905 Time(s) |

|
| Description: |
|
| Filesize: |
36.5 KB |
| Viewed: |
905 Time(s) |

|
| Description: |
|
 Download |
| Filename: |
test_pts.rar |
| Filesize: |
20.37 KB |
| Downloaded: |
73 Time(s) |
| Description: |
|
 Download |
| Filename: |
particle_color1.hipnc |
| Filesize: |
40.79 KB |
| Downloaded: |
71 Time(s) |
Last edited by oat on Mon Dec 26, 2011 5:44 am GMT; edited 1 time in total |
|
| Back to top |
|
 |
zarti Houdini Expert

Joined: 12 Jul 2007 Posts: 301 Location: inside

|
Posted: Sun Dec 25, 2011 9:09 pm GMT Post subject: |
|
|
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' .
| Description: |
|
| Filesize: |
41.62 KB |
| Viewed: |
898 Time(s) |

|
| Description: |
|
 Download |
| Filename: |
particle_colorz1_109.hipnc |
| Filesize: |
81.53 KB |
| Downloaded: |
82 Time(s) |
| Description: |
|
 Download |
| Filename: |
pyMinMax.otl |
| Filesize: |
6.53 KB |
| Downloaded: |
81 Time(s) |
_________________ except the things that cannot be seen , nothing is like it seems . |
|
| Back to top |
|
 |
oat Houdini Expert

Joined: 24 Dec 2009 Posts: 386

|
Posted: Mon Dec 26, 2011 5:45 am GMT Post subject: |
|
|
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
| Description: |
|
| Filesize: |
60.63 KB |
| Viewed: |
881 Time(s) |

|
| Description: |
|
| Filesize: |
127.29 KB |
| Viewed: |
882 Time(s) |

|
| Description: |
|
 Download |
| Filename: |
room.rar |
| Filesize: |
992 Bytes |
| Downloaded: |
81 Time(s) |
| Description: |
|
 Download |
| Filename: |
point color _zarti4.hipnc |
| Filesize: |
139.26 KB |
| Downloaded: |
86 Time(s) |
| Description: |
|
 Download |
| Filename: |
test_pts_100000.rar |
| Filesize: |
2.31 MB |
| Downloaded: |
79 Time(s) |
|
|
| Back to top |
|
 |
zarti Houdini Expert

Joined: 12 Jul 2007 Posts: 301 Location: inside

|
Posted: Mon Dec 26, 2011 12:18 pm GMT Post subject: |
|
|
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 . |
|
| Back to top |
|
 |
oat Houdini Expert

Joined: 24 Dec 2009 Posts: 386

|
Posted: Mon Dec 26, 2011 12:49 pm GMT Post subject: |
|
|
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
|
|
| Back to top |
|
 |
zarti Houdini Expert

Joined: 12 Jul 2007 Posts: 301 Location: inside

|
Posted: Mon Dec 26, 2011 12:57 pm GMT Post subject: |
|
|
thanks Ji ! best wishes to you too !
_________________ except the things that cannot be seen , nothing is like it seems . |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
|