POV-Ray : Newsgroups : povray.newusers : help! stuck with a conical flask : help! stuck with a conical flask Server Time
31 Jul 2024 00:33:14 EDT (-0400)
  help! stuck with a conical flask  
From: Richard
Date: 19 Apr 2003 17:50:04
Message: <web.3ea1c4482c07956ae03273700@news.povray.org>
Hello,

I'm very new to POV-Ray, and for my first project I'm trying to use it to
create a picture of a conical flask, made out of glass. The base is a
torus, the body a cone, and the neck a cylinder. The problem is, it doesn't
look very realistic!

Source is  below, graphic is at http://www.orang-utan.com/richard.bmp

I would be very grateful for advice, suggestions, etc. I think I have the
coincident surfaces problem too, but I've read the FAQ and fiddled for ages
and I can't fix it.

Thanks,

Richard


#include "colors.inc"    // The include files contain
#include "stones.inc"    // pre-defined scene elements

#include "textures.inc"    // pre-defined scene elements
#include "shapes.inc"
#include "glass.inc"
#include "metals.inc"
#include "woods.inc"

  camera {
    location <0, 2, -6>
    look_at  <0, 1,  2>
  }


 plane { y, 0
        texture {
                pigment { color rgb <2, 2, 2> }
                // normal {bumps 0.5 scale 0.01}
  }
  }




        sphere{<0,0,0>,1 hollow    //keep attention: keep sun lower than sky
       texture{pigment{gradient <0,1,0>
                       color_map{[0.0 color White]
                                 [0.8 color rgb<0.1,0.6,0.9> ]
                                 [1.0 color rgb<0.1,0.6,0.9> ]}
                      }
               finish {ambient 1 diffuse 0}
              }
       scale 10000}




light_source { <2, 4, -3> color White}


difference{

merge{
torus {1.0,0.25 rotate<0,0,0> translate<0,0,0> texture{ Glass3 }}
cone{<0,0,0>,1.25,<0,2.4,0>,0.3 translate<0,0,0> texture{ Glass3 }}
cylinder {<0,2.4,0>,<0,3.2,0>,0.3 rotate<0,0,0> translate<0,0,0> texture{
Glass3 }}
}


merge{
// torus {0.01,0.024 rotate<0,0,0> translate<0,0,0> texture{ Glass3 }}
cone{<0,0,0>,1.24,<0,2.4,0>,0.29 translate<0,0,0> texture{ Glass3 }}
cylinder {<0,2.3,0>,<0,3.2,0>,0.29 rotate<0,0,0> texture{ Glass3 }}
}

}


Post a reply to this message

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