POV-Ray : Newsgroups : povray.advanced-users : Relative library paths? : Re: Relative library paths? Server Time
28 May 2024 14:33:17 EDT (-0400)
  Re: Relative library paths?  
From: Alain
Date: 6 Jan 2014 19:15:57
Message: <52cb473d@news.povray.org>

> Can INI library paths be relative paths as well as absolute paths?
>
> I want to distribute some scenes I'm working on including all the needed INI,
> INC and POV files to some less-than-expert POVray users. But the library paths
> are always a barrier because people have to edit them to match their local file
> system.
>
> Thanks!
>
>

If you distribute your scene in it's own folder that include all .POV, 
.INI and .INC that are made for that scene, there will be no problems at 
all. In a normal or default installation, the default inc files are 
readily accessible.

It comes from the fact that POV-Ray search first in the local folder for 
the inc files, then in default include folder.

Just add a little readme.txt file instructing how to launch the ini file 
to render the scene as intended.

It's a very bad idea to include hard codded paths in your scene. They 
don't port between the Windows, Linux and Mac versions, don't work if 
the user files and profiles are not in the same location as yours,...



Alain


Post a reply to this message

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