POV-Ray : Newsgroups : povray.advanced-users : Relative library paths? Server Time
22 Dec 2024 21:14:04 EST (-0500)
  Relative library paths? (Message 1 to 4 of 4)  
From: posfan12
Subject: Relative library paths?
Date: 4 Jan 2014 21:35:01
Message: <web.52c8c4296482f2fdf5699ff20@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!


Post a reply to this message

From: Cousin Ricky
Subject: Re: Relative library paths?
Date: 5 Jan 2014 00:30:01
Message: <web.52c8ed651937731306548240@news.povray.org>
"posfan12" <nomail@nomail> wrote:
> 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.

I have used them a couple of times (in Linux) with no problem; but only in the
same directory as the scene file, so I don't know if they're relative to the
..ini file, the scene file, or the working directory.


Post a reply to this message

From: posfan12
Subject: Re: Relative library paths?
Date: 5 Jan 2014 12:15:01
Message: <web.52c9922f1937731f5699ff20@news.povray.org>
"Cousin Ricky" <rickysttATyahooDOTcom> wrote:
> I have used them a couple of times (in Linux) with no problem; but only in the
> same directory as the scene file, so I don't know if they're relative to the
> ..ini file, the scene file, or the working directory.

It seems to work. Here's my folder structure:


C:\Users\NIMDA\Desktop\New folder\QUICKRES.INI
C:\Users\NIMDA\Desktop\New folder\ldview_povray_include.inc
C:\Users\NIMDA\Desktop\New folder\ldview_povray_mini_test.pov
C:\Users\NIMDA\Desktop\New folder\lgeo\lg\
C:\Users\NIMDA\Desktop\New folder\lgeo\ar\
C:\Users\NIMDA\Desktop\New folder\LightsysIV


Here are my library paths inside QUICKRES.INI:

 Library_Path="lgeo\lg"
 Library_Path="lgeo\ar"
 Library_Path="LightsysIV"


Thanks for the help!


Post a reply to this message

From: Alain
Subject: Re: Relative library paths?
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.