POV-Ray : Newsgroups : povray.general : question: need 2 curve memory req's for scene... : question: need 2 curve memory req's for scene... Server Time
8 Aug 2024 18:21:30 EDT (-0400)
  question: need 2 curve memory req's for scene...  
From: Johnny Smith
Date: 29 Oct 2000 01:10:08
Message: <39fbb130@news.povray.org>
I'm using an image AS a heightfield in several different places within a
scene.
Each time I use it..I must read it in...each time I do..it requires more and
more
memory...  Any way to read ONCE...and then assign something to it?
I guess the equivalent would be a pointer C/C++

This is used to create my RUG on the floor...

height_field { png "E:\Gizmo-sick\ceiling2.png" // smooth
                 scale <4, .19, 2>
                 texture { Carpet scale .7 finish { ambient .5 } }
                 rotate <180, 0, 0>
                 translate < -3.2, -0.809, 7.2> // Center around origin
               }

Now...to create my ceiling...I use the same image...

height_field
{
  png "ceiling2.png"  smooth
  rotate z*180 //flip it over so the points are facing the floor
  translate <0.5, 103, -0.5>
  scale <39.0, 0.06, 30.0>
   texture  { pigment { White } }
 }


    I would rather not have to duplicate this image map
in memory if I could avoid it...anybody have any ideas????


                        Thanks

                       Johnny


Post a reply to this message

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