POV-Ray : Newsgroups : povray.general : question: need 2 curve memory req's for scene... : Re: question: need 2 curve memory req's for scene... Server Time
8 Aug 2024 18:16:56 EDT (-0400)
  Re: question: need 2 curve memory req's for scene...  
From: Christoph Hormann
Date: 29 Oct 2000 01:48:34
Message: <39FBC845.A7362BB5@schunter.etc.tu-bs.de>
Johnny Smith wrote:
> 
>     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++
> 

Just declare it and use a reference each time:

#declare HF=height_field { png "E:\Gizmo-sick\ceiling2.png" }

object { 
    HF
    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
}

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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