Overview
The Search Paths group of attributes specifies the search paths 3Delight will use when looking for various resources.Search Pathsアトリビュートは、様々なリソースを参照する際に3Delightが使用するサーチパスを指定します。
The Search Paths Groupグループ
Shader Path
Texture Path
Procedural Path
Archive Path
Specifies search paths for shaders, textures, procedurals and archives, respectively. By default, all these attributes are set to ‘@’, which is the default path specified by the Shader, Texture, Procedural, Archiveそれぞれのサーチパスを指定します。デフォルトでは‘@’が設定されており、これは環境変数 DL_*_PATH variables. PATHで設定されたデフォルトパスを意味します。
Search Path
Syntax構文
サーチパスはコロン( : ) あるいはセミコロン( ; )で区切ります。
それぞれのパスには幾つかの特殊文字を含める事が出来ます:
‘@’はデフォルトパスを意味します。デフォルトパスはrendermn.ini ファイルや環境変数で設定できます。(詳細は3Delight User’s Manualを参照して下さい。)
環境変数はrendermn.ini ファイルで指定しているものよりも優先されます。‘&’は以前のパスリストを指定します。
‘$’で始まり大文字が続く文字(例: $HOME)は環境変数としてみなされ、レンダリング時に置き換えられます。
‘~’がパスの最初に記述されていると、$HOMEと同義になります。例えば下記の記述はTextureサーチパスとして有効です。
A search path is a colon or semi-colon separated list of paths.
Each path can include some special symbols:
The ‘@’ symbol specifies the default path. Default paths for each resource are settable through the configuration file or through environment variables (refer to 3Delight User’s Manual for more information about both configuration file and default environment variables). Environment variables override any value set in the configuration file.
The ‘&’ symbol specifies the previous path list.
A word starting with a ‘$’ and followed by uppercase letters (e.g. $HOME) is considered as an environment variable and is replaced by its value at render time.
The ‘~’ symbol, when placed at the beginning of a path, is equivalent to $HOME. For example, the following would specify a valid search path for textures
@:$HOME/textures:$PROJECT/textures
| Info |
|---|
Directories can be separated with ‘Windowsの場合、ディレクトリの区切りは‘/’ or か ‘\’ on Windows but only by が使用できますが、他のプラットフォームでは ‘/’ on other platforms.のみとなります。 |