<?xml version="1.0" ?>
<!DOCTYPE adsui SYSTEM "../../ui.dtd">
<adsui version="2.0">
  <PageInfo>
    <Title>
      Metallic
    </Title>
  </PageInfo>
  <Fields>
    <StackPanel id="metallicpaint_metallicpaintgroup"
                label="Metallic Paint"
                orientation="Vertical"
                expanded="true">

      <MappableColor id="metallicpaint_base_color" label="Color" colorbyobject="true"
             tooltip="Selects the base color of the paint.">
        <BoolColorByObject id="metallicpaint_base_color_by_object" />
      </MappableColor>
      <Float id="metallicpaint_base_highlightspread"
             label="Highlight Spread"
             units="%" precision="0"
             min="0" max="100" forcenumeric="slider"
             tooltip="Adjusts the very blurred reflectivity of the base coat under the very sharp reflections of the topcoat." />
    </StackPanel>
      
      <!-- Flecks -->
    <StackPanel id="metallicpaint_flecks"
                label="Flecks"
                labelid="metallicpaint_flecks_panel_label" 
                orientation="Vertical"
                checkbox="true"
                checkonvalue="metallicpaint_flecks_enable">

      <ChooseList id="metallicpaint_flecks"
                  label="Flecks"
                  labelid="metallicpaint_flecks_list_label" 
                  onebased="true"
                  tooltip="Enables the use of reflective flakes in the paint.">
        <Choice id="metallicpaint_flecks_enable" label="Enabled"/>
      </ChooseList>
      <MappableColorByObject id="metallicpaint_flecks_color"
             label="Color"
             tooltip="Defaults to white, with tone (going to black) attenuating the fleck effect against the base coat; a medium grey base color with a black fleck color will show no flecks, but a medium grey fleck on the same base color will show 50% of the fleck effect."
             coloronly="true">
        <BoolColorByObject id="metallicpaint_flecks_color_by_object" />
      </MappableColorByObject>
      
      <Float id="metallicpaint_flecks_size"
             label="Size"
             units="%" precision="1"
             min="0" max="100" forcenumeric="slider"
             tooltip="Adjusts the size of the flecks.">
      </Float>
    </StackPanel>

      
      <!-- Pearl -->

    <StackPanel id="metallicpaint_pearl"
                label="Pearl"
                labelid="metallicpaint_pearl_panel_label" 
                orientation="Vertical"
                checkbox="true"
                checkonvalue="metallicpaint_pearl_chromatic">

      <ChooseList id="metallicpaint_pearl"
                  label="Type"
                  labelid="metallicpaint_pearl_list_label" 
                  onebased="true"
                  tooltip="Selects Chromatic or Second Color.">
        <Choice id="metallicpaint_pearl_chromatic" label="Chromatic"/>
        <Choice id="metallicpaint_pearl_custom" label="Second Color"/>
      </ChooseList>

      <MappableColorByObject id="metallicpaint_pearl_color"
             label="Color"
             coloronly="true"
             tooltip="Adjusts the Pearl color.">
        <BoolColorByObject id="metallicpaint_pearl_color_by_object" />
        <Dependency id="metallicpaint_pearl_dependency1"
	            on="metallicpaint_pearl"
	            requires="metallicpaint_pearl_custom"
		    else="hidden"/>
      </MappableColorByObject>
      
      <Float id="metallicpaint_pearl_ior"
             label="Blend"
             units="%" precision="0"
             min="0" max="100" forcenumeric="slider"
             tooltip="Slides to mix the colors from 0-100.">
        <Dependency id="metallicpaint_pearl_dependency2"
                    on="metallicpaint_pearl"
                    requires="metallicpaint_pearl_custom"
                    else="hidden"/>
      </Float>

      <Float id="metallicpaint_pearl_amount"
             label="Amount"
             units="%" precision="0"
             min="0" max="100" forcenumeric="slider"
             tooltip="Adjusts the blend between the pearl effect and the base color.">
      </Float>
    </StackPanel>
      
      <!-- Top Coat -->
    <StackPanel id="metallicpaint_topcoat_panel"
                label="Top Coat"
                orientation="Vertical">

      <ChooseList id="metallicpaint_topcoat"
                  label="Type"
                  tooltip="Selects from among Matte, Chrome, Car Paint, and Custom.">
        <Choice id="metallicpaint_topcoat_carpaint" label="Car Paint"/>
        <Choice id="metallicpaint_topcoat_chrome" label="Chrome"/>
        <Choice id="metallicpaint_topcoat_matte" label="Matte"/>
        <Choice id="metallicpaint_topcoat_custom" label="Custom"/>
      </ChooseList>
      
      <Float id="metallicpaint_topcoat_glossy"
             label="Glossiness"
             units="%" precision="0"
             min="0" max="100" forcenumeric="slider"
             tooltip="Slides from 100 (totally reflective) to 0 (matte).">
        <Dependency id="metallicpaint_topcoat_dependency0"
                    on="metallicpaint_topcoat"
                    requires="metallicpaint_topcoat_custom"
                    else="hidden"/>
      </Float>
      
      <Float id="metallicpaint_topcoat_falloff"
             label="Angle Falloff"
             units="%" precision="0"
             min="0" max="100" forcenumeric="slider"
             tooltip="Slides from 0=No Fresnel effect (constant reflections like Chrome) to 100=High Fresnel (really reflective only in a narrow zone at extreme angles. Extreme limit placed for realistic top coats (on a scale combining Fresnel bias, power, and scale), with Car Paint around 80.)">
        <Dependency id="metallicpaint_topcoat_dependency1"
                    on="metallicpaint_topcoat"
                    requires="metallicpaint_topcoat_custom"
                    else="hidden"/>
      </Float>
      
      <!-- Finish -->
      <ChooseList id="metallicpaint_finish"
                  label="Finish"
                  tooltip="Selects Smooth or Orange Peel.">
        <Choice id="metallicpaint_finish_smooth" label="Smooth"/>
        <Choice id="metallicpaint_finish_peeling" label="Orange Peel"/>
      </ChooseList>
      
      <Float id="metallicpaint_finish_peelamount"
             label="Amount"
             units="%" precision="0"
             min="0" max="100" forcenumeric="slider"
             tooltip="Slides to choose Chromatic Finish amount between 1-100.">
        <Dependency id="metallicpaint_finish_dependency0"
                    on="metallicpaint_finish"
                    requires="metallicpaint_finish_peeling"
                    else="hidden"/>
      </Float>
    </StackPanel>
    <!-- The tooltip of a StackPanel item will appear when the stackpanel has a checkbox.-->
    <StackPanel id="metallicpaint_ao_on"
        label="Ambient Occlusion"
        orientation="Vertical"
        checkbox="true"
        expanded="true"
        tooltip="Enables Ambient Occlusion. Emulates the look of true global illumination by using shaders to calculate the extent that an area is occluded or prevented from receiving incoming light. Use this effect with indirect light.">
      <Integer id="metallicpaint_ao_samples"
         label="Samples"
         tooltip="Ambient occlusion quality (High= Smoother/Slower; Low= Grainier/Faster)"
         min="2"
         max="256"
         forcenumeric="spinbox"/>
      <Float id="metallicpaint_ao_distance"
         label="Max Distance"
         forcenumeric="spinbox"
         tooltip="Defines the ambient occlusion radius (High= Large coverage area/Slower; Low= Small coverage area/Faster)"/>
      <Boolean id="metallicpaint_ao_details"
               rightlabel="Use Color From Other Materials"
               tooltip="Enables a more complex mode of Ambient Occlusion that takes object color into account. Note: This improves excessive 'corner darkening' and solves the creation of 'dark rims' by AO around self-illuminating objects."/>
    </StackPanel>
    <StackPanel id="metallicpaint_roundcorners_on"
        label="Round Corners"
        orientation="Vertical"
        checkbox="true"
        expanded="true"
        tooltip="Enables simulated round corners. Note: This is only a shading effect, similar to a bump map, whereby no actual geometric changes occur.  This effect only works properly on straight edges.">
      <!-- If forcenumeric="spinbox", then the dropdownlist should contain "Use Spinner" instead of "Use Slider"-->
      <MappableFloat id="metallicpaint_roundcorners_radius"
                     bump="true"
                     label="Source"
                     forcenumeric="spinbox"
                     tooltip="Adjusts the radius of the round corner effect."/>
      <Boolean id="metallicpaint_roundcorners_allow_different_materials"
             rightlabel="Blend with Other Materials"
             tooltip="Activate to apply corner rounding effects to any material. Disable to apply corner rounding effects to the surface of the current material only." />
    </StackPanel>
    <StackPanel id="metallicpaint_performance_tunning_group"
        label="Performance Tuning"
        orientation="Vertical"
        expanded="true">
      <Integer id="metallicpaint_reflection_glossy_samples"
         label="Reflection Glossy Samples"
         tooltip="Defines the maximum number of samples (rays) that mental ray computes to create glossy reflections."
         min="0"
         max="128"
         forcenumeric="spinbox"/>
      <Integer id="metallicpaint_refl_depth"
         label="Reflection Max Trace Depth"
         tooltip="Number of times each ray is reflected. When set to zero, global render settings take precedence."
         min="0"
         max="20"
         forcenumeric="spinbox"/>
    </StackPanel>
  </Fields>
</adsui>
