Page 1 of 1
Procedural Scratch Maps?
Posted: Mon Aug 11, 2008 10:23 am
by Whaat
So..is it possible to create a procedural scratch map using the indigo shader language? Does anyone want to take a shot at creating one? Ono...can you help out here?

Posted: Mon Aug 11, 2008 10:30 am
by Olis
It would be quite wonderful

Posted: Tue Aug 12, 2008 2:51 am
by Deus
Search before posting thanks
Tay Zonday err I mean Ono Sendai has already made it. Don't know if it renders properly with available version
http://www.indigorenderer.com/joomla/fo ... 8&start=75
Posted: Tue Aug 12, 2008 9:17 am
by cpfresh
sorry if i dont agree with you deus, but thats not what i think of when i hear scratch map. scratch map to me would be a bunch of random scratches in some random directionsn -- certainly not covering the entire object. more like typical wear and tear. great suggestion whaat. sounds like tricky math to me :0
Posted: Tue Aug 12, 2008 9:34 am
by OnoSendai
A purely procedural scratch map as described by cpfresh would be quite tricky, I think. However I think it could be done using a source texture of a scratch, perhaps repeated randomly over the surface.
Posted: Tue Aug 12, 2008 10:18 am
by Whaat
thanks ono...cpfresh got it right.
methinks we need a random number generator in the indigo shader language.

Posted: Tue Aug 12, 2008 10:20 am
by OnoSendai
Whaat: there's functions for generating procedural noise.
Posted: Tue Aug 12, 2008 12:00 pm
by Deus
To be honest the BEST way of using procedurals is to add high frequency information to textures. What I mean you have the basic shapes in the texture and modulate it using procedurals.
Posted: Tue Aug 12, 2008 12:55 pm
by CTZn
Maybe one can declare pairs of points on a surface within a given UV range (length of scratches), then interpolate UVs from one to the other. If sample is on marked UV (+/- scratch width), then draw scratch color.
Or draw a point and stretch its UVs...

Posted: Wed Aug 13, 2008 6:15 am
by v_mulligan
You might want to take a look at the procedural scratch maps that are achievable with
DarkTree Textures. Maybe someone can guess how that algorithm works and reverse-engineer something similar.
I know a few tricks for making scratch maps in the Renderman shading language. Maybe some of them will carry over to Indigo...
Posted: Sun Aug 17, 2008 9:33 pm
by neo0.
Whaat, are there plans to incorperate ono's new shaders into the next skindigo release?