POV-Ray : Newsgroups : povray.binaries.images : metal thing (80 k) ... and macros : metal thing (80 k) ... and macros Server Time
4 Nov 2024 17:55:30 EST (-0500)
  metal thing (80 k) ... and macros  
From: helge h
Date: 27 Feb 2006 22:00:01
Message: <web.4403bbf171d7750e1c6902970@news.povray.org>
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'
metalthing.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.