Descriptions and Examples for the POV-Ray Raytracer by Friedrich A. Lohmüller
Geometric Shapes in POV-Ray
Italiano Italiano
Français français
Deutsch Deutsch

Home
- POV-Ray Tutorial
 
  Geometric Shapes
   Index
Basic Shapes
  - sphere
  - cylinder
  - cone
  - torus
  - box
  - prism
  - plane
  - sor
  - lathe
  - superellipsoid
  > ovus

Shapes by macro + CSG
Shapes in "shapes3.inc"
Other Shapes by macros
3D text shapes
other Shapes
Non CSG Shapes
height_field + HF macros
Isosurfaces
                                   
Beispiel ovus
ovus = Egg, Oval
New in POV-Ray Version 3.7( > beta 40 )
General syntax:
ovus{ rbase,rtop
      texture{ ... ... }
    } 
Here is rbase the radius of the base sphere and rtop the radius at the top.
The example here:
ovus{ 1.00, 0.65
  // base_radius, top_radius
  // with  top_radius < base_radius!
  texture{
   pigment{ color rgb<1.0, 0.65, 0.0>*0.9}
   normal { bumps 0.75 scale 0.03 }
   finish { phong 1
            reflection { 0.10 metallic 0.1}}
   } // end of texture
  scale 0.5
  translate<0,0.5,0>
}  //----------------------------------

Beispiel ovus
Variation of ovus{ 1, ... } (from left:) rtop = 1.00, 0.85, 0.65, 0.45, 0.25



A Problem with the accuracy of the calculation:
Under certain angles of view and with certain values of rbase and rtop we may see some errors in this shape. Mostly it's enough to change one of these values for work around this problem.


Samples spheres 600x450
With the following scene we can see the opposite error:
camera{
 location < 2.00, 2.00, -2.00>
 right x*image_width/image_height
 angle    85
 look_at  < 0.00, 1.50,  0.00>
 } // end camera

light_source{<-500,2500,-2500> color White}

ovus{ 1.00, 0.85
  // base_radius, top_radius
  // with  top_radius < base_radius!
  texture{
   pigment{ color rgb<1.0, 0.65, 0.0>*0.9}
   normal { bumps 0.75 scale 0.03 }
   finish { phong 1
            reflection { 0.10 metallic 0.1}}
   } // end of texture
  translate<0,1,0>
}  //----------------------------------

© Friedrich A. Lohmüller, 2010
www.f-lohmueller.de
  top