|
|
I have no idea what this is, it just evolved, perhaps inspired by mops'
corals (
http://news.povray.org/povray.binaries.images/thread/%3C43f75349%40news.povray.org%3E/
). Maybe it also is a reflective sphere on a checkered surface. :-)
I used it to test a couple of texture (finish) macros:
// ordinary finish:
#macro _shinyness ( _g1 )
finish {
ambient 0
diffuse min (1, (1.65 - _g1))
specular _g1
roughness 1 / pow (500, _g1)
reflection { 0.5 * max ( 0, _g1 - 0.65 ), 2 * max ( 0, _g1 - 0.65 ) }
}
#end
// metal finish:
#macro _metal ( _g1 )
finish {
ambient 0
diffuse 1 - _g1
specular _g1 * 2
roughness 1 / pow (250, _g1)
metallic
reflection { _g1 / 2, _g1 metallic }
}
#end
I think they work well, but I would be interested in comments. The parameter
value should be 0.0 to 1.0, higher values makes the object more shiny. I
have used several sources for the algorithms: mainly the good old
StrataVision 4.0 and 3d World magazine.
H
Post a reply to this message
Attachments:
Download 'metalthing.jpg' (78 KB)
Preview of image 'metalthing.jpg'
|
|