POV-Ray : Newsgroups : povray.advanced-users : Ocean coming up to the beach. Server Time
4 Nov 2024 17:38:00 EST (-0500)
  Ocean coming up to the beach. (Message 1 to 9 of 9)  
From: Todd Chaffee
Subject: Ocean coming up to the beach.
Date: 12 Aug 1999 22:01:54
Message: <37b37c92@news.povray.org>
I've been trying to create a scene with the ocean water coming up to a sandy
beach.  The ocean water needs to be transparent so you can see the ocean
floor continuing under the water.  My first attempt with planes and texture
maps looked pretty funny since the planes intersected in a straight line.

Next, I tried using sPatch to create wavey sand and wavey water objects and
then put the water over the sand  Partial success but I don't know if I'm
going in the right direction.  The scene also takes a very long time to
render even in very small resolutions.

Finally, I used 'crand' for the sand texture and am starting to think this
is not a good idea.  Any other ideas on creating a realistic sand texture.

Any suggestions?


Post a reply to this message

From: David Heys
Subject: Re: Ocean coming up to the beach.
Date: 12 Aug 1999 22:09:10
Message: <37B37DF6.EDF3711F@hotmail.com>
Todd Chaffee wrote:

> I've been trying to create a scene with the ocean water coming up to a sandy
> beach.

<snip>

> Any suggestions?

You could check out Steve Gowers' winning entry to the IRTC
(http://www.irtc.org) for the July-August '96 round topic of Summer. He did a
bucket of sea shells resting on the sand by the sea shore. Links to the image,
text file, and zip file are as follows:

http://oz.irtc.org/ftp/pub/stills/1996-08-31/bucket1.jpg
http://oz.irtc.org/ftp/pub/stills/1996-08-31/bucket1.txt
http://oz.irtc.org/ftp/pub/stills/1996-08-31/bucket1.zip

David


Post a reply to this message

From: Todd Chaffee
Subject: Re: Ocean coming up to the beach.
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

From: David Heys
Subject: Re: Ocean coming up to the beach.
Date: 12 Aug 1999 23:53:28
Message: <37B39668.6B4437CE@hotmail.com>
Glad the source was of some help to you. I didn't expect it to be a solution to
all your problems. Just a keystone to give you good avenues of exploration. I'll
try out your code in the morning. It's almost 8 p.m. here and my wife and I have
a deal of no computers after 8. That way we get to maximize our time when the
kids are in bed. :{)

David


Post a reply to this message

From: Mark Wagner
Subject: Re: Ocean coming up to the beach.
Date: 13 Aug 1999 01:20:07
Message: <37b3ab07@news.povray.org>
Todd Chaffee wrote in message <37b37c92@news.povray.org>...
>I've been trying to create a scene with the ocean water coming up to a
sandy
>beach.  The ocean water needs to be transparent so you can see the ocean
>floor continuing under the water.  My first attempt with planes and texture
>maps looked pretty funny since the planes intersected in a straight line.


Try using a height field for either the beach or the water.  If you are
using the SuperPatch, you could use the ripples pattern for a pigment-based
heightfield.

Mark


Post a reply to this message

From: Arthur Flint
Subject: Re: Ocean coming up to the beach.
Date: 13 Aug 1999 12:48:43
Message: <37B44C37.7FEC811C@gci.net>
David Heys wrote:

>  It's almost 8 p.m. here and my wife and I have
> a deal of no computers after 8. That way we get to maximize our time when the
> kids are in bed. :{)
>
> David

Gee, wish that my wife would agree to no computers after 8 pm. (of course she would
then
have to pry my fingers off the keyboard). As for kids in bed? They are 15, if not
eating, reading,
doing school work, or TV, they are sleeping!
Mr. Art


Post a reply to this message

From: David Heys
Subject: Re: Ocean coming up to the beach.
Date: 13 Aug 1999 13:12:58
Message: <37B451C7.F4DF5468@hotmail.com>
Arthur Flint wrote:

> Gee, wish that my wife would agree to no computers after 8 pm. (of course she would
> then
> have to pry my fingers off the keyboard). As for kids in bed? They are 15, if not
> eating, reading,
> doing school work, or TV, they are sleeping!

<grin> My two girls are 7 and 2. They have an 8 p.m. bedtime, though it doesn't always
work out that way. One trick I set up with our oldest is her bedtime rule.
Specifically, she is required to lay in bed quietly with her head on the pillow and
her
eyes shut. We made sure not to mention the word sleep. That way, she has no recourse
to
come into the livingroom and complain, "I can't sleep.", as sleep is not part of her
bedtime rule. <grin>

I look forward to when mine are in their teens, but I'm also enjoying watching them
grow up as well. :{)

The no computers after 8 works well for us. We both make exceptions from time to time,
but it's good to have it in place as a practice.

David


Post a reply to this message

From: Arthur Flint
Subject: Re: Ocean coming up to the beach.
Date: 13 Aug 1999 13:13:42
Message: <37B45214.3AEE23EF@gci.net>
Arthur Flint wrote:

> They are 15, if not eating, reading, doing school work, or TV, they are sleeping!
> Mr. Art

I forgot, using the computers!!!


Post a reply to this message

From: Kevin Wampler
Subject: Re: Ocean coming up to the beach.
Date: 14 Aug 1999 20:30:55
Message: <37B5A8D4.414A13FD@tapestry.tucson.az.us>
I've posted a image to povray.binaries.images that uses isosurfaces to achieve
what I think you are looking for.  It still needs work, but hopefully it will
give you some ideas.  I'll post the source in povray.text.scene-files for you
to have a look at.


Post a reply to this message

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