# Procedural Textures - cycles?

**URL:** <https://blenderartists.org/t/procedural-textures-cycles/619165>\
**Category:** Blender and CG Discussions\
**Created:** [August 18, 2014, 3:02pm UTC](https://blenderartists.org/t/procedural-textures-cycles/619165 "2014-08-18T15:02:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![moony](https://blenderartists.org/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@moony](https://blenderartists.org/u/moony)\
**Post date:** [August 18, 2014, 3:02pm UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/1 "2014-08-18T15:02:10Z")

</div>

Blender has a relatively limited set of procedural textures based on past experience with other 3d programs - even going back to Imagine 3D on the Amiga.

Several basic (but useful) texture types aren’t available such as hexagons, polka dots, clouds, weave, tiles, scales etc

After looking around - there do appear to have been attempts to build more procedural textures into blender - for example:

> **[New Procedural Tiles Texture in Blender - BlenderNation](https://www.blendernation.com/2007/06/16/new-procedural-tiles-texture-in-blender/)**
>
> A new and exciting type of texture is being developed for Blender! And yes, builds are available so you can check it out... The developer, known as "Wizard", writes: This is a new texture type called "Tiles". When you add a new texture, you will be...

Is there any intention to expand the current set available in cycles (even so far as making some of those available under BI - also available in cycles?). The ability to combine procedural textures via nodes would make the addition of even a few more procedural texture types very powerful indeed.

I know we have OSL now - but it’s still limited to CPU rendering.

---

<div class="post-metadata">

**Author:** ![Charlie](https://blenderartists.org/user_avatar/blenderartists.org/charlie/32/1297835_2.png) [@Charlie](https://blenderartists.org/u/Charlie)\
**Post date:** [August 18, 2014, 3:59pm UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/2 "2014-08-18T15:59:03Z")

</div>

FYI OSL port of this patch is available in this [post](https://blenderartists.org/forum/showthread.php?277284-Tiles-Texture-OSL&p=2308464&viewfull=1#post2308464).

---

<div class="post-metadata">

**Author:** ![Secrop](https://blenderartists.org/user_avatar/blenderartists.org/secrop/32/20093_2.png) [@Secrop](https://blenderartists.org/u/Secrop)\
**Post date:** [August 18, 2014, 5:28pm UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/3 "2014-08-18T17:28:26Z")

</div>

IMHO, I think Cycles, and specially the node system for Cycles, is one of the most versatiles methods for creating procedural textures. It’s raw, of course, but it has all the elements for doing whatever you want. Hexagons, Polka dots, etc, all can be done within Cycles node system (with the same math behind any of them). OSL is a plus and it can do even more.

I tend not to use textures in my scenes, and Cycles let me do it very easily.

(actually, moony, you’ve seen examples from me that show how much one can do just with nodes) 😉

---

<div class="post-metadata">

**Author:** ![Benjamin\_Dod](https://blenderartists.org/user_avatar/blenderartists.org/benjamin_dod/32/30603_2.png) [@Benjamin\_Dod](https://blenderartists.org/u/Benjamin_Dod)\
**Post date:** [August 18, 2014, 6:27pm UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/4 "2014-08-18T18:27:40Z")

</div>

I haven’t cried for features in a while, so I will now.  
Cycles is really lacking in it’s generated texture features. A lot of BI’s procedural texture awesomeness wasn’t really carried over into Cycles when it was built. For instance: BI’s generated cloud texture has options for soft/hard, basis, and nabla (whatever that is), while cycles only has options for scale, detail, and distortion. BI’s voroni texture has options for distance metric, coloring and feature weights, while cycles only has coloring and scale options. It’s node setup, however, does provide for a lot of flexibility when it comes to modifying the generated textures, but it could use more option to build the actual textures themselves. I think cycles could definitely use this as well as more options for current procedural textures (feature weight for voroni, texture types (e.g. perlin), and others). Also, I think we could use a point density input **with** options like turbulence.

---

<div class="post-metadata">

**Author:** ![Secrop](https://blenderartists.org/user_avatar/blenderartists.org/secrop/32/20093_2.png) [@Secrop](https://blenderartists.org/u/Secrop)\
**Post date:** [August 18, 2014, 6:56pm UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/5 "2014-08-18T18:56:09Z")

</div>

That’s a point, Benjamin! about turbulence, soft/hard, nabla… one can allways tweak the input vector, or the output value.  
But the rest, those are things that would make a diference.

Just like recursion, that was added to noise (musgrave node), but still there’s none in voronoi. And voronoi’s secondaries points output would give us even more control! (about this, I really don’t know why are they hided… they are still calculated!) 😕

---

<div class="post-metadata">

**Author:** ![SynaGl0w](https://blenderartists.org/user_avatar/blenderartists.org/synagl0w/32/509462_2.png) [@SynaGl0w](https://blenderartists.org/u/SynaGl0w)\
**Post date:** [August 18, 2014, 7:59pm UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/6 "2014-08-18T19:59:41Z")

</div>

You can make a lot of things with cycles nodes that are GPU compatible:

 ![](https://blenderartists.org/uploads/default/original/4X/f/b/d/fbdeb0de2aa6c2781546b2d3c21961e0a2033ec4.png)  

 ![](https://blenderartists.org/uploads/default/original/4X/9/f/e/9fe369ec727dc7ae197fed4bf159c592be844894.jpg)  

 ![](https://blenderartists.org/uploads/default/original/4X/5/f/f/5ffc2eea306a6c30cd0d5551f69f03573fb859ca.jpg)  

When you want to learn to create procedural textures from scratch, start basic with texture coordinates and try to make some simple things using only the coordinates, square tiles/grids etc. Use existing textures or your own to distort and manipulate coordinates used for other textures. Making your own procedurals is really fun. GPU of course makes them more worth while. Just make sure to not have too many concurrent connections between nodes… MOAR SVM STACK SPACE NAOW!!!1!!111!!!11!!!1 …at least user adjustable for CPU:eyebrowlift:

Yeah, voronoi really needs more options made available. Also need material stats to be shown in node editor, like SVM elements used and total available, profiling, etc.

---

<div class="post-metadata">

**Author:** ![Ace\_Dragon](https://blenderartists.org/user_avatar/blenderartists.org/ace_dragon/32/1067926_2.png) [@Ace\_Dragon](https://blenderartists.org/u/Ace_Dragon)\
**Post date:** [August 18, 2014, 10:05pm UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/7 "2014-08-18T22:05:25Z")

</div>

> [@Benjamin Dod](#):
>
> I haven’t cried for features in a while, so I will now.  
> Cycles is really lacking in it’s generated texture features. A lot of BI’s procedural texture awesomeness wasn’t really carried over into Cycles when it was built. For instance: BI’s generated cloud texture has options for soft/hard, basis, and nabla (whatever that is), while cycles only has options for scale, detail, and distortion. BI’s voroni texture has options for distance metric, coloring and feature weights, while cycles only has coloring and scale options.

Last I heard, DingTo has said that adding more procedural textures will put more pressure on the kernel, which means that it will be harder to compile with CUDA enabled, though newer iterations may allow for a easier time with larger kernels so that type of thing may not be as much of an issue in the future.

Anyway, I do agree with bringing back some of the BI procedural functionality, but in a way that avoids as much duplication as possible. Like…  
  
_Voronoi_ - add back the feature weights and the distance calculation types, also add a depth setting and a toggle for hard noise.  
_Noise_ - Add back the toggle for soft/hard noise (not the voronoi noises as this would be duplication).  
_Wave_ - Add back the ‘saw’ wave (‘tri’ can be recreated using colorramps).  
_Bricks_ - change the shapes that are drawn from solid rectangles to gradient rectangles (to allow for bevels).

---

<div class="post-metadata">

**Author:** ![BaRe](https://blenderartists.org/user_avatar/blenderartists.org/bare/32/22960_2.png) [@BaRe](https://blenderartists.org/u/BaRe)\
**Post date:** [August 19, 2014, 12:52am UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/8 "2014-08-19T00:52:02Z")

</div>

i agree too, we have osl and that’s cool, but i don’t see often people using this method for ohter procedural complicated based node shaders, @ SynaGl0w from where comes theses hexa textures, can we have a link please? i’m interested to see how they are builds. :eyebrowlift:

---

<div class="post-metadata">

**Author:** ![Krice](https://blenderartists.org/letter_avatar_proxy/v4/letter/k/f475e1/32.png) [@Krice](https://blenderartists.org/u/Krice)\
**Post date:** [August 19, 2014, 1:03am UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/9 "2014-08-19T01:03:22Z")

</div>

Let’s use only one texture which can be programmed with some script language to produce all textures.

---

<div class="post-metadata">

**Author:** ![Hadriscus](https://blenderartists.org/user_avatar/blenderartists.org/hadriscus/32/978263_2.png) [@Hadriscus](https://blenderartists.org/u/Hadriscus)\
**Post date:** [August 19, 2014, 2:06am UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/10 "2014-08-19T02:06:03Z")

</div>

@SynaGl0w, how do you do all of that ?

---

<div class="post-metadata">

**Author:** ![Piotr\_Adamowicz](https://blenderartists.org/user_avatar/blenderartists.org/piotr_adamowicz/32/4101_2.png) [@Piotr\_Adamowicz](https://blenderartists.org/u/Piotr_Adamowicz)\
**Post date:** [August 19, 2014, 2:08am UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/11 "2014-08-19T02:08:28Z")

</div>

Cycles doesn’t need more procedurals - you can make almost anything as it is. The thing is they’re pretty expensive, and they’ll never support gather/scatter ops, such as blurring (or if that ever happens it’s going to be _very_ expensive).

What Blender does need is a return of the texture compositor. BI had this right, but the downfall of that system was that it had too many limitations due to targeting pure procedurals, and they were evaluated at render time. The texture compositor needs to target finite resolution bitmaps, evaluate them before rendering and store the result as an image. That way Cycles, or any other renderer that supports image textures for that matter, can just do a texture lookup at render time, gaining massive performance, while preserving a lot of the benefits of procedural textures.

A lot of the work is already done - we already have a great compositor. There is not that much it needs to work great for texture compositing:

- Support for more than one graph per scene
- The ability to connect its output as a texture
- Various texturing-specific nodes, such as height to normal, quadrants, iterators, more comprehensive transforms - nodes can be added over many releases.

---

<div class="post-metadata">

**Author:** ![el\_diablo](https://blenderartists.org/letter_avatar_proxy/v4/letter/e/dbc845/32.png) [@el\_diablo](https://blenderartists.org/u/el_diablo)\
**Post date:** [August 19, 2014, 2:24am UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/12 "2014-08-19T02:24:23Z")

</div>

> [@Piotr Adamowicz](#):
>
> Cycles doesn’t need more procedurals - you can make almost anything as it is. The thing is they’re pretty expensive, and they’ll never support gather/scatter ops, such as blurring (or if that ever happens it’s going to be _very_ expensive).
> 
> What Blender does need is a return of the texture compositor. BI had this right, but the downfall of that system was that it had too many limitations due to targeting pure procedurals, and they were evaluated at render time. The texture compositor needs to target finite resolution bitmaps, evaluate them before rendering and store the result as an image. That way Cycles, or any other renderer that supports image textures for that matter, can just do a texture lookup at render time, gaining massive performance, while preserving a lot of the benefits of procedural textures.
> 
> A lot of the work is already done - we already have a great compositor. There is not that much it needs to work great for texture compositing:
> 
> - Support for more than one graph per scene
> - The ability to connect its output as a texture
> - Various texturing-specific nodes, such as height to normal, quadrants, iterators, more comprehensive transforms - nodes can be added over many releases.

Its actually quite easy to get this working in a basic form. I got the compositor to output a temp file (it was easiest way to go) and scripted a onRenderStart texture load updater. Also you can do a FrameChange update for animated textures from the compositor. I am quite sure that someone that has more knowledge of the source could do this in a more flexible fashion keeping everything in memory. Also for best results compositor would need various inputs that are available to nodal materials.

With this in place you could do the same or more that Substance designer for example can do. And that would be a real benefit.

---

<div class="post-metadata">

**Author:** ![moony](https://blenderartists.org/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@moony](https://blenderartists.org/u/moony)\
**Post date:** [August 19, 2014, 3:48am UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/13 "2014-08-19T03:48:22Z")

</div>

> [@SynaGl0w](#):
>
> You can make a lot of things with cycles nodes that are GPU compatible:

I had no idea you could do stuff like this…can you show the detail of those three node groups?

---

<div class="post-metadata">

**Author:** ![BaRe](https://blenderartists.org/user_avatar/blenderartists.org/bare/32/22960_2.png) [@BaRe](https://blenderartists.org/u/BaRe)\
**Post date:** [August 19, 2014, 5:21am UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/14 "2014-08-19T05:21:02Z")

</div>

i’m interested as well, when searching for documentation & tutorial i fall on this [http://www.blendernation.com/2008/12/22/pattern-designs-released-under-cc-license/](http://www.blendernation.com/2008/12/22/pattern-designs-released-under-cc-license/) not totally related but an amazing job, similar here [http://blendersushi.blogspot.ch/2013/07/procedural-funny-pattern.html](http://blendersushi.blogspot.ch/2013/07/procedural-funny-pattern.html)

an old post again: [http://www.blendernation.com/2007/06/16/new-procedural-tiles-texture-in-blender/](http://www.blendernation.com/2007/06/16/new-procedural-tiles-texture-in-blender/)

---

<div class="post-metadata">

**Author:** ![gregzaal](https://blenderartists.org/user_avatar/blenderartists.org/gregzaal/32/1313591_2.png) [@gregzaal](https://blenderartists.org/u/gregzaal)\
**Post date:** [August 19, 2014, 5:45am UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/15 "2014-08-19T05:45:52Z")

</div>

> [@Hadriscus](#):
>
> @SynaGl0w, how do you do all of that ?

. . . . .

![](https://blenderartists.org/uploads/default/original/4X/8/f/d/8fd4a148748a918e1c9d1a1bca6049aedea5b83e.jpg)

---

<div class="post-metadata">

**Author:** ![Hadriscus](https://blenderartists.org/user_avatar/blenderartists.org/hadriscus/32/978263_2.png) [@Hadriscus](https://blenderartists.org/u/Hadriscus)\
**Post date:** [August 19, 2014, 6:35am UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/16 "2014-08-19T06:35:16Z")

</div>

The procedurals can always be baked now, and composited later as raster images.  
@gregzaal, do you know what SynaGl0w’s node groups are made of ?

---

<div class="post-metadata">

**Author:** ![Piotr\_Adamowicz](https://blenderartists.org/user_avatar/blenderartists.org/piotr_adamowicz/32/4101_2.png) [@Piotr\_Adamowicz](https://blenderartists.org/u/Piotr_Adamowicz)\
**Post date:** [August 19, 2014, 6:39am UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/17 "2014-08-19T06:39:02Z")

</div>

They can be baked, yes, but without gather/scatter ops, using the material system for texturing will always remain hobbled.

---

<div class="post-metadata">

**Author:** ![SynaGl0w](https://blenderartists.org/user_avatar/blenderartists.org/synagl0w/32/509462_2.png) [@SynaGl0w](https://blenderartists.org/u/SynaGl0w)\
**Post date:** [August 19, 2014, 11:13am UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/18 "2014-08-19T11:13:26Z")

</div>

A few pattern tests for Tri, Hex, Square, Round, Rings, N-Gons: [proc\_pattern\_tests.blend](https://blenderartists.org/uploads/default/original/4X/8/4/6/8463f6014f7391c9cd77feac450ceef66eb3576a.blend) (502 KB)

These are unfinished/WIP/incomplete. Next couple of months, when I get some time, I’ll be assembling some node group libraries.

@Ace Dragon: Doing a more complete brick procedural with proper gradients is on my list of TODOs.

---

<div class="post-metadata">

**Author:** ![Ace\_Dragon](https://blenderartists.org/user_avatar/blenderartists.org/ace_dragon/32/1067926_2.png) [@Ace\_Dragon](https://blenderartists.org/u/Ace_Dragon)\
**Post date:** [August 19, 2014, 11:37am UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/19 "2014-08-19T11:37:28Z")

</div>

> [@Piotr Adamowicz](#):
>
> Cycles doesn’t need more procedurals - you can make almost anything as it is. The thing is they’re pretty expensive, and they’ll never support gather/scatter ops, such as blurring (or if that ever happens it’s going to be _very_ expensive).

Actually, there’s been optimizations in this area and procedurals regardless are useful in cases where you need to ‘wrap’ an object in a texture that would otherwise be difficult to do without producing seams (such as objects that are too angular for Blended box mapping to work good).

They can also be good at giving the appearance of non repeating detail and/or higher resolutions when used in conjunction with a tiling image texture.

---

<div class="post-metadata">

**Author:** ![el\_diablo](https://blenderartists.org/letter_avatar_proxy/v4/letter/e/dbc845/32.png) [@el\_diablo](https://blenderartists.org/u/el_diablo)\
**Post date:** [August 19, 2014, 12:20pm UTC](https://blenderartists.org/t/procedural-textures-cycles/619165/20 "2014-08-19T12:20:58Z")

</div>

Regarding procedural textures, where are the octave controls for Musgrave, it seems to produce only one octave.

[Next page](https://blenderartists.org/t/procedural-textures-cycles/619165.md?page=2)
