POV-Ray : Newsgroups : povray.binaries.images : Down the Drain (wip) : Re: Down the Drain (wip): Seaweed problem Server Time
7 Aug 2024 01:26:00 EDT (-0400)
  Re: Down the Drain (wip): Seaweed problem  
From: Mike Williams
Date: 16 Oct 2006 06:08:08
Message: <YiwFXRANd1MFFw+j@econym.demon.co.uk>
Wasn't it Thomas de Groot who wrote:
>OK. Did some experimenting with layered textures. This does not work. A 
>pity, as I find it more *elegant* :
>//------------------------------------
>#declare Group =
>union {
>  box {
>    <-1, -1, -1>, <1, 1, 1>
>    translate  <-0.3, 0.0, -0.5>
>    texture {Layer1 scale 0.1}
>  }
>  sphere {
>    <0,0,0>,1
>    translate  <0.8, -0.6, 0.3>
>    texture {Layer2 scale 0.1}
>  }
>  texture {YellowTransparantColor}
>}

The problem is that that syntax is already in use to mean something
different.

What it means is, apply YellowTransparantColor to any components in the
group that don't already have their own texture{}. In this case, all the
components do have their own texture, so nothing happens. 

You wouldn't want to change that old syntax, because it would break
large numbers of existing scenes. You wouldn't want the syntax to have
the old meaning if there are any untextured components and have the new
meaning if there are none, because that would get very confusing
particularly if you intended to texture all the components but missed a
tiny part of a very complex CSG.

-- 
The Blackpool Community Church Javascript Team
http://www.econym.demon.co.uk/googlemaps/


Post a reply to this message

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