3Delight-UserManual

Page 21

Chapter 3: Using 3Delight

14

‘-O2’

Sets some aggressive optimization, this is the recommended level and also the default. It includes: - Dead code elimination - Copy Propagation - Constant Folding - Arithmetic operations are reused if possible. - Removes code from loops or moves them outside, when possible. - Generates extra code to force some non-SIMD calls to become SIMD. - Converts varying variables to uniform variables when possible.

‘-O3’

This level enables even more aggressive optimizations. We tend to put newly introduced optimizations in ‘-O3’ and move them to ‘-O2’ after they have been thoroughly tested. Experimental optimizations, which do not produce faster code in all cases, are also put here. - Disables array bounds checking. - Removes empty and useless loops, even if they are infinite. - Widens the scope of different optimizations. This makes them more thorough at a cost of extra compilation time.

3.3 Using the Texture Optimizer - tdlmake tdlmake preprocesses TIFF, JPEG, GIF, IFF4 , SGI, PIC5 , PSD6 , TGA7 , “bake,” radiance and OpenEXR files to convert them into an efficient texture format suitable to 3Delight. It can also convert a ‘zfile’ into a shadow map. We recommend running tdlmake on all textures before rendering, for two reasons: • tdlmake creates a mipmapped version of the original texture, allowing 3Delight to produce nicer images more efficiently. • 3Delight employs a caching mechanism for texture data which works well with tiled images. Using raw (striped) non-converted TIFFs may degrade overall performance. Note that a converted file is a normal TIFF that can be viewed with any image viewer. We suggest using a ‘.tdl’ extension for 3Delight texture files.

Command Line Options tdlmake is invoked by specifying at least two file names and an optional set of command-line switches: % tdlmake [options] input.tif [input2.tif ... input6.tif] output.tif Valid options are: ‘-envlatl’ Generates a latitude-longitude environment map. 4 5 6 7

Such as those used by Maya software. Such as those used by SoftImage software. Such as those used by Abobe Photoshop software. Native format of Truevision Inc.


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.