Displaying Textures in the Viewer
If the texture maps used in your renderer's shaders are in the form of .tx or .tex files, you can show these in the Viewer, provided they have the file suffix .tx, rather than .tex. In addition, the Viewer can render RGB and RGBA image formats, such as .tif, .png, and .jpg. For example, create a primitive, assign it a Viewer shader material, and map the Texture parameter of the Viewer shader material to an image file.
|
2.
|
Edit the parameters of the Material node. |
|
3.
|
Expand the parameters of the viewerSurfaceShader of type KatanaPhong you added previously. |
|
4.
|
Expand the Texture parameter field. |
|
5.
|
Right-click on filename and select Wide editor. |
|
6.
|
Type in the path to your texture file. |
|
7.
|
Select Util > Flush Caches, or click on the Flush Caches button . |
Observe the results in the Viewer.
Note: For you to apply texture color maps, your Viewer Surface shader must be either of the supplied KatanaPhong, or texture types, or a custom Viewer shader that supports this feature.