Chapter 2 NIFFeditor for SGI




(6)Node Settings

 The node setting dialog box for SGI can be started by clicking on the respective node. There are currently five nodes that allow settings via the dialog box. They are Scene , Obj , Shape , Mat , and Texture. The method of entering settings for each is described below.

  • Scene Node

     The flags with the NIFF Scene node can be set using the dialog box illustrated below.

    Figure Scene Node Settings Dialog Box

    Name

     The Scene name is diaplayed in this box.

    SCENE_CFG_VIDEO

     This sets the video mode flag of the scene_cfg data in the SceneList.

     Use the switch to set one of three modes,NTSC, PAL, or MPAL.

    GAMMA

     This sets the flag for gamma correction of the scene_cfg data in the SceneList.

    DITHER

     This sets the flag for dithering the scene_cfg data in the SceneList.

    DIVOT

     This sets the flag for divoting the scene_cfg data in the SceneList.

  • Obj Node

     The flags in the NIFF Obj node can be set using this dialog box as illustrated below.

    Figure Obj Node Settings Dialog Box

    Name

     The Obj name is displayed in this box.

    ACTIVE Switch

     When turn ON, this sets the obj_state flag in the NIFF Obj to ACTIVE.

    type

     This sets the obj_type data in the NIFF Obj. THis can be selected from among NULL object, 3D object, and BILLBOARD object.

    group

     This sets the obj_group data in the NIFF Obj. When the NONE switch is turned ON, the setting is OB_GROUP_NONE. When the NONE switch is turn OFF, the priority is the one shown in the selection box on the right.

    priority

     This sets the obj_pri data in the NIFF Obj. When the NONE switch is truned ON, the settings is OBJ_PRI_NONE. When the NONE switch is turned OFF, the priority is the one shown in the selection box on the right.

    render_priority

     This sets the obj_render_pri data in the NIFF Obj. IF[NIFF->] is selected, the NIFF render mode selection switch on the right can be used to select any of OPA_SURF, OPA_INTER, OPA_DECAL, TEX_EDGE, XLU_SURF, XLU_INTER, or XLU_DECAL.

     If [N64->] is selected, the render mode setting is described in render_type0 and render_type1, below the render_priority switch. At present, render_pri can only be set to the [NIFF->] setting.

    render_cycle_type

     This sets the obj_render_cycle_type data in the NIFF Obj. Select either 1 cycle or 2cycle.

    Have Link_Billboard

     This sets the have_link_billboard flag in the NIFF Obj.

  • Shape Node

     Flags can be set inside the NIFF LOD node using the following dialog box.

    Figure Shape Node Setting Dialog Box

    Name

     The shape name is displayed in this box.

    ALIAS

     This sets the type of anti-aliasing for the shape_type flag in the NIFF Shape node. Select one from among ANTI(anti-aliasing), REDUCED(simple anti-aliasing), and NONE(no anti-aliasing).

    Z-Buffer

     When this switch is turned ON, the shape_type Z-Buffer in the NIFF Shape node becomes enabled.

    Culling

     This performs culling control of the shape_type in the NIFF Shape node. Turn FRONT to ON, for front face culling, or turn BACK to ON for back face culling. Turn both ON to cull both faces. Turn both OFF for no culling.

  • Mat Node

     This sets the flags in the NIFF Mat nodes. The dialog box is illustrated below.

    Figure Mat Node Settings Dialog box

    Name

     The mat name is displayed in this box.

    shade_type

     This sets the mat_shade_type data in the NIFF Mat. The switches for performing lighting settings, shade settings, and environment settings are lined up from left to right.

     From the lighting settings, select one from among GLOBAL(global light), LOCAL(local light), and NON(no light).

     From the shade settings, select one from between FLAT(flat shading) and SMOOTH(smooth shading).

     From the environment map settings, select one from among USE_REFLECT(reflection mapping), USE_HILIGHT(highlight mapping), and NONE(no environment mapping).

    mat_type

     This sets the mat_type in the NIFF Mat. First select the mat type setting method, either NIFF or N64. After changing this switch, the user must currently close the dialog box by clicking [OK] once. Then, click the node again to re0open the dialog box. Otherwise, the display updates. This problem will be corrected in a future revision.

     If [NIFF] has been selected, the display is in dedicated NIFF color setting mode. In this case, you can choose whether or not to select anything for the various colors: color_type0, color_type1, alpha_type0, and alpha_type1. Multiple colors can also be selected at the same time. However, when these are converted to a display list, the way they are selected is determined by the converter.

     If [N64] has been selected, the colors are selected according to the color combiner selection method of the N64.

    prim_color

     This defines the prim_red, prim_green, prim_blue, and prim_alpha data in the NIFF Mat. Indicate each color selection in the range of 0 to 1.

    usr_flag*

     This describes the usr_flag data in NIFF Mat.

  • Tex Node

    Figure Tex Node Setting Dialog box

    Name

     This box displays the Tex name.

    Form

     This is used to select the texture format. I, IA, CI, YUV, RGB, and RGBA. This is reflected in the tex_type data in the NIFF Tex node.

    Depth

     This is used to select the number of bits per texture pixel. Select one from among 4bit, 8bit, 16bit, and 32bit. This is reflected in the tex_type data in the NIFF Tex node.

    Wrap_s, Wrap_t

     The wrap, clamp, and mirror of the texture can be set. This is reflected in the tex_wrap_s, and tex_wrap_t data in the NIFF Tex node.

  • Jump to next!