POV-Ray : Newsgroups : povray.binaries.images : Down the Drain (wip) Server Time
7 Aug 2024 01:19:45 EDT (-0400)
  Down the Drain (wip) (Message 21 to 24 of 24)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Thomas de Groot
Subject: Re: Down the Drain (wip): Seaweed problem
Date: 15 Oct 2006 03:49:09
Message: <4531e7f5@news.povray.org>
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}
}
object {Group}
//------------------------------------

But this does what I want (see the image):
//------------------------------------
#declare Group =
union {
  box {
    <-1, -1, -1>, <1, 1, 1>
    translate  <-0.3, 0.0, -0.5>
    texture {Layer1 scale 0.1}
    texture {YellowTransparantColor}
  }
  sphere {
    <0,0,0>,1
    translate  <0.8, -0.6, 0.3>
    texture {Layer2 scale 0.1}
    texture {YellowTransparantColor}
  }
}
object {Group}
//------------------------------------

Thomas


Post a reply to this message


Attachments:
Download 'layeredTexture_test.png' (103 KB)

Preview of image 'layeredTexture_test.png'
layeredTexture_test.png


 

From: Mike Williams
Subject: Re: Down the Drain (wip): Seaweed problem
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

From: Stephen
Subject: Re: Down the Drain (wip): Seaweed problem
Date: 16 Oct 2006 08:00:01
Message: <web.4533733d52e313caf1cb1e660@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote:

[Snip]
> --
> The Blackpool Community Church Javascript Team
The mind boggles Mike :-)

Stephen


Post a reply to this message

From: Thomas de Groot
Subject: Re: Down the Drain (wip): Seaweed problem
Date: 16 Oct 2006 10:47:10
Message: <45339b6e$1@news.povray.org>
"Mike Williams" <nos### [at] econymdemoncouk> schreef in bericht 
news:YiwFXRANd1MFFw+j### [at] econymdemoncouk...
>
> 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.
>
> -- 
Thank you Mike, for your explanation. I was sure there was a catch :-)
What I meant by *elegant*  was in the same line as when you talk about 
clothes: they may be *elegant* but not necessarily confortable to wear! So, 
only for the eyes fixed on the catwalk.

Thomas


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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