POV-Ray : Newsgroups : povray.newusers : checkered plane not looking as (I) expected : Re: checkered plane not looking as (I) expected Server Time
5 Nov 2024 15:53:11 EST (-0500)
  Re: checkered plane not looking as (I) expected  
From: Alan Kong
Date: 13 Jun 1999 22:26:00
Message: <376567ec.160433619@news.povray.org>
On Sun, 13 Jun 1999 22:34:22 +0200, Guido Heer <hee### [at] poboxcom> wrote:

>Doing my first steps with the tutorial in the help file ("Pov Ray
>Documentation" of PovRay 3.02 for Windows) I tried to put a checkered
>plane into my scene. Changing the normal vector of the plane to
>something different than y, I walked into something that confused me.

  Hi, Guido. You might check the docs again because to change the
surface normal of the plane you need only use x,y, and z, respectively
for <1,0,0>, <0,1,0>, and <0,0,1>.

  For example, your code with my modifications:

>#include "colors.inc"
>
>camera
>{
>	location <0, 2, -5>
>	look_at <0, 1, 2>
>}
>
>sphere
>{
>	<0, 2, 0>, 0.5
>	texture
>	{
>		pigment { color Yellow }
>	}
>}
>
>plane
>{
>	y, -3				// looks as expected

// to change the surface normal vector use:
// x, -1
// z, -1

>//	<-1, 1, 0>, -5		// looks weird
>//      <-1, 1, -2>, -5		// looks completely wrong
>	pigment
>	{
>		checker color White, color Black
>	}

// or, to rotate the plane on a given axis use:
        rotate 25*z

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

  You might also consider downloading the latest version of POV-Ray
v3.1e.

-- 
Alan
--------------------------------------------------------------------
http://www.povray.org - Home of the Persistence of Vision Ray Tracer
news.povray.org - where POV-Ray enthusiasts around the world can get
together to exchange ideas, information, and experiences with others
--------------------------------------------------------------------


Post a reply to this message

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