Re:Using prime numbers to make better backgrounds
by jws on Thursday April 07, 2011 @11:08AM
(#2419731)
I won't get a chance to write this up, but in a similar vein, if you split the grain/texture off of an image, you can scale and stretch the image as needed, then drop a fairly small, tiled grain texture back on top. I think it is nicer to do two grain textures, one for lighter and one for darker. Make the grain image be solid white or black and put the grain in the alpha channel.
[ Parent
| on HN ]
Re:Using prime numbers to make better backgrounds
by xbot on Thursday April 07, 2011 @08:17PM
(#2421830)
Hey guys, I actually mocked up a woodgrain test page while I was developing the article but I ended up preferring the lego and curtain examples. But if your interested:
http://www.sitepoint.com/examples/primes/woodgrain.html
It's not bad, but I don't think it's killer yet.
I've got a very raw maze generation example somewhere if anyone's interested.
Re:Using prime numbers to make better backgrounds
by prawn on Friday April 08, 2011 @12:24AM
(#2422448)
This is HN. Almost everyone's interested, so post away!
Re:Using prime numbers to make better backgrounds
by xbot on Friday April 08, 2011 @08:59PM
(#2426158)
http://www.sitepoint.com/examples/primes/maze.html
The graphics are a bit nasty but the concept is works. There seems to be a diagonal pattern emerging, but a fourth layer would certainly break that.