POV-Ray : Newsgroups : povray.binaries.images : Garden - Work in Progress : Re: Garden - Work in Progress Server Time
4 Oct 2024 03:19:12 EDT (-0400)
  Re: Garden - Work in Progress  
From: Bob Hughes
Date: 5 Oct 1999 17:08:42
Message: <37fa68da@news.povray.org>
Glad a couple people caught this in time (hopefully).  May as well use that
'disc' with a black 'pigment' on there if using just planes for box sides,
unless they are CSG'd together right (I think).

Bob

Ken <tyl### [at] pacbellnet> wrote in message
news:37FA4542.8DC01535@pacbell.net...
>
>
> Tika wrote:
>
> > > OTOH you could difference a box inside: right now it looks like a
solid
> > > box with a circular hole rather than an empty box with a circular
> > > opening...
> >
> > Oh, NOW I see what you're saying... I think instead of the cube I made
up in
> > sPatch, I will use some planes to make a hollow box intead. That'll be
> > tricky - not sure if POV-Ray has square surfaces that can be put
together.
> >
> > --
> >
> > Tika
>
> Here is an example of "differencing" one object from another as was
> suggested before. Triangles may not work well for your application
> because they have no thickness plus you cannot cut a hole through
> the face of a triangle so modelling the hole would be a real problem.
> While a plane may be ok for making a box I think you will be much
> better off if you spend some time learning how to use the box object
> instead. It is one of the most important objects in POV-Ray and if
> you don't spend some time with the basics you will never get anywhere
> with the program.
>
> In this example the first box is the shell of the bird house, the second
> box is used to hollow it out, and the cylinder is used to cut the hole
> in the face of the house. I added a simple camera and light source so
> that you can render it to see how effective it is.
>
> camera{ location<-1.5,0,-5>look_at 0}
> light_source {<-20,0,-50>rgb 1}
>
> difference {
>              box {  -1, 1 }
>              box { -.9,.9 }
>         cylinder { < 0, 0,-1.1>,<0,0,-.75>,.3}
>           pigment{ rgb 1}
> }
>
> Enjoy,
>
> --
> Ken Tyler
> 1100+ Povray, Graphics, 3D Rendering, and Raytracing Links:
> http://home.pacbell.net/tylereng/index.html


Post a reply to this message

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