Procedural Wood Texture flow along a curve?r

Hi

Maybe this question is best addressed to @DavidEranen ?

I would like to make this model look like wood cut from a full tree trunk.

But the grain in the Wood Texture is projected in a straight line.

Is it possible to have the mapping of a Procedural Wood Texture to flow along a Curve?

Thanks

Curved Wood Texture.3dm (523.4 KB)

Hi Hans Henrik,

Not directly — the Wood texture is evaluated in straight world coordinates (WCS), so the grain always runs in a straight line. OCS mapping can re-orient it per object but can’t bend it along a curve.

You can get the grain to follow your curve by moving the texture off WCS and onto a mapping channel:

  1. In the Wood texture’s Mapping section change the projection from WCS/OCS to Mapping channel 1
  2. Sweep1 a surface along your curve, roughly through the middle of the part and a bit bigger than it
  3. Select the model and use ApplyCustomMapping (Properties > Texture Mapping > Custom) picking that swept surface
  4. The texture now lives in the mapping’s UVW space, so adjust the Repeat values in the texture to get the ring scale back

The grain will stretch a little where the mapping surface stretches, and since the mapping is surface based the end grain won’t be a physically true trunk cut — that’s the honest limit of bending a 3d procedural this way.

There is an open item on mappings following deformations like Flow/Bend https://mcneel.myjetbrains.com/youtrack/issue/RH-61618 — if you’d like i can add a feature request for a curve option in the Wood texture mapping. Thanks

Yes please bring this forward as a feature request !

My intuition tells me that a “FlowAlongCurve” kinda - option in the Wood Texture mapping - and offcourse all the other textures too - would be very creative asset to Rhino Textures.

Is the 9 Beta closed for more features ?

Thanks