Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Some more procedural grayscale textures

Some more procedural grayscale textures

JTippetts
JTippetts
/* Why you crying? */ · · 1 min read
2,780 1
Another round of randomly generated procedural grayscale textures for ya:




These are selections from a whole raft of new library modules that a script I left running last night put together, using the latest version of the Accidental Noise Library. Each was generated as a randomly constructed tree of modules and stowed in the library for future reference.

The generator works recursively. I have a table full of possible leaf nodes and a table full of possible regular nodes. The generateNode function is passed a level depth parameter and will generate either a leaf or a regular node depending on if the maximum specified level is reached. Non-leaf nodes typically will create themselves, then recursively create all of the sources they require.

I had to basically delete everything in the library after many of the changes I have made recently, but that's okay. Half the fun of this is running the script and seeing what turns up.

In particular, I find the one second from the left, third from the top a bit interesting and even a little creepy. It looks very much like a bump-map, and even with a little self-shadowing. No doubt it is a result of adding a FunctionGradient function, which takes the gradient of a function along a specified axis. Still, though, the way it worked out is pretty cool, considering nothing in the chain is specifically calculating a bump map for the textures.

Discussion

Loading comments...