POV-Ray : Newsgroups : povray.binaries.images : Re: Legs : Re: Legs Server Time
15 Nov 2024 04:20:51 EST (-0500)
  Re: Legs  
From: Jeremy M  Praay
Date: 9 Sep 2003 11:45:08
Message: <3f5df584$1@news.povray.org>
I did something similar to this in my "Radio Graves" scene for the IRTC.  I
was making knobs for some of the radios.  I think you may be able to use the
same idea here.

Here's the source, and a quick render using the "Basic Scene" template.
Hope this helps.

#declare Knob =
  object {
    difference {
      intersection {
        cylinder { <-0.5,0,0>, <0.5,0,0>, 0.4 }
        cylinder { <-0.5,0,0>, <0.5,0,0>, 0.4 rotate z*60}
        cylinder { <-0.5,0,0>, <0.5,0,0>, 0.4 rotate z*120}
        scale <1,1,1.5>
      }
      plane {-z, 0}
    }
    texture {
      pigment {rgb <1,1,1>/255} //almost black
      finish { diffuse 0.6 specular 0.9 roughness 0.01 reflection 0.08 }
    }
  }

-- 
Jeremy


Post a reply to this message


Attachments:
Download 'knob.jpg' (10 KB)

Preview of image 'knob.jpg'
knob.jpg


 

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