POV-Ray : Newsgroups : povray.advanced-users : Ocean coming up to the beach. : Re: Ocean coming up to the beach. Server Time
2 Nov 2024 13:17:41 EDT (-0400)
  Re: Ocean coming up to the beach.  
From: Todd Chaffee
Date: 12 Aug 1999 23:43:27
Message: <37b3945f@news.povray.org>
>
>You could check out Steve Gowers' winning entry to the IRTC
>(http://www.irtc.org) for the July-August '96 round topic of Summer.

Nice scene.  That helped out a lot with the sand part.  I never thought of
using a very small bozo pattern.   I think Steve Gowers' pattern is scaled
too small however as the sand has some artificial looking strips in the
lower right corner (especially evident once you take out the 'crackle').  At
the bottom of the message is my (corrected?) version and I have used 'waves'
instead of crackle to give an interesting twist.

The problem with textures as I'm finding out is they don't actually change
the surface of the object so when you try to interact with other objects you
get unexpected results.  You'll notice that Steve avoided any problems with
the bucket and the sand by not showing the bottom of the bucket.  And who
would notice anyway with such great looking shells!

Now the real problem is getting transparent water on a large scale and
getting it to interact with the sand in a realistic way.

Thanks for your help, the sand texture looks great.

// Source code for sand follows (much of this copied from Steve Gowers)

global_settings { assumed_gamma 2.0 }

#declare White = color red 1 green 1 blue 1

 camera
{ location  <0.0, 10, -15.0>
  direction 1.5*z
  right     4/3*x
  look_at   <0.0, 0.0,  0.0> }

sky_sphere {   pigment {  color blue 0.8 } }

light_source {  0*x color rgb <1.25,0.9,0.9> translate < 10,50,150> }
light_source {  0*x color White translate <-80,80,-80>  }
light_source {  0*x color rgb <0.375,0.375,0.375> translate <-1.4,6,-5>
shadowless }


 plane { y, -1
          texture { pigment { bozo color_map {
                  [ 0.0 colour rgb <0.7,0.5,0.3> ]
                  [ 0.2 colour rgb <0.6,0.6,0.6> ]
                  [ 0.25 colour rgb <0.6,0.6,0.6> ]
                  [ 0.25 colour rgb <0.2,0.2,0.2> ]
                  [ 0.275 colour rgb <0.2,0.2,0.2> ]
                  [ 0.275 colour rgb <0.6,0.4,0.2> ]
                  [ 0.4 colour rgb <0.6,0.4,0.2> ]
                  [ 0.6 colour rgb <0.95,0.75,0.55> ]
                  [ 0.8 colour rgb <0.7,0.5,0.3> ] } scale 0.005 }
                  normal { waves .5 frequency 50 phase 0 scale 15 translate
<100, 0, 0>
                  }
}

// End of source example for sand


Post a reply to this message

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