Nicolas Alvarez <nic### [at] gmailisthebestcom> wrote:
> Andycadd escribió:
> > is there such a system in the scene control language?
> >
> > IE... a very large file of many textures takes up too much memory
> > is there anyway to only load "specific" lines from an include file? not the
> > whole file.
> >
> >
> Totally wrong newsgroup; setting followup to povray.general.
>
> You could either keep it in separate files, or use #if statements.
>
> On main scene:
> #declare UseHighQualityModels=no;
> #declare UseHighQualityTextures=no;
>
> On an included file:
> #if(UseHighQualityModels)
> #declare Model = union {
> ...something BIG
> }
> #else
> #declare Model = union {
> ...simplified model...
> }
> #end
>
> object {
> Model
> #if(UseHighQualityTextures)
> texture {
> ...something BIG
> }
> #else
> pigment {
> color Yellow
> }
> #end
> }
Post a reply to this message
|