POV-Ray : Newsgroups : povray.programming : z buffer output Server Time
29 Jul 2024 04:25:25 EDT (-0400)
  z buffer output (Message 11 to 12 of 12)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Roland Mas
Subject: Re: z buffer output
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

From: Disnel
Subject: Re: z buffer output
Date: 22 Feb 1999 05:52:29
Message: <36D1373F.EBB8B65@linux.itam.cas.cz>
> The given example gives 65536 levels of accuracy.  If you need more,
> you just have to fiddle a bit more and add a colour component on the
> red channel.  You see the point.
> 

But size of color_map is limited.


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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