POV-Ray : Newsgroups : povray.beta-test : selective component loading..... : Re: selective component loading..... Server Time
28 Jul 2024 18:17:35 EDT (-0400)
  Re: selective component loading.....  
From: Andycadd
Date: 23 Oct 2007 21:10:01
Message: <web.471e9b2d7dcd5e2ffedbe4b90@news.povray.org>
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

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