Page 281 - Enhancing CAD Drawings with Photoshop
P. 281
4386.book Page 265 Monday, November 15, 2004 3:27 PM
ILLUSTRATING A 3D MODEL 265
2. On the General tab of the Object Properties dialog box (see Figure 8.9), notice that the Object
Channel (also known as the ObjectID) is set to 0. You would have to set this to a nonzero value
to include this object in the G-Buffer. Don’t change anything yet, however; click Cancel.
Figure 8.9
The Object Properties
G-Buffer Object Channel
To differentiate the objects in the G-Buffer, you would have to give each and every object in the
scene a unique ObjectID, a tedious process. Instead, use the ObjectIDAssigner MAXScript; it
assigns sequential ObjectIDs to each object automatically.
3. Click the Utilities tab of the Command Panel. Click the MAXScript button in the Utilities rollout.
4. Click the Open Script button, and then select the file ObjectIDAssigner0.2.ms from the com-
panion CD to open a MAXScript window showing the code (see Figure 8.10). Within this
window, choose File Evaluate All. Then close the window.
Now that the code has been evaluated, it is part of VIZ. Run the utility.
5. In the MAXScript rollout, select ObjectID Assigner from the Utilities drop-down list box.
6. Click the Assign button once; that’s it.