POV-Ray : Newsgroups : povray.general : How to include a pov ray file as an object? : Re: How to include a pov ray file as an object? Server Time
16 Apr 2024 02:59:22 EDT (-0400)
  Re: How to include a pov ray file as an object?  
From: Kima
Date: 25 Jul 2018 18:45:01
Message: <web.5b58fd3938bf93ee3ce674f0@news.povray.org>
dick balaska <dic### [at] buckosoftcom> wrote:
> On 07/25/2018 12:40 PM, Kima wrote:
> > I have a standalone povray file, but I want to include it as an object in my own
> > povray file including other objects. I remove the camera and light from the
> > first povray file and tried to include it in my own file as
> >
> >
> >
> > camera {location <0,7,-7> look_at <0,0,0>}
> > light_source {<-15,10,-15> color rgb<1,1,1>  }
> > background {color rgb<.7,.7,.7> }
> >
> > #declare externalobject = #include "/.../external.pov"
> >
> > object {externalobject .... }
> >
> >
> > but it doesn't work and I doesn't return any error to find out what is the
> > problem.
>
>
> I'm surprised you don't get any error.  My guess is you are running into
> I/O restrictions. Your external.pov is in a not-allowed directory (Your
> include starts with a '/').  Try copying external.pov to the same
> directory as your main file.
>
> My project has 200+ include files, but they are all in the current
> directory or a subdirectory below it.
>
> --
> dik
> Rendered 328976 of 330000 (99%)

Sorry, the mistake was mine. The absolute path worked fine, that's why I didn't
receive any error. The external povray placed the objects in an odd location far
outside the camera domain. I adjusted the camera, and it's fine.


Post a reply to this message

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