POV-Ray : Newsgroups : povray.general : Selective texture/material loading is possible... Server Time
27 Nov 2024 22:47:43 EST (-0500)
  Selective texture/material loading is possible... (Message 1 to 1 of 1)  
From: Andycadd
Subject: Selective texture/material loading is possible...
Date: 14 Nov 2007 21:45:00
Message: <web.473bb1b8e22eb663fedbe4b90@news.povray.org>
Selective texture loading is possible...

1. Generate a list of the materials used (manually)
2. declare those materials/textures as simple low res textures
3. load the big long ".inc" file containg large numbers of textures, most of
which you wont load.
4. each material definition is wrapped in a conditional
#if   #then  using the "MATERIALNAME" so that only previously defined materials
are loaded / REdeclared.  all the other material names in the include file will
not be read in because the ifthen statement filtered them out.
5. you have just selectively loaded a material definition libraryfile.
6. definition file can contain large numbers of bitmaps or other
complex files.



PS  im sure i've seen this system somewhere anyone


Post a reply to this message

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