POV-Ray : Newsgroups : povray.advanced-users : Editing or creating an image or heightfield in POV-Ray : Re: Editing or creating an image or heightfield in POV-Ray Server Time
25 Feb 2024 05:47:58 EST (-0500)
  Re: Editing or creating an image or heightfield in POV-Ray  
From: Thomas de Groot
Date: 13 Sep 2023 11:03:31
Message: <6501cf43$1@news.povray.org>
Op 13-9-2023 om 13:45 schreef ingo:
> 
> simple quick example of HF intersection (the Mount2.png is in the 3.7
> distribution):
> 
> ---%<------%<------%<---
> // PoVRay 3.7 Scene File " hf_intersection.pov"
> // author:  ingo
> // date:    2023-09-13
> //--------------------------------------------------------------------------
> #version 3.7;
> global_settings{ assumed_gamma 1.0 }
> #default{ finish{ ambient 0.1 diffuse 0.9 }}
> 
> camera {
>    perspective angle 75               // front view
>    location  <0.0 , 4.0 ,-10.0>
>    right     x*image_width/image_height
>    look_at   <0.0 , 1.0 , 0.0>
> }
> 
> light_source{< 3000,3000,-3000> rgb 1}
> 
> sky_sphere {
>    pigment {
>      gradient <0,1,0>
>      color_map {
>        [0.00 rgb <0.6,0.7,1.0>]
>        [0.35 rgb <0.1,0.0,0.8>]
>        [0.65 rgb <0.1,0.0,0.8>]
>        [1.00 rgb <0.6,0.7,1.0>]
>      }
>      scale 2
>    }
> }
> 
> 
> #declare Rock = height_field{
>    png "Mount2.png" smooth double_illuminate
>    translate<-0.5,-0.0,-0.5>
>    scale<9, 2.5, 9>*2
>    texture{
>      pigment { color rgb <0.82,0.6,0.4>}
>    }
>    rotate<0,-110,0>
>    translate<1,0,11>
> }
> 
> intersection{
> 
>    object{Rock}
> 
>    object {
>      Rock
>      scale 1.5
>      rotate <-33,0,-90>
>      translate <-4,-1,0>
>    }
> 
>    object {
>      Rock
>      rotate <0,0,90>
>    }
> 
> 
> ---%<------%<------%<---
> 
> ingo
> 
> 

Right! I had been briefly wondering about something like this, but 
thought it would not really do. However, your example makes me think 
again more seriously. I need to think some more and - above all - play. 
Potential solutions are certainly there indeed.

Thanks for the pointer, Ingo!

-- 
Thomas


Post a reply to this message

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