POV-Ray : Newsgroups : povray.advanced-users : height_field + normal pattern problem.. : height_field + normal pattern problem.. Server Time
8 Jul 2024 19:56:45 EDT (-0400)
  height_field + normal pattern problem..  
From: albe99
Date: 1 Apr 2007 19:20:01
Message: <web.46103c1eae6ec0f5bff855340@news.povray.org>
Hello, I'm Alberto from Italy..
I would want to modify an height_field with a normal pattern (granite for
example..) and then generate a new 16 bit grayscale image (png or tga..) to
re-use in other height_field statement..
is possible to do this?

I have written this basic sample:
//------------------------------
#include "colors.inc"

global_settings {
   hf_gray_16 on
}

camera {
   orthographic
   location <0.518756, 1.42622, 0.517175>
   sky <0, 1, 0>
   direction <0, 0, 1>
   right <1, 0, 0>
   up <0, 1, 0>
   look_at <0.518487, 0.464293, 0.493562>
}

height_field {
   png "HFtest01.png"
   scale <1, 0.3, 1>
   rotate <0, 0, 0>
   translate y*0.0870551

   texture {
      normal { granite 0.4 }
      pigment { color rgb <0.32549, 0.32549, 0.32549> }
      finish { ambient 1 }
   }
}
//--------------------------------------
....but render shows me nothing, please can someone help me?

Thanks, Alberto


Post a reply to this message

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