POV-Ray : Newsgroups : povray.programming : z buffer output : Re: z buffer output Server Time
29 Jul 2024 06:12:59 EDT (-0400)
  Re: z buffer output  
From: Roland Mas
Date: 19 Feb 1999 12:47:00
Message: <m3iucycmln.fsf@clodomir.rezel.enst.fr>
Nieminen Mika <war### [at] cctutfi> writes:

> Roland Mas <rol### [at] casimirrezelenstfr> wrote:
> :       [0/256 1/256 colour rgb 0 colour rgb <0,0,1>]
> :       [1/256 2/256 colour rgb <0,1/255,0> colour rgb <0,1/255,1>]
> :       [2/256 3/256 colour rgb <0,2/255,0> colour rgb <0,2/255,1>]
> :       ...
> :       [255/256 256/256 colour rgb <0,255/255,0> colour rgb <0,255/255,1>]
> 
>   Perhaps you could generate this automatically with #while-loops.

Yeah, sure.  That was just to show the point (it's more explicit to
show the result of the parsing of the loop than to show the loop).

  Anyway, I would not do it with a #while loop, rather with a Perl
program.  If I ever need to write such a program, I guess it could
easily be made universal enough so that it be able to take any POV-Ray
scene file (with the textures and all) and change everything to the
convenient z-buffer texture.  No need to make it by hand!

Roland.
-- 
Roland Mas

Sauvez les castors, plantez des arbres.


Post a reply to this message

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