POV-Ray : Newsgroups : povray.general : Fuctions, My two cents : Re: Fuctions, My two cents Server Time
3 May 2024 01:25:38 EDT (-0400)
  Re: Fuctions, My two cents  
From: Leroy
Date: 26 Feb 2023 14:10:00
Message: <web.63fbac7bf28769a3ba5ca48bf712fc00@news.povray.org>
"Leroy" <whe### [at] gmailcom> wrote:
I found a big difference in using a image pigment in the height_field function
and that pigment in the height_field alone.

that is
 #declare PigM=function{pigment{image_map{ tga "FinalB.tga"}}}
 #declare Dirt =
function(x,z){select(PigM(x,1-z,0).blue,0,0,PigM(x,1-z,0).blue)}
 height_field {function 400,400{ Dirt(x,y) }...
and

 height_field {tga "FinalB.tga"

they don't match! The function has a lower height and seems to be shifted both
in the +z and +x directions



Difference.ppm


Post a reply to this message


Attachments:
Download 'difference.ppm.dat' (507 KB)

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