Description
Four simple nodes that allow you to map (or reverse) values and vectors/colors. The two main "functions" are "Map value" and "Map color" (i.e. vector or "triplet values") and those exist in two versions: node groups and OSL scripts.
This can be usefull when you want to map the location from the object/particle info node etc. You can see an example of with and without mapping of location values in the preview images.
In the file there's a usage example with a particle system and a node tree where each of the nodes are represented.__Usage tips:__
- If you're mapping locations make the Min & Max of the input the range in Blender Units(/meters) match the locations of the objects/particles (if your objects can be find from -42 to 42 BU on an axis, enter that as your Input Min & Max).
- If there's a big difference on the range where the objects are from one axis to another, you might want to use a Seperate RGB on the Location, run each value (RGB = XYZ) through it's own Map Value node and then use Combine RGB (this also allows you to swap axis etc). You could also use a HSV-convert instead!
- The uses are not limited to locations (but that's what I wanted it primary for!)
*Side note: There's a built-in node like this in the compositor, but sadly not one for Cycles (hopefully that will be added in the future [for better performance]). All "mapping" nodes in Cycles (like Vector > Mapping) wont map the values like this, instead it clips the values.*
Mapping Nodes for Cycles (Node groups + OSL)
- Downloads
- 54
- Likes
- 0
- License
- CC0
- Category
- Miscellaneous Objects
- Blender Version
- 2.6x
- Render Engine
- Cycles
- File Size
- 136 KB
Comments (0)
Sign in to leave a comment.