|
![](/i/fill.gif) |
Leroy Whetstone wrote:
> I was wondering do many use this trick?
> And if you do what type do you save the file as?
> I save objects like a boat,rock as a '.pov' and macros as an '.inc'.
I name scene files .pov and just about everything else .inc.
I do something like #ifndef(Main_Scene_File) ... Then check for other
common variables like colors to be a little bit safe.... Then later in
the include file, I give it it's own camera and lighting, maybe a floor
etc all of which are ignored unless Main_Scene_File matches a string
which happens to be the same as the file name of the include file. I'm
really into making object includes self-demonstrating.
For large include files which are themselves only part of something
bigger and can't easily self-demonstrate, I do something like:
#ifndef(Main_Scene_File) #include "myscene.pov"
#else
...(else parse this file)....
...
...
#end //end "#ifndef(Main_Scene_File)" from beginning of file
Charles
Post a reply to this message
|
![](/i/fill.gif) |