POV-Ray : Newsgroups : povray.general : Make an Inc file : Make an Inc file Server Time
2 Aug 2024 10:18:34 EDT (-0400)
  Make an Inc file  
From: wapper20@hotmail com
Date: 4 Nov 2004 08:05:00
Message: <web.418a28482be6cd9675e0e1cf0@news.povray.org>
Hello,

The code below just makes a simple camera, light and box.
-code-
#include "colors.inc"
camera {
location <0, 1, -5>
look_at <0,0,0>
}
light_source {
<0, 2, -5>
color White
}
box {
<-0.5, -0.5, 0.5>,
< 0.5, 0.5,  -0.5>
pigment {
color Red
}
}
-code-

But I would like the box to be an inc file and then call it in the code
like this:

-code-
#include "box.inc"
object{ box }
-/code-

How can I do this?


Post a reply to this message

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