TROND HILLE - TECH ARTIST
  • Home
  • Portfolio
    • Stills
    • VFX and Animations
    • RnD & Tests (Instagram)
  • Scripts
  • BLOG
  • About
  • LinkedIn
  • Contact

Random Color from Texture Map

8/19/2018

0 Comments

 
Picture
Download HIP File
Doing a grain simulation I wanted to sample random colors from a photo, and add that to my grains. I also wanted my grain clusters to remain the same color. 
This whole setup proved to be very simple to do in VEX. Using the colormap function you can feed in a file name and the UVW coordinate to sample from. All I needed to do was to give each cluster an unique attribute, and randomize a UV selection based on the ID.

0 Comments



Leave a Reply.

    Author

    Just my own creative space for sharing simple scenes, ideas and thoughts. 

    Archives

    December 2018
    September 2018
    August 2018
    April 2018

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.
  • Home
  • Portfolio
    • Stills
    • VFX and Animations
    • RnD & Tests (Instagram)
  • Scripts
  • BLOG
  • About
  • LinkedIn
  • Contact