POV-Ray : Newsgroups : povray.binaries.images : Down the Drain (wip) : Re: Down the Drain (wip): Seaweed problem Server Time
7 Aug 2024 01:23:51 EDT (-0400)
  Re: Down the Drain (wip): Seaweed problem  
From: Thomas de Groot
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


 

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