POV-Ray : Newsgroups : povray.newusers : Writing "Include" files : Re: Writing "Include" files Server Time
4 Nov 2024 17:31:06 EST (-0500)
  Re: Writing "Include" files  
From: Ian J  Burgmyer
Date: 6 Mar 2003 23:33:32
Message: <3e68211c@news.povray.org>
Modeler's furious key-hammering produced this:
> If anyone could point me in the right direction for learning to write
> "Include" files it would be greatly appreciated. I would like to locate
> tutorials, info, or anything else that would help me.

POV-Ray's include files are the same thing as scene files.  Their biggest
advantage over simply throwing the code into your scene is that it enables you
to reuse the code without having to copy-and-paste it into every file that you
do.  The only real difference between include files and scene files is the file
extension (the file is marked with a ".inc" ending rather than ".pov").

-- 
/*^*/light_source{100*<-5,2,-5>2}#macro I(i,n)#while(strlen(i)>=n)#local A=asc(
substr(i,n,1));#local a=asc(substr(i,n+1,1));cylinder{<div(A,8)-12,mod(A,8)-4,4
><div(a,8)-12,mod(a,8)-4,4>,0.1pigment{rgb z}}#local n=n+2;#end#end I("ScUe[]"1
/*<*/)I("mkmtlttk"1)//@_$#!,:<"Thhis polysig brought to you by Ian Burgmyer :)"


Post a reply to this message

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