POV-Ray : Newsgroups : povray.newusers : Writing "Include" files : Re: Writing "Include" files Server Time
4 Nov 2024 17:38:14 EST (-0500)
  Re: Writing "Include" files  
From: Ian J  Burgmyer
Date: 9 Mar 2003 03:24:25
Message: <3e6afa39$1@news.povray.org>
>> Once I have the asteroid field scene prepared do I just save as an
>> .inc file to use in space scenes?
> 
> and then write '#include "ast_field.inc"' or whatever... in your space scene.

Also, if you want to be able to use the file in any scene without having to
worry about "ast_field.inc" (or whatever you call it) is in the same directory,
save the include file in your POV-Ray include file directory (probably
C:\Program Files\POV-Ray for Windows 3.5\Include" if you're using Windows).

-- 
/*^*/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.