# What can the Cycles Geometry node 'Parametric' Socket be used for?

In Cycles, the Geometry node has a socket for Parametric. What would this input be useful for?

It looks to me to be identical to UV coordinates for each triangle where the vertices are (0,0),(0,1),(1,0) but with no means of indicating or influencing the orientation of the face. I can't find any meningful documentation that explains what it could be used for.

Can anyone plese explain what it can be used for and, if possible, provide examples of it in use.

## 3 Answers

This output represents the "barycentric coordinates" in the rendered triangle. They can be used to interpolate any data defined at the triangle's vertices.

In practice, however, as The Cycles Input Encyclopedia explains:

It’s another one you probably won’t use very often, unless you’re trying to make an unusual wireframe effect, although we now have a specific node for that.

EDIT Here's an idea how you could use it: you can find the "center of mass" of the triangle - it is where all three coordinates have the same value. In practice you would need to work with an error threshold, and find a small triangle in the rendered triangle.

Another idea: Some software, such as Modo, have "Barycentric UV projection", you could probably emulate that, and use textures created in them.

• Thanks for the info - very interesting. So the Parametric can be used to blend between vertex properties - So if we could get, say, the Normal at each Vertex we could blend them across the face similar to Smooth Shading. However, we don't seem to be able to get those vertex data, nor determine or control which vertex is which. There must surely be a use for it other than an "unusual wireframe effect". Dec 22, 2016 at 22:42
• I came up with an idea, see the modified answer :) Dec 22, 2016 at 23:22

Some more creative uses of parametric coordinates, creating center points. Ramp converters are used to map colours across a face, with two positive edges on either end, containing x1 and y1 values.

Example using parametric co-ordinates in case anyone else is wondering how it can be used.

• Insufficient explanation, image alone is not enough. Is parametric only for color ramps? And what does it do? Jan 29, 2019 at 8:52
• This is an example to support the above answers. As to how it works, all I can say is it seems to output vector co-ordinates of each point per triangulated face as x1 y1 z0. When creating triangles the closing vertex of the first edge will be given an X value, second Y and the closing edge or last created edge, will hold no value (Z0). For example when you create a default circle with 'pin wheel' fill, this will create triangles in the order 'from circle to center and back' wheras filling it by extruding the circle and collapsing the new verts will make the center vert Z0. Feb 16, 2019 at 10:35