|
![](/i/fill.gif) |
Mike Williams <nos### [at] econym demon co uk> 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
|
![](/i/fill.gif) |