POV-Ray : Newsgroups : povray.general : Re: selective component loading..... Server Time
5 Nov 2024 03:18:53 EST (-0500)
  Re: selective component loading..... (Message 1 to 1 of 1)  
From: Nicolas Alvarez
Subject: Re: selective component loading.....
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.