Short Contents

5.4 External Resources

5.4.1 Texture Maps

3Delight supports the following optional parameters to the RiMakeTexture API:

"string compression"
Specifies the compression to apply to the texture. Possible values are "lzw", "on" (lzw), "1" (lzw), "zip", "deflate" and "off" (uncompressed). The default is "lzw".
"string quality"
Specifies the quality of the filtering. Possible values are "low", "medium" and "high". The default is "medium".
"int bakeres"
Specifies the resolution when converting a bake file.
"int progress"
If set to 1, a progress indicator will be printed to the console.
"int separateplanes"
If set to 1, enables the -separateplanes flag of tdlmake (see tdlmake options).
"int flips"
If set to 1, enables the -flips flag of tdlmake (see tdlmake options).
"int flipt"
If set to 1, enables the -flipt flag of tdlmake (see tdlmake options).
"int newer"
If set to 1, enables the -newer flag of tdlmake (see tdlmake options).
"int nomipmap"
If set to 1, enables the -nomipmap flag of tdlmake (see tdlmake options).
"float gamma"
Sets the -gamma flag of tdlmake (see tdlmake options).
"float rgbagamma[4]"
Sets the -rgbagamma flag of tdlmake (see tdlmake options).
"string colorspace"
Sets the -colorspace flag of tdlmake (see tdlmake options).
"float pixelaspectratio"
Specifies the -pixelaspectratio flag of tdlmake (see tdlmake options).
"float imageaspectratio"
Specifies the -imageaspectratio flag of tdlmake (see tdlmake options).

5.4.2 Archives

5.4.2.1 RiArchiveRecord

In addition to what is required by the specification, 3Delight will attempt to parse the "verbatim" type requests as RIB when used in immediate rendering mode. This is for consistency with the results obtained when RIB commands are injected with this function in RIB output mode. This will only work correctly if complete commands are output in a single RiArchiveRecord call.

5.4.2.2 Inline Archives

The following two commands can be used to define inline archives:

RiArchiveBegin( RtToken archivename, ...parameterlist... )
RiArchiveEnd()

Any commands issued between that pair will be recorded as part of the archive archivename. They can then be replayed using RiReadArchive or the RiProcDelayedReadArchive procedural.

3Delight 10.0. Copyright 2000-2011 The 3Delight Team. All Rights Reserved.