GafferHQ / gaffer

Gaffer is a node-based application for lookdev, lighting and automation
http://www.gafferhq.org
BSD 3-Clause "New" or "Revised" License
965 stars 207 forks source link

Add step/block interpolation to splines in Gaffer #3862

Closed andrewkaufman closed 2 years ago

andrewkaufman commented 4 years ago

Summary

We'd like a step/block interpolation option on spline plug widgets (eg oslColorSpline, oslFloatSpline).

User story

What

We'd like a "stepped" or "block" or "constant" interpolation option added to the dropdown on the spline widget.

Why

For toon shading its especially useful to drive a tonemap with a stepped ramp to get a cellular effect.

Implementation notes

We should be able to represent stepped interpolation using a new IECore::CubicBasic::constant() with a single non-zero value.

murraystevenson commented 2 years ago

Closing - addressed in Gaffer 1.0.5.0.