POV-Ray : Newsgroups : povray.beta-test : selective component loading..... : Re: selective component loading..... Server Time
28 Jul 2024 18:26:56 EDT (-0400)
  Re: selective component loading.....  
From: Nicolas Alvarez
Date: 22 Oct 2007 19:08:29
Message: <471d2d6d@news.povray.org>
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.