POV-Ray : Newsgroups : povray.binaries.images : Losing the ability to POV... : Re: Losing the ability to POV... Server Time
7 Nov 2024 04:52:57 EST (-0500)
  Re: Losing the ability to POV...  
From: Alain
Date: 7 Nov 2016 19:28:27
Message: <58211c2b$1@news.povray.org>
Le 16-11-07 à 08:46, Jörg "Yadgar" Bleimann a écrit :
> Hi(gh)!
>
> For quite a long time I did hardly anything POV-Ray-related than just
> manually editing the Kabul 1:100,000 heightfield or, more recently,
> collecting high-resolution OpenTopMap tiles for a more advanced version
> of that heightfield...
>
> ...and now, I want to re-create a level from the Amiga game
> "Rock'n'Roll" in POV-Ray (of course for animating it from the ball's
> perspective later on...) - and fail already at the very first step,
> which is creating a layered texture for a sky_sphere (or, simpler as not
> involving UV_mapping, for six planes forming a cubic space).
>
> The lowermost layer consist of equally spaced squares - so I thought
> using the boxed pigment would be appropriate. But... whatever I try, I
> always only get uniform black!
>
> Is it an idiosyncrasy of 3.7? Or do I simple lose the general ability to
> do anything sensible with POV-Ray?
>

boxed evaluate to 1 at <0,0,0>, that value drop to zero at 1 unit 
distance in all 3 directions forming a box going from <-1,-1,-1> to <1,1,1>.
Outside that box, it always return zero.

The other similar patterns are planar, cylindrical and spherical.
planar evaluate as 1 on the X-Z plane and drop to zero at +-Y.
cylindrical is a cylinder around the Y axis with a radius of 1.
spherical drop to zero at radius 1.

All those remain at zero outside those domains.


Post a reply to this message

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