FAQ FAQ      Search Search      Memberlist Memberlist      Usergroups Usergroups      Register Register      Profile Profile      Check private messages Check private messages      Log in Log in     

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

 
Post new topic   Reply to topic    Houdini Forum Index -> Houdini Apprentice
View previous topic :: View next topic  
Author Message
oat
Houdini Expert


Joined: 24 Dec 2009
Posts: 386

singapore.gif
PostPosted: Sun Dec 25, 2011 2:16 pm GMT    Post subject: [solved] how to color particles using infr-red color scheme? Reply with quote

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



0.PNG
 Description:
 Filesize:  18.25 KB
 Viewed:  905 Time(s)

0.PNG



1.PNG
 Description:
 Filesize:  36.5 KB
 Viewed:  905 Time(s)

1.PNG



test_pts.rar
 Description:

Download
 Filename:  test_pts.rar
 Filesize:  20.37 KB
 Downloaded:  73 Time(s)


particle_color1.hipnc
 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
View user's profile Send private message
zarti
Houdini Expert


Joined: 12 Jul 2007
Posts: 301
Location: inside

albania.gif
PostPosted: Sun Dec 25, 2011 9:09 pm GMT    Post subject: Reply with quote

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' .



Screenshot.png
 Description:
 Filesize:  41.62 KB
 Viewed:  898 Time(s)

Screenshot.png



particle_colorz1_109.hipnc
 Description:

Download
 Filename:  particle_colorz1_109.hipnc
 Filesize:  81.53 KB
 Downloaded:  82 Time(s)


pyMinMax.otl
 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
View user's profile Send private message
oat
Houdini Expert


Joined: 24 Dec 2009
Posts: 386

singapore.gif
PostPosted: Mon Dec 26, 2011 5:45 am GMT    Post subject: Reply with quote

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



DLV002.PNG
 Description:
 Filesize:  60.63 KB
 Viewed:  881 Time(s)

DLV002.PNG



DLV001.PNG
 Description:
 Filesize:  127.29 KB
 Viewed:  882 Time(s)

DLV001.PNG



room.rar
 Description:

Download
 Filename:  room.rar
 Filesize:  992 Bytes
 Downloaded:  81 Time(s)


point color _zarti4.hipnc
 Description:

Download
 Filename:  point color _zarti4.hipnc
 Filesize:  139.26 KB
 Downloaded:  86 Time(s)


test_pts_100000.rar
 Description:

Download
 Filename:  test_pts_100000.rar
 Filesize:  2.31 MB
 Downloaded:  79 Time(s)

Back to top
View user's profile Send private message
zarti
Houdini Expert


Joined: 12 Jul 2007
Posts: 301
Location: inside

albania.gif
PostPosted: Mon Dec 26, 2011 12:18 pm GMT    Post subject: Reply with quote

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
View user's profile Send private message
oat
Houdini Expert


Joined: 24 Dec 2009
Posts: 386

singapore.gif
PostPosted: Mon Dec 26, 2011 12:49 pm GMT    Post subject: Reply with quote

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
View user's profile Send private message
zarti
Houdini Expert


Joined: 12 Jul 2007
Posts: 301
Location: inside

albania.gif
PostPosted: Mon Dec 26, 2011 12:57 pm GMT    Post subject: Reply with quote

thanks Ji ! best wishes to you too !
_________________
except the things that cannot be seen , nothing is like it seems .
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Houdini Forum Index -> Houdini Apprentice All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


phpBB component v1.2.4 RC3 by Adam van Dongen. Based on phpBB © 2001, 2002 phpBB Group