POV-Ray : Newsgroups : povray.general : 3D image map? : Re: 3D image map? Server Time
8 Aug 2024 04:10:19 EDT (-0400)
  Re: 3D image map?  
From: Ron Parker
Date: 8 Mar 2001 00:26:08
Message: <slrn9ae5vk.6e8.ron.parker@fwi.com>
On Thu, 08 Mar 2001 12:42:33 +0800, Pabs wrote:
>ie like df3 for media but with
>1. Multiple images instead of 1 volumetric file
>2. RGB[A] instead of greyscale
>3. Used for textures instead of media.
>Is there some way or do I have to write a patch or wait for POV4.0?

You could fake it with df3 files.  Separate your TGA files into components
using the pnm utilities (particularly ppmtorgb3), convert to 3 df3 files 
(one for red, one for green, and one for blue) using whatever tga2df3 
converter you can find.  This whole process could be automated with a shell 
script.

Using the "red" df3 file, make a pigment with color_map {[0 rgb 0][1 red 3]}.
(Notice that you can use df3 files to make pigments.)  Do similar for 
green and blue, then average the three pigments to get an RGB solid 
texture.

Best of all, this will even work in 3.1g.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

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