POV-Ray : Newsgroups : povray.binaries.images : Bathtub - take 2 : Re: Bathtub - take 2 Server Time
1 Aug 2024 10:16:47 EDT (-0400)
  Re: Bathtub - take 2  
From: alphaQuad
Date: 24 Dec 2008 22:10:00
Message: <web.4952f8346655db18112f56370@news.povray.org>
"Thomas de Groot" <tDOTdegroot@interDOTnlANOTHERDOTnet> wrote:
> I confess I lost my way along the road....
>
> I can reproduce the water code without a problem, but the pool is beyond me
> now. Somewhere I lost pieces of code. Could you re-post the complete pool
> code as it stands now, please?  Thanks!!
>
> Thomas

There were 3 "boxUV" where the second and third evolved for the pure brain-wave
patterns of TgQ.

I decided to go with the 3rd, "TQ_BoxUV".



///////////////////////////////////////////////////// TgQ
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
#declare normhf = 0;
#include "TQ_water.pov"



#declare BSiz=<240,72,240>; // box size
#declare TilSiz=<4,8,1>;    //Size of tile (x,y)
#declare Grt=0.5;         //Width of grout
#declare TilCol=rgb <.6,.6,1>;  //Tile colour
#declare GrtCol=rgb 1;

#include "TQ_BoxUV.pov"
#declare pool_box_CSG =
difference {
    box { <-8, -72, -8> <232, 0, 232> } // legoworld hole  +8
    box { <0, -64, 0> <224, 1, 224> }
    texture { TQ_BoxUV basic_finish }
    translate <-8,0,-8>
}


#declare BSiz=<8,72,232>;
#include "TQ_BoxUV.pov"

#declare pool_box =
union {
   box { 0 <8,72,232> texture { TQ_BoxUV basic_finish } translate <-16,-72,-8> }
   box { 0 <8,72,232> texture { TQ_BoxUV basic_finish } rotate y*90 translate
<-8,-72,224> }
   box { 0 <8,72,232> texture { TQ_BoxUV basic_finish } translate <216,-72,-8> }
   box { 0 <8,72,232> texture { TQ_BoxUV basic_finish } rotate y*90 translate
<-16,-72,-8> }
   //floor
   #declare BSiz=<240, 240, 8>;
   #include "TQ_BoxUV.pov"
   box { 0 <240, 240, 8> texture { TQ_BoxUV basic_finish } rotate x*90
translate <-16,-64,-16> }
}
//object { pool_box translate y*4 }
///////////////////////////////////////////////////// TgQ
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


#declare pool =
union {
   object { pool_box }
   #if (normhf) object { TQ_water_hf }
   #else object { TQ_water_n }
   #end
   object { beachball scale 8.5 rotate z*45 rotate y*-55 translate <53,6.3,100>
} //<30,6.5,55> }
   translate y*4
}


Post a reply to this message


Attachments:
Download 'magician_tq.zip' (2 KB)

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