POV-Ray : Newsgroups : povray.general : PovRay 3.6 + WinXP - is "image_map" with alpha channels borked? : Re: PovRay 3.6 + WinXP - is "image_map" with alpha channels borked? Server Time
1 Aug 2024 22:15:34 EDT (-0400)
  Re: PovRay 3.6 + WinXP - is "image_map" with alpha channels borked?  
From: PM 2Ring
Date: 7 Apr 2005 11:00:00
Message: <web.425549d3e4938383d6ca37a0@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote:

> In my case, I was running a bit short of memory, so I made the
> earth_mask.png file very much smaller than the NASA image. You can get
> away with having far less detail in the mask than in the pigments.

I hadn't thought of that trick.
>
> #declare LandTex = texture {
>   pigment {image_map { png "land_ocean_ice_8192.png" map_type 1 } }
> }
>
> #declare WaterTex = texture {
>   pigment {image_map { png "land_ocean_ice_8192.png" map_type 1 } }
>   finish {phong 0.25 phong_size 1}
> }
>
> #declare EarthTex = texture {
>   pigment_pattern {image_map {png "earth_mask.png" map_type 1}}
>   texture_map {
>      [0 WaterTex]
>      [1 LandTex]
>   }
> }

Wouldn't it also save memory by declaring the pigment separately, since the
water & earth pigments are identical?

PS. Love your work, Mike; thanks for the isosurface tutorials!


Post a reply to this message

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