POV-Ray : Newsgroups : povray.binaries.images : ...thanks for all the fish : ...thanks for all the fish Server Time
25 Apr 2024 11:33:28 EDT (-0400)
  ...thanks for all the fish  
From: Robert McGregor
Date: 23 Dec 2008 23:50:01
Message: <web.4951bf16a9fdfb46bd1b3ad10@news.povray.org>
Hi all, I was looking at the bathtub-in-desert scene that Trevor posted the
other day and then I read the water code Thomas had posted and had to try it.
Before I knew it I'd gone off on a tangent and ended up with these two dolphins
swimming around in my own version of the water normal:

#declare Bigripple =
normal {
  waves 1
  frequency 6
  turbulence 0.8
  scale <0.5, 0.2, 0.2>*0.5
  translate -100*z
  rotate -30*y
}
#declare Smallripple =
normal {
  ripples 1
  frequency 3
  turbulence 0.5
  scale <0.35, 0.25, 0.25>*0.2
  translate 100*z
  rotate -10*z
}

#declare RippleNorm =
normal {
  average
  normal_map {
    [0.9 Bigripple]
    [0.8 Smallripple]
  }
}

#declare N_Ripples =
normal {
   average
   normal_map {
      [1 RippleNorm scale 1]
      [1 RippleNorm scale 0.33]
      [1 RippleNorm scale 0.10]
      [0.5 RippleNorm scale 0.05]
      [0.25 granite 0.1 scale 0.01 ]
      [0.125 granite 0.05 scale 0.001 ]
   }
}

I also ended up averaging two HDR images for the environment map to get the
coloration and mood I was after. I'd never tried that technique before (or even
heard of it actually) but I found it to be very expressive, allowing me to
easily mix & change tonal qualities.

[Dolphin model from Poser 6, textures tweaked by me]

Cheers,
-Rob


Post a reply to this message


Attachments:
Download 'rwmdolphins.jpg' (627 KB)

Preview of image 'rwmdolphins.jpg'
rwmdolphins.jpg


 

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