POV-Ray : Newsgroups : povray.newusers : Pixelation on Top Server Time
28 Jul 2024 16:30:49 EDT (-0400)
  Pixelation on Top (Message 1 to 4 of 4)  
From: Devwebcl
Subject: Pixelation on Top
Date: 7 Nov 2007 13:00:00
Message: <web.4731fce5cd9faacea85b2fa40@news.povray.org>
Hello,

I am trying to make a simple picture, where there a cube showing 3 faces, each
face has a different circle as texture. This texture is created through an
intersection of a sphere an box, however when the second and third circle are
made the first one get pixelated.

Below is the code. I hope someone could help me, how to solve this issue.

Kind Regards,

Devwebcl

-------------------------------------------------------------------------

#include "woods.inc"
#include "colors.inc"

global_settings { assumed_gamma 2.2 }

background{White}

camera {
   location  <-30, 33, -28>
   //direction <0, 0, 1.2071>
   look_at   <0, 0, 0>
}
light_source { <-15, 30, -28> color red 1 green 1 blue 1 }
light_source { <-25, 33, -28> color red 1 green 1 blue 1 }




//Cube1:

box {
 < 0, 10, 0>,
 < 10, 0, 10>

    texture {
        P_WoodGrain11A
        scale 1
        // directions
    }
}


//Face 6:
intersection {
 sphere {<4, 5, 5>, 5 texture {pigment {color Orange } finish { diffuse 1
ambient 1 } } }
 box { < 0, 8, 0>, < 10, 0, 8> texture {pigment {color Orange } finish { diffuse
1 ambient .1 } } }
}

//Face 5:
intersection {
 sphere {<5, 5, 4>, 5 texture {pigment {color Green } finish { diffuse 1 ambient
..1 } } }
 box { < 0, 8, 0>, < 8, 0, 8> texture {pigment {color Green } finish { diffuse 1
ambient .1 } } }
}

//Face 3:
intersection {
 sphere {<5, 6, 5>, 5 texture {pigment {color Red } finish { diffuse 5 ambient 1
} } }
 box { < 0, 10, 0>, < 10, 0, 8> texture {pigment {color Red } finish { diffuse 1
ambient .1 phong 0 } } }
}


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Pixelation on Top
Date: 7 Nov 2007 13:31:26
Message: <4732047e$1@news.povray.org>
> however when the second and third circle are
> made the first one get pixelated.

This is a classic problem of incident planes, your "texture"
is exactly on the box, it needs to be offset slightly. Try
changing

box { < 0, 10, 0>, < 10, 0, 10> }

to

box { < 0.001, 9.999, 0.001>, < 9.999, 0.001, 9.999> }

Also, I'd recommend to create your circles using cylinders
instead of intersecting spheres and boxes, especially if you
wish to control the radius ;)


Post a reply to this message

From: Devwebcl
Subject: Re: Pixelation on Top
Date: 7 Nov 2007 13:50:00
Message: <web.47320852fae0ec0a85b2fa40@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> > however when the second and third circle are
> > made the first one get pixelated.
>
> This is a classic problem of incident planes, your "texture"
> is exactly on the box, it needs to be offset slightly. Try
> changing
>
> box { < 0, 10, 0>, < 10, 0, 10> }
>
> to
>
> box { < 0.001, 9.999, 0.001>, < 9.999, 0.001, 9.999> }
>
> Also, I'd recommend to create your circles using cylinders
> instead of intersecting spheres and boxes, especially if you
> wish to control the radius ;)

Great! thanks for the tip.

Cheers,

Devwebcl


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Pixelation on Top
Date: 7 Nov 2007 15:45:00
Message: <web.47322341fae0ec0c150d4c10@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> > however when the second and third circle are
> > made the first one get pixelated.
>
> This is a classic problem of incident planes, your "texture"
> is exactly on the box, it needs to be offset slightly. Try
> changing
>
> box { < 0, 10, 0>, < 10, 0, 10> }
>
> to
>
> box { < 0.001, 9.999, 0.001>, < 9.999, 0.001, 9.999> }
>
> Also, I'd recommend to create your circles using cylinders
> instead of intersecting spheres and boxes, especially if you
> wish to control the radius ;)

Also, if you are just using the circles for texture (don't need them raised),
have a look at either the "object" pattern-type (which can use your
spheres/cylinders to define the pattern) or spherical or cylindrical patterns,
which can create the round pattern directly.

-tgq


Post a reply to this message

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