|
|
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
|
|