POV-Ray : Newsgroups : povray.newusers : Wrapping A Hieght Field Object Around an elipsoid object : Re: Wrapping A Hieght Field Object Around an elipsoid object Server Time
31 Jul 2024 10:19:28 EDT (-0400)
  Re: Wrapping A Hieght Field Object Around an elipsoid object  
From: hughes, b 
Date: 26 Jan 2003 07:54:04
Message: <3e33da6c$1@news.povray.org>
Thanks to Christoph I kept at it with the idea of using the
Function(x,y,z).gray way. I was trying that too, like you James, and getting
a similar error as before, only about float instead of vector. I was being
real sloppy about all this at first anyhow so I redid the whole thing and
added a step between the function declaration and the macro. Fixed and is
fast, aside from increased parse time.

#include "shapes.inc"

#declare f_Image=function {
 pigment {
  image_map {
   png "c:\images\test.png"
  }
 }
}
#declare Image=function {f_Image(x,y,z).gray} // needs this done ahead of
time

object {
HF_Sphere (Image, off, off, <100,100>, on, "", <0,0,0>, 0.9, 0.1)
pigment {rgb 1}
}


Post a reply to this message

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