Viewer Materials Smoke Test

From Second Life Wiki
Jump to navigation Jump to search

Overview

  • This test plan covers viewer-side support for the prim materials project, which provides support for normal maps and specular maps applied to object faces
  • A high-level specification of this featureset can be found at Material_Data

Build Tool Test

Required Materials

  • A region which supports normal and specular maps
  • Three test users
    • UserA, who uses a viewer which supports normal and specular maps, and does the building (actually performs operations)
    • UserB, who uses a viewer which supports normal and specular maps, and only observes the results of UserA's work
      • The purpose of this user is to verify that build tool edits sent by UserA's viewer produce congruent results
    • UserC, who uses an 'old' (no support for normal and specular maps) viewer, and only observes the results of UserA's work
      • The purpose of this user is to verify that edited content looks reasonable on legacy viewers, and sometimes to verify that build tool settings from the new viewer have the same appearance as those set by the legacy viewer.
    • UserA and UserB should have "Advanced Lighting Model" enabled under Preferences -> Graphics settings, under "Advanced". This setting is required for the viewer to render normal and specular maps properly.
  • Upload the following textures to use in this test:

Verify Basic Build Tool Layout

Verify that non-Texture portions of the build tool have not changed

  1. UserA, UserB, and UserC: login
  2. UserA and UserC: each rez a box
  3. UserA and UserC: select the box that you rezzed, and select Edit from the context menu
  4. UserA and UserC: verify that your build tools appear, and that the appearance is identical in the following tabs:
    • General
    • Object
    • Features
    • Content
  5. UserA and UserC: verify that the build tool UI is the same for each of the build tool modes (top row of buttons)
    • Focus (magnifying glass icon)
    • Move (hand icon)
    • Edit (mouse cursor icon)
    • Create (magic wand icon)
    • Land (bulldozer icon)
  6. UserA: deselect the box
  7. UserA, UserB, and UserC: verify that UserA's box still looks like a default box (has not changed appearance)

Verify layout and default values of build tool's Texture tab

  1. UserA, UserB, and UserC: login
  2. UserA: Rez a box, select it, and hit 'Edit' to open the build tool
  3. UserA: Open the Texture tab of the build tool, and verify that the layout basically matches the image here (minus colorful lines): File:MaterialsBuildUI1.png. Verify that the following defaults are set:
    • Verify that "Materials" is the default face edit mode
    • Verify that "Texture (diffuse)" is the default texture edit mode
    • Verify that the Color appears white
    • Verify that Transparency is 0%
    • Verify that Glow is 0.00
    • Verify that 'Full Bright' is disabled
    • Verify that the texture preview shows the default plywood texture
    • Verify that 'Alpha mode' is 'Alpha blending'
    • Verify that 'Mask cutoff' does *not* appear (this option is not applicable in this alpha mode)

Verify layout and default values for Mapping option

  1. UserA, UserB, and UserC: login
  2. UserA: Rez a box, select it, and hit 'Edit' to open the build tool. Open the Texture tab of the build tool.
    • Verify that 'Repeats' is 'per face (default)'
      • Verify that the texture mapping settings match the 'Mapping = default' section in '2b' of this reference image: File:MaterialsBuildUI1.png.. Verify that the following defaults are set:
      • Verify that 'Horizontal scale' and 'Vertical scale' are both 1.00
      • Verify that 'Repeats per meter' is 2.0 (2.0/meter corresponds to 1.0/face on a 50cm cube face), and can be edited
      • Verify that 'Rotation' is 0.00
      • Verify that 'Horizontal offset' and 'Vertical offset' are both 0.00
      • Verify that 'Align planar faces' is *not* visible
  3. UserA: Deselect the box
  4. UserA, UserB, and UserC: verify that the box's appearance has not changed (since no edits have been made)
  5. UserA: Reselect the box, and 'Edit' it again
  6. UserA: Under the Texture tab, change the 'Mapping' setting to 'Planar'
    • Verify that the texture mapping settings match the 'Mapping = planar' section in '2b' of this reference image: File:MaterialsBuildUI1.png.. Verify that the following defaults are set:
      • Verify that 'Number of repeats' is 2.00, and *cannot* be edited (is read-only)
      • Verify that 'Rotation' is 0.00
      • Verify that 'Horizontal offset' and 'Vertical offset' are both 0.00
      • Verify that 'Align planar faces' is visible, unchecked and enabled (*can* be edited)
  7. UserA: Deselect the box
    • UserA, UserB, and UserC: verify that the box's appearance has not changed (since the change to 'planar' mapping by itself has no visible effect on this box)

Verify build tool editing of texture settings

    • Note: UserA: run the following tests for texture settings., for both planar and default texture mapping modes
    • Note: UserB, and UserC: throughout the test, verify that you see the expected results based on the observer Viewer in use.

Texture Mapping: Diffuse texture, Default mode

  1. UserA: Set the Texture panel's dropdowns to read:
    • Materials
    • Texture (diffuse)
    • Mapping: Default
  2. UserA: Create a new cube prim for use in this test.
  3. UserA: Verify that clicking Texture box will open the Pick: Texture floating window, allowing you to select a new texture.
  4. UserA: Verify that you can drag a texture from your Inventory window to the box, or directly to the object.
  5. User A: Verify that if the Select Face item is NOT selected, texture changes are applied to all sides at once.
  6. UserA: Verify that if the Select Face item in the upper pane of the Tools window is selected, you can change one face of the object at a time.
  7. UserA: Apply the texture, File:TestDiffuse001.png, to a single face of the prim (while in Select Face mode). This should result in the prim having two textures. The "100" image should appear on only one face.
  8. UserA: Verify that if an object uses more than one texture, the word Multiple will appear in the Texture image box over one of the texture images.
  9. UserA: Deselect the box
    • UserA, UserB, and UserC: verify that the box's appearance has changed to show two textures, one on a single face the other on all other faces
  10. UserA: Verify that clicking Color box will open the Color Picker floating window.
  11. UserA: Verify that color tints selected are additive to the color of the base texture.
  12. UserA: Verify that using Transparency you can choose transparency level of the object.
  13. UserA: Verify that this setting applies an overall transparency to the texture in addition to any transparency in the alpha channel. The range is 0 to 100 percent. Set to 50%.
  14. UserA: Deselect the box
    • UserA, UserB, and UserC: verify that the box's appearance has changed to show a color tint and is semi-transparent.
  15. UserA: Verify that using Glow item you can create a surface glow on the object, separate from the light emitted with the Features tab. The range is 0 to 1, but any glow above 0.1 tends to wash out the surface texture.
  16. UserA: Deselect the box
    • UserA, UserB, and UserC: verify that the box's appearance has changed to add glow.
  17. UserA: Enable Full Bright.
  18. UserA: Deselect the box
    • UserA, UserB, and UserC: verify that the box renders as if fully day-lighted, regardless of the environment day cycle position of the sun.
    • (Use World > Sun >
  19. UserA: Change Transparency and Glow settings back to 0, and disable Full Bright.
  20. Rez a 0.5 (default-size) cube and add <test texture> via the texture picker.
  21. UserA: set Horizontal Scale to 2
  22. UserA: set horizontal offset to 0.5
  23. UserA: Verify Repeats per Meter value has automatically changed to 4.0
  24. UserA: Deselect the box
    • UserA, UserB, and UserC: Verify the number of repeats visible on each prim face matches the Horizontal Scale setting: 2 repeats, side-by-side.
  25. UserA: set Vertical Scale to 2
  26. UserA: set Vertical Offset to 0.5
  27. UserA: Verify Repeats per Meter value remains at 4.0
  28. UserA: Deselect the box
    • UserA, UserB, and UserC: Verify the number of repeats visible on each prim face matches the Horizontal Scale plus the Vertical Scale: 4 repeats in a 2x2 grid
  29. UserA: set Horizontal Scale to 1
  30. UserA: set Horizontal offset to 0
  31. UserA: Verify Repeats per Meter value remains at 4.0 (since this value now reflects the maximum density between horizontal and vertical scales)
  32. UserA: Deselect the box
    • UserA, UserB, and UserC: Verify the number of repeats visible on each prim face matches the Horizontal Scale setting: 2 repeats, one above the other.
  33. UserA: Verify that Rotation controls rotation of the texture relative to vertical. Range is -360° to 360°.
  34. UserA: Deselect the box
    • UserA, UserB, and UserC: verify that for Rotation Degrees edits, the shift is along the texture, not the object face.
  35. UserA: Verify that Align Planar Faces is disabled/greyed out when in the Mapping Default mode

Texture Mapping: Diffuse texture, Planar mode

  1. Set the Texture panel's dropdowns to read:
    • Materials
    • Texture (diffuse)
    • Mapping: Planar
  2. UserA: Verify that the Repeats/Meter value is disabled/greyed out when in the Mapping Planar mode is active
  3. Rez a cube and resize it to 1m per side. Reposition the cube so the entire prim can be viewed. Add the texture File:TestDiffuse001.png via the texture picker.
  4. UserA: Set Horizontal Scale to 4
  5. UserA: Set Vertical Scale to 6
  6. UserA: Verify that the read-only Repeats Per Meter changed to 3.0 (yes, this is screwy, but it seems to match the release viewer)
  7. UserA: set horizontal offset to 0.5
  8. UserA: set Vertical offset to 0.5
  9. UserA: Deselect the box
    • UserA, UserB, and UserC: Verify the number of repeats visible on each plane of each prim face matches 4 repeats horizontally, 6 vertically
  10. UserA: Verify that Rotation controls rotation of the texture relative to vertical. Range is -360° to 360°.
  11. UserA: Deselect the box
    • UserA, UserB, and UserC: verify that for Rotation Degrees edits, the shift is along the texture, not the object face.
  12. Align Planar Faces test TBD

Verify functionality of 'Alpha mode' option

No Mask is forced for textures without an alpha channel

  1. UserA, UserB, and UserC: login
  2. UserA: Take a snapshot (ctrl+S) and 'Save to inventory'
  3. UserA: Rez a box, select it, and hit 'Edit' to open the build tool.
  4. UserA: Set the snapshot as the texture on the box
  5. UserA: Verify that the 'Alpha mode' setting is 'None', and that the UI for changing 'Alpha mode is disabled'
    • Verify that the 'Mask cutoff' setting is hidden
  6. UserA, UserB, and UserC: Verify that the snapshot appears on the box, and that it is fully opaque

Alpha Blending

  1. UserA, UserB, and UserC: login
  2. UserA: Upload this alpha-mapped image to your inventory: File:Maestro_alpha_gradient.png
  3. UserA: Rez a box, select it, and hit 'Edit' to open the build tool. Open the Texture tab of the build tool.
  4. UserA: Using the texture picker from the build tool, set the image you uploaded on all faces of the box
  5. UserA, UserB, and UserC: verify that you see a 'smooth' transparency transition in the texture on all faces, with the bottom of the image being opaque and the top being transparent. This is the expected result when the 'Alpha mode' is set to the default 'Alpha blending' setting

Alpha Masking

  1. UserA, UserB, and UserC: login
  2. UserA: Upload this alpha-mapped image to your inventory (if you don't already have it): File:Maestro_alpha_gradient.png
  3. UserA: Rez a box, select it, and hit 'Edit' to open the build tool. Open the Texture tab of the build tool, and set the texture to the one you just uploaded.
  4. UserA: Set the 'Alpha mode' to 'Alpha masking'
    • Verify that the 'Mask cutoff' setting appears, and that the default value for it is 0
  5. UserA, UserB: verify that the box's texture appears (almost) completely opaque
  6. UserC: verify that you see no change (since your viewer doesn't support alpha masking)
  7. UserA: set the 'Mask cutoff' setting to 76
  8. UserA, UserB: Verify that the top 30% of the texture is now invisible, but the bottom 70% is totally opaque
  9. UserC: verify that you see no change
  10. UserA: set the 'Mask cutoff' setting to 178
  11. UserA, UserB: Verify that the top 70% of the texture is now invisible, but the bottom 30% is totally opaque
  12. UserC: verify that you see no change
  13. UserA: set the 'Mask cutoff' setting to 255
  14. UserA, UserB: Verify that the texture is now almost completely invisible (except perhaps a strip at the bottom)
  15. UserC: verify that you see no change
  16. UserA: Try to input 'Mask cutoff' settings < 0, and verify that they get slammed to 0 by the build tool UI
  17. UserA: Try to input 'Mask cutoff' settings > 255, and verify that they get slammed to 255 by the build tool UI

Emissive Mask

  1. UserA, UserB, and UserC: login
  2. UserA: Upload this alpha-mapped image to your inventory (if you don't already have it): File:Kart_screenshot_with_G_alpha.png
  3. UserA: Rez a box, select it, and hit 'Edit' to open the build tool. Open the Texture tab of the build tool, and set the texture to the one you just uploaded.
  4. UserA, UserB, and UserC: Verify that the image on the box appears mostly transparent, with a "G" in the middle as an opaque section
  5. UserA: Set the 'Alpha mode' to 'Emissive mask'
    • Verify that the 'Mask cutoff' setting remains hidden
  6. UserA and UserB: verify that the box's appearance has changed. The whole texture should be opaque, but there should be a glowing 'G' in the texture.
  7. UserC: verify that the box's appearance has not changed (and you just see the image as mostly transparent with the opaque 'G')

No Mask (on a texture with an alpha channel)

  1. UserA, UserB, and UserC: login
  2. UserA: Upload this alpha-mapped image to your inventory (if you don't already have it): File:Kart_screenshot_with_G_alpha.png
  3. UserA: Rez a box, select it, and hit 'Edit' to open the build tool. Open the Texture tab of the build tool, and set the texture to the one you just uploaded.
  4. UserA, UserB, and UserC: Verify that the image on the box appears mostly transparent, with a "G" in the middle as an opaque section
  5. UserA: Set the 'Alpha mode' to 'None'
    • Verify that the 'Mask cutoff' setting remains hidden
  6. UserA and UserB: verify that the box's appearance has changed. The whole texture should be opaque, and no 'G' should be visible.
  7. UserC: verify that the box's appearance has not changed (and you just see the image as mostly transparent with the opaque 'G')

Verify functionality of 'Bumpiness' settings

Layout of Bumpiness settings

  1. UserA, UserB, and UserC: login
  2. UserA: Rez a box, select it, and hit 'Edit' to open the build tool.
  3. UserA: In the Texture tab, change the edit mode from "Texture (diffuse)" to "Bumpiness (normal)"
  4. UserA: Verify that the build tool layout looks like the 'Materials > Normal' section from this mockup File:BuildTool_Bumpiness_Shininess.png
  5. UserA: Verify the following default settings:
    • Verify that the Texture preview is empty, with a black-on-grey "X" (indicating that no normal map is set)
    • Verify that the 'Bumpiness' setting is currently 'None'
    • Verify that the 'Mapping' setting is 'Default'
    • Verify that 'Horizontal scale' is 1.0
    • Verify that 'Vertical scale' is 1.0
    • Verify that 'Repeats per meter' is enabled, and is 2.0 (this corresponds to a horizontal scale of 1.0 for a 50cm object)
    • Verify that 'Rotation' is 0.0
    • Verify that 'Horizontal offset' is 0.0
    • Verify that 'Vertical offset' is 0.0
    • Verify that 'Align planar faces' is disabled and cannot be edited
  6. UserA: Deselect the object
  7. UserA, UserB, UserC: verify that the box's appearance is unchanged (was not accidentally edited)

Legacy Bumpiness

  1. UserA, UserB, and UserC: login
  2. UserA: Rez a box, select it, and hit 'Edit' to open the build tool.
  3. UserA: In the Texture tab, change the edit mode from "Texture (diffuse)" to "Bumpiness (normal)"
  4. UserA: Verify that you see the following options under the Bumpiness menu:
    • None
    • Brightness
    • Darkness
    • woodgrain
    • bark
    • bricks
    • checker
    • concrete
    • crustytile
    • cutstone
    • discs
    • gravel
    • petridish
    • siding
    • stonetile
    • stucco
    • suction
    • weave
  5. UserC: Rez a box and edit it with the build tool
  6. For each of the bumpiness menu options *except* for 'None', do the following:
    • UserA and UserC: select the same bumpiness menu option for your object's texture
    • UserA, UserB, and UserC: Verify that UserA's box has the same appearance as UserC's box
    • UserA: Verify that all of the texture mapping controls (scale, offset, rotation, align planar faces, etc.) are disabled in the UI (grayed out) when in this mode

Normal Map Texture Selection

  1. UserA, UserB, and UserC: login
  2. UserA: if you don't already have them in your inventory, upload these two textures to SL
  3. UserA: Rez a box, select it, and hit 'Edit' to open the build tool.
  4. UserA: Set the uploaded diffuse texture as the diffuse texture on your object
  5. UserA: In the Texture tab, change the edit mode from "Texture (diffuse)" to "Bumpiness (normal)"
  6. UserA: Verify that the Texture preview is empty, with a black-on-grey "X" (indicating that no normal map is set)
  7. UserA: Click on the texture icon, then choose the uploaded normal map using the texture picker
  8. UserA: Verify that the Texture preview shows the normal map you selected
  9. UserA: Verify that 'Bumpiness' is now set to "Use Texture"
  10. UserA and UserB: Verify that the uploaded textures appear on the box face at full scale, and are aligned. You should see a large '001' in the middle, due to the normal map effect.
  11. UserC: Verify that you can see the diffuse texture, but no bump map effect
  12. UserA: From the 'Bumpiness' menu, choose 'None'
  13. UserA: Verify that the Texture preview is now empty, with a black-on-grey "X" (indicating that no normal map is set)
  14. UserA, UserB, and UserC: Verify that you can see the diffuse texture, but no bump map effect
  15. UserA: Drag the uploaded normal map from your inventory onto the Texture preview icon
  16. UserA: Verify that the Texture preview shows the normal map you selected
  17. UserA: Verify that 'Bumpiness' becomes set to "Use Texture"
  18. UserA and UserB: Verify that you see both the normal map and diffuse map applied on the rendered box
  19. UserC: Verify that you can see the diffuse texture, but no normal map effect

Normal Map Texture mapping

Normal texture, Default mapping

  1. Set the Texture panel's dropdowns to read:
    • Materials
    • Bumpiness (normal)
    • Mapping: Default
  2. UserA: change the prim's texture to File:TestNormal001.png
  3. UserA: set Horizontal Scale to 2
  4. UserA: set horizontal offset to 0.5
  5. UserA: Verify Repeats per Meter value has automatically changed to 4.0
  6. UserA: Deselect the box
    • UserA, UserB, and UserC: Verify the number of repeats visible on each prim face matches the Horizontal Scale setting: 2 repeats, side-by-side.
  7. UserA: set Vertical Scale to 2
  8. UserA: set Vertical Offset to 0.5
  9. UserA: Verify Repeats per Meter value remains at 4.0
  10. UserA: Deselect the box
    • UserA, UserB, and UserC: Verify the number of repeats visible on each prim face matches the Horizontal Scale plus the Vertical Scale: 4 repeats in a 2x2 grid
  11. UserA: set Horizontal Scale to 1
  12. UserA: set Horizontal offset to 0
  13. UserA: Verify Repeats per Meter value remains at 4.0
  14. UserA: Deselect the box
    • UserA, UserB, and UserC: Verify the number of repeats visible on each prim face matches the Horizontal Scale setting: 2 repeats, one above the other.
  15. UserA: Verify that Rotation controls rotation of the texture relative to vertical. Range is -360° to 360°.
  16. UserA: Deselect the box
    • UserA, UserB, and UserC: verify that for Rotation Degrees edits, the shift is along the texture, not the object face.
  17. UserA: Verify that Align Planar Faces is disabled/greyed out when in the Mapping Default mode

Normal texture, Planar mapping

  1. UserA, UserB, UserC: Login
  2. UserA: Rez a cube and resize it to 1m per side. Reposition the cube so the entire prim can be viewed. Set File:TestDiffuse001.png as the diffuse map, via the texture picker.
  3. UserA: Set the Texture panel's dropdowns to read:
    • Materials
    • Bumpiness (normal)
    • Mapping: Planar
  4. USerA: Set File:TestNormal001.png as the normal map, via the texture picker.
  5. UserA: Verify that the Repeats/Meter value is disabled/greyed out when in the Mapping Planar mode is active
  6. UserA: Set Horizontal Scale to 4
  7. UserA: Set Vertical Scale to 6
  8. UserA: Verify that the read-only Repeats Per Meter changed to 3.0 (yes, this is screwy, but it seems to match the release viewer)
  9. UserA: set horizontal offset to 0.5
  10. UserA: set Vertical offset to 0.5
  11. UserA: Deselect the box
    • UserA, UserB, and UserC: Verify that the diffuse texture appearance remains unchanged
    • UserA, UserB, and UserC: Verify the number of normal map repeats visible on each plane of each prim face matches 4 repeats horizontally, 6 vertically
  12. UserA: Verify that Rotation controls rotation of the normal map relative to vertical. Range is -360° to 360°.
  13. UserA: Deselect the box
    • UserA, UserB, and UserC: verify that for Rotation Degrees edits, the shift is along the texture, not the object face.
  14. Align Planar Faces test TBD

Verify functionality of 'Shininess' settings

Layout of Shininess settings

  1. UserA, UserB, and UserC: login
  2. UserA: Rez a box, select it, and hit 'Edit' to open the build tool.
  3. UserA: In the Texture tab, change the edit mode from "Texture (diffuse)" to "Shininess (specular)"
  4. UserA: Verify that the build tool layout looks like this mockup: File:BuildtoolSpecular-NoTexture.png
  5. UserA: Verify the following default settings:
    • Verify that the Texture preview is empty, with a black-on-grey "X" (indicating that no specular map is set)
    • Verify that the 'Shininess' setting is currently 'None'
    • Verify that 'Glossiness' is hidden in this mode
    • Verify that 'Environment' is hidden in this mode
    • Verify that the 'Color' is hidden in this mode
    • Verify that the 'Mapping' setting is 'Default', and cannot be edited
    • Verify that 'Horizontal scale' is 1.0, and cannot be edited
    • Verify that 'Vertical scale' is 1.0, and cannot be edited
    • Verify that 'Repeats per meter' is 2.0 (this corresponds to a horizontal scale of 1.0 for a 50cm object), and cannot be edited
    • Verify that 'Rotation' is 0.0, and cannot be edited
    • Verify that 'Horizontal offset' is 0.0, and cannot be edited
    • Verify that 'Vertical offset' is 0.0, and cannot be edited
    • Verify that 'Align planar faces' is disabled, and cannot be edited
  6. UserA: Deselect the object
  7. UserA, UserB, UserC: verify that the box's appearance is unchanged (was not accidentally edited)

Legacy Shiny

  1. UserA, UserB, and UserC: login
  2. UserA: Rez a box, select it, and hit 'Edit' to open the build tool.
  3. UserA: In the Texture tab, change the edit mode from "Texture (diffuse)" to "Shininess (specular)"
  4. UserA: Verify that you see the following options under the Shininess menu:
    • None
    • Low
    • Medium
    • High
  5. UserC: Rez a box and edit it with the build tool
  6. Do the following for Shininess settings 'Low', 'Medium', and 'High':
    • UserA and UserC: select the same Shininess menu option for your object's texture
    • UserA, UserB, and UserC: Verify that UserA's box has the same appearance as UserC's box
    • UserA: Verify that all of the texture mapping controls (scale, offset, rotation, align planar faces, etc.) are disabled in the UI (grayed out) when in this mode
    • UserA: Verify that Glossiness, Environment, and Color settings are not visible when in this mode.

Specular Map Texture Selection

  1. UserA, UserB, and UserC: login
  2. UserA: if you don't already have them in your inventory, upload these two textures to SL
  3. UserA: Rez a box, select it, and hit 'Edit' to open the build tool.
  4. UserA: Set the uploaded diffuse texture as the diffuse texture on your object
  5. UserA: In the Texture tab, change the edit mode from "Texture (diffuse)" to "Shininess (specular)"
  6. UserA: Verify that the Texture preview is empty, with a black-on-grey "X" (indicating that no specular map is set)
  7. UserA: Click on the texture icon, then choose the uploaded specular map using the texture picker
  8. UserA: Verify that the Texture preview shows the specular map you selected
  9. UserA: Verify that 'Shininess' is now set to "Use texture"
    • Verify that the floater has new elements, and now looks like File:BuildtoolSpecular-UseTexture.png
      • Verify that Glossiness has a default value of 51
      • Verify that Environment has a default value of 0
      • Verify that Color defaults to white
  10. UserA and UserB: Verify that the uploaded textures appear on the box face at full scale, and are aligned.
    • The stained parts and the scratches should be less shiny than other parts of the texture
  11. UserC: Verify that you can see the diffuse texture, but no shiny effect
  12. UserA: From the 'Shininess' menu, choose 'None'
  13. UserA: Verify that the Texture preview is now empty, with a black-on-grey "X" (indicating that no normal map is set)
  14. UserA: Verify that the build tool layout has reverted to the style shown here: File:BuildtoolSpecular-NoTexture.png
  15. UserA, UserB, and UserC: Verify that you can see the diffuse texture, but no specular map effect
  16. UserA: Drag the uploaded specular map from your inventory onto the Texture preview icon
  17. UserA: Verify that the Texture preview shows the specular map you selected
  18. UserA: Verify that 'Shininess' becomes set to "Use Texture"
  19. UserA and UserB: Verify that the uploaded textures appear on the box face at full scale, and are aligned
  20. UserC: Verify that you can see the diffuse texture, but no specular map effect

Specular Map Glossiness and Environment

  1. UserA, UserB, and UserC: login
  2. UserA: if you don't already have them in your inventory, upload these two textures to SL
  3. UserA: Rez a box, select it, and hit 'Edit' to open the build tool.
  4. UserA: Set the uploaded diffuse texture as the diffuse texture on your object
  5. UserA: In the Texture tab, change the edit mode from "Texture (diffuse)" to "Shininess (specular)"
  6. UserA: Click on the texture icon, then choose the uploaded specular map using the texture picker
  7. UserA and UserB: verify that you see the object with the specular map applied
  8. UserC: Verify that you can see the diffuse texture, but no specular map effect
  9. UserA: Verify these default settings:
    • Glossiness should be 51
    • Environment should be 0
  10. UserA: Increase the Environment setting to 204
  11. UserA and UserB: Verify that the reflected color of the object now includes more of the environment (blue highlights from the sky color)
  12. UserC: verify that you see no change
  13. UserA: Try to enter an Environment setting > 255, and verify that the UI slams it to 255
  14. UserA: Try to enter an Environment setting < 0, and verify that the UI slams it to 0
  15. UserA: Increase the Glossiness setting to 204
  16. UserA and UserB: Verify that the specular highlights are now more 'blurred'
  17. UserC: verify that you see no change
  18. UserA: Try to enter a Glossiness setting > 255, and verify that the UI slams it to 255
  19. UserA: Try to enter a Glossiness setting < 0, and verify that the UI slams it to 0

Specular Map Texture mapping

Specular texture, Default mapping

  1. Set the Texture panel's dropdowns to read:
    • Materials
    • Shininess (specular)
    • Mapping: Default
  2. UserA: change the prim's texture to File:TestSpecular001.png
  3. UserA: set Horizontal Scale to 2
  4. UserA: set horizontal offset to 0.5
  5. UserA: Verify Repeats per Meter value has automatically changed to 4.0
  6. UserA: Deselect the box
    • UserA, UserB, and UserC: Verify the number of repeats visible on each prim face matches the Horizontal Scale setting: 2 repeats, side-by-side.
  7. UserA: set Vertical Scale to 2
  8. UserA: set Vertical Offset to 0.5
  9. UserA: Verify Repeats per Meter value remains at 4.0
  10. UserA: Deselect the box
    • UserA, UserB, and UserC: Verify the number of repeats visible on each prim face matches the Horizontal Scale plus the Vertical Scale: 4 repeats in a 2x2 grid
  11. UserA: set Horizontal Scale to 1
  12. UserA: set Horizontal offset to 0
  13. UserA: Verify Repeats per Meter value remains at 4.0
  14. UserA: Deselect the box
    • UserA, UserB, and UserC: Verify the number of repeats visible on each prim face matches the Horizontal Scale setting: 2 repeats, one above the other.
  15. UserA: Verify that Rotation controls rotation of the texture relative to vertical. Range is -360° to 360°.
  16. UserA: Deselect the box
    • UserA, UserB, and UserC: verify that for Rotation Degrees edits, the shift is along the texture, not the object face.
  17. UserA: Verify that Align Planar Faces is disabled/greyed out when in the Mapping Default mode

Normal texture, Planar mapping

  1. UserA, UserB, UserC: Login
  2. UserA: Rez a cube and resize it to 1m per side. Reposition the cube so the entire prim can be viewed. Set File:TestDiffuse001.png as the diffuse map, via the texture picker.
  3. UserA: Set the Texture panel's dropdowns to read:
    • Materials
    • Shiniiness (specular)
    • Mapping: Planar
  4. USerA: Set File:TestSpecular001.png as the specular map, via the texture picker.
  5. UserA: Verify that the Repeats/Meter value is disabled/greyed out when in the Mapping Planar mode is active
  6. UserA: Set Horizontal Scale to 4
  7. UserA: Set Vertical Scale to 6
  8. UserA: Verify that the read-only Repeats Per Meter changed to 3.0 (yes, this is screwy, but it seems to match the release viewer)
  9. UserA: set horizontal offset to 0.5
  10. UserA: set Vertical offset to 0.5
  11. UserA: Deselect the box
    • UserA, UserB, and UserC: Verify that the diffuse texture appearance remains unchanged
    • UserA, UserB, and UserC: Verify the number of specular map repeats visible on each plane of each prim face matches 4 repeats horizontally, 6 vertically
  12. UserA: Verify that Rotation controls rotation of the specular map relative to vertical. Range is -360° to 360°.
  13. UserA: Deselect the box
    • UserA, UserB, and UserC: verify that for Rotation Degrees edits, the shift is along the texture, not the object face.
  14. Align Planar Faces test TBD

Verify functionality of 'Media' settings

Layout and Default Values of Media Settings

  1. UserA, UserB, and UserC: login
  2. UserA: Rez a box, select it, and hit 'Edit' to open the build tool
  3. UserA: In the Texture tab, change the edit mode from "Materials" to "Media".
  4. UserA: Verify that the build tool layout looks like this mockup: File:BuildToolMediaMode.png
  5. UserA: Verify that the following defaults are set:
    • Verify that the Color appears white
    • Verify that Transparency is 0%
    • Verify that Glow is 0.00
    • Verify that 'Full Bright' is disabled
    • Verify that 'Mapping' is 'Default
      • Verify that 'Horizontal scale' and 'Vertical scale' are both 1.00
      • Verify that 'Repeats per meter' is 2.0 (2.0/meter corresponds to 1.0/face on a 50cm cube face), and can be edited
      • Verify that 'Rotation' is 0.00
      • Verify that 'Horizontal offset' and 'Vertical offset' are both 0.00
    • Verify that 'Align planar faces' is unchecked and cannot be edited (is 'greyed out')'
  6. UserA, UserB, UserC: verify that the box's appearance is unchanged (was not accidentally edited)

Adding, and removing, and aligning media

  1. UserA, UserB, and UserC: login
  2. UserA: Rez a box, select it, and hit 'Edit' to open the build tool
  3. UserA: Change your selection mode to "Select Face" and select only the top face
  4. UserA: In the Texture tab, change the edit mode from "Materials" to "Media".
  5. UserA: Click on the "Choose.." button, and verify that the "MEDIA SETTINGS" floater appears, and looks like this: File:BuildToolMediaSettings.png
  6. UserA: Type "http://secondlife.com" into the Home Page text field in "MEDIA SETTINGS", and hit "Apply"
  7. UserA, UserB, and UserC: Verify that you see the SL website appear on the box's top face
  8. UserA: Change the 'Horizontal offset' value to 0.2
  9. UserA, UserB, and UserC: Verify that the SL website on the box is now slightly offset
  10. UserA: Click on the 'Align' button to align the website with the box's edges
  11. UserA, UserB, and UserC: Verify that the SL website on the box is now aligned with the box edges
  12. UserA: Click on the 'Remove' button to remove the prim media
  13. UserA: Verify that you see a modal dialog, asking to confirm media removal. Click "No"
  14. UserA, UserB, and UserC: Verify that the SL website on the box is unchanged
  15. UserA: Click on the 'Remove' button to remove the prim media
  16. UserA: Verify that you see a modal dialog, asking to confirm media removal. Click "Yes"
  17. UserA, UserB, and UserC: Verify that the SL website has disappeared from the box, and that the changed face is back to the default plywood texture

Media Texture Mapping

Media, Default mapping

  1. UserA, UserB, UserC: login
  2. UserA: Rez a box, and edit one of its faces with the Build Tool
  3. UserA: Set the Texture panel's dropdowns to read:
    • Media
    • Mapping: Default
  4. UserA: Add media to a face on the box, using "http://secondlife.com", as in #Layout_and_Default_Values_of_Media_Settings
  5. UserA: set Horizontal Scale to 2
  6. UserA: set horizontal offset to 0.5
  7. UserA: Verify Repeats per Meter value has automatically changed to 4.0
  8. UserA: Deselect the box
    • UserA, UserB, and UserC: Verify the number of repeats visible on each prim face matches the Horizontal Scale setting: 2 repeats, side-by-side.
  9. UserA: set Vertical Scale to 2
  10. UserA: set Vertical Offset to 0.5
  11. UserA: Verify Repeats per Meter value remains at 4.0
  12. UserA: Deselect the box
    • UserA, UserB, and UserC: Verify the number of repeats visible on each prim face matches the Horizontal Scale plus the Vertical Scale: 4 repeats in a 2x2 grid
  13. UserA: set Horizontal Scale to 1
  14. UserA: set Horizontal offset to 0
  15. UserA: Verify Repeats per Meter value remains at 4.0
  16. UserA: Deselect the box
    • UserA, UserB, and UserC: Verify the number of repeats visible on each prim face matches the Horizontal Scale setting: 2 repeats, one above the other.
  17. UserA: Verify that Rotation controls rotation of the texture relative to vertical. Range is -360° to 360°.
  18. UserA: Deselect the box
    • UserA, UserB, and UserC: verify that for Rotation Degrees edits, the shift is along the texture, not the object face.
  19. UserA: Verify that Align Planar Faces is disabled/greyed out when in the Mapping Default mode

Media, Planar mapping

  1. UserA, UserB, UserC: Login
  2. UserA: Rez a cube and resize it to 1m per side. Reposition the cube so the entire prim can be viewed. Add <test texture> via the texture picker.
  3. UserA: Set the Texture panel's dropdowns to read:
    • Media
      • Mapping: Planar
  4. UserA: Verify that the Repeats/Meter value is disabled/greyed out when in the Mapping Planar mode is active
  5. Rez a cube and resize it to 1m per side. Reposition the cube so the entire prim can be viewed. Add the texture File:TestDiffuse001.png via the texture picker.
  6. UserA: Set Horizontal Scale to 4
  7. UserA: Set Vertical Scale to 6
  8. UserA: Verify that the read-only Repeats Per Meter changed to 3.0 (yes, this is screwy, but it seems to match the release viewer)
  9. UserA: set horizontal offset to 0.5
  10. UserA: set Vertical offset to 0.5
  11. UserA: Deselect the box
    • UserA, UserB, and UserC: Verify the number of repeats visible on each plane of each prim face matches 4 repeats horizontally, 6 vertically
  12. UserA: Verify that Rotation controls rotation of the texture relative to vertical. Range is -360° to 360°.
  13. UserA: Deselect the box
    • UserA, UserB, and UserC: verify that for Rotation Degrees edits, the shift is along the texture, not the object face.
  14. Align Planar Faces test TBD

Materials Loading Test

This test verifies that the viewer can fetch materials data and render it properly.

Obtaining Test Objects

This test requires using 2 test objects which each contain many materials.

Some prepared test objects can be found at Bug Island. There are 2 test linksets, each containing 50 unique materials:

  • MaterialsObject01-50 contains 50 boxes, numbered by 01-50 with matching diffuse, normal, and specular maps.
  • MaterialsObject51-100 contains 50 boxes, numbered by 51-100 with matching diffuse, normal, and specular maps.

Both link sets have prims that spin with llTargetOmega(), in order to make the specular maps more visible. You can modify the script in the root prim to remove this effect.

Materials load when rezzed

  1. Log in
  2. Find a pair of neighboring regions which both allow you to rez objects, and move near the sim border
  3. Rez 'MaterialsObject01-50' in the region your avatar is in
  4. Without much delay, rez 'MaterialsObject51-100' in the neighboring region
  5. Verify that all diffuse/normal/specular maps for both linksets load in a timely manner
    • This may take a short while, since the viewer needs to download 300 separate textures for these objects

Materials load upon login

  1. Complete the #Materials_load_when_rezzed test first
  2. Log out
  3. Login to the location where the objects were rezzed
  4. Verify that all diffuse/normal/specular maps for both linksets load in a timely manner
    • This should be relatively fast, since the viewer should have these textures in its cache

Materials Rendering Test

Note: The following sections should be completed both above and below water. There is a trench directly to the west that replicates all test cases under water

Rendering of Legacy Bumpmaps and Shiny

Note: this was lifted from Render_Correctness_Test

  1. Go to http://maps.secondlife.com/secondlife/Bug%20Island%202/243/247/23
  2. Set your shaders and sun position as indicated on the red sphere at that location.
  3. Verify the spheres render the same as they appear in the picture at that location.
  4. Continue testing at the 5 stations to the South.
  5. Repeat test with 'Advanced Lighting Model' from graphics preferences both enabled and disabled (where allowed)
    • It is expected that 'Advanced Lighting Model' can only be enabled if both 'Basic Shaders' and 'Atmospheric Shaders' settings are enabled

100% Transparent + Glow

  1. Go to http://maps.secondlife.com/secondlife/Bug%20Island%202/240/174/23
  2. Set your shaders as indicated by the red sphere at that location.
  3. Verify that the sphere glows with ALM enabled.
  4. Verify that the sphere does not become opaque and black:
    • Under the Advanced->Rendering Types menu uncheck 'Water'
    • In Me->Preferences->Graphics uncheck and then recheck 'Advanced Lighting Model'
    • The sphere should continue to glow bright white.

Note: When finished be sure to turn the water rendering back on in the Rendering Types menu

Consistent Lighting vs Solid and Alpha Surfaces

  1. Go to http://maps.secondlife.com/secondlife/Bug%20Island%202/239/170/23
  2. The white plane is actually made up of two planes linked together.
  3. The plane on the left is solid, and the plane on the right has some Transparency %.
  4. With Local Lights on Verify under the following conditions that the two planes appear to be one plane:
    • With Basic Shaders enabled.
    • With Atmospheric Shaders enabled.
    • With Advanced Lighting Model enabled under all Sun Settings:
      • Sunrise
      • Midday
      • Sunset
      • Midnight

Gamma Consistency w/ Full Bright + Alpha

  1. Got to http://maps.secondlife.com/secondlife/Bug%20Island%202/241/164/23
  2. Follow the guidelines stated in the text on the red sphere at that location.
  3. ' The cube with the pink circle should not be bright than the solid pink cube.
  4. ' The cube with the target on it should not darken with ALM enabled.

Alpha Modes Rendering

  1. Enter the 'Materials rendering test room' at http://maps.secondlife.com/secondlife/Bug%20Island%202/233/251/42
  2. Click World -> Sun -> Midday to set the viewer lighting
  3. Enable "Advanced Lighting Model" in your Preferences, under Graphics->Advanced
  4. Verify that row of 4 boxes on the northern side roughly match the appearance shown on the inworld 'Alpha modes sample' object
    • 'Alpha blended' should have a smooth transparency transition
    • 'Alpha masked' should have an abrupt transparency transition, with each pixel either fully opaque or fully transparent
    • 'Emissive mask' should look bright in the areas which appear more opaque in the 'Alpha blended' box
    • 'No Alpha' should be fully opaque
  5. Disable "Advanced Lighting Model" in your Preferences, under Graphics->Advanced
  6. Verify that the 'Emissive masked' box now appears the same as the 'No Alpha' box
  7. Verify that the other boxes have not changed their basic appearance

Rendering with Normal Maps

  1. Enter the 'Materials rendering test room' at http://maps.secondlife.com/secondlife/Bug%20Island%202/235/248/46
  2. Click World -> Sun -> Midday to set the viewer lighting
  3. Enable "Advanced Lighting Model" in your Preferences, under Graphics->Advanced
  4. Look at the wall of test objects to the East, and confirm the appearance of each row roughly matches the sample screenshot on the left side. Each Row includes a different alpha type (labelled by floating text)
    • The 1st row, 'no specular', has objects which contain a normal map but have specularity disabled. These objects should have a totally matte appearance.
    • The 2nd row, 'low shiny', has objects which contain a normal map and use the legacy 'Low Shiny' setting. These objects should be slightly shiny, mostly for 'environment' reflections.
    • The 3rd row, 'medium shiny', has objects which contain a normal map and use the legacy 'Medium Shiny' setting. These objects should be slightly shinier than the 'low shiny' row, mostly for 'environment' reflections.
    • The 4th row, 'high shiny', has objects which contain a normal map and use the legacy 'Medium Shiny' setting. These objects should be slightly shinier than the 'medium shiny' row, mostly for 'environment' reflections.
    • The 5th row, '0 gloss, 0 env', has objects which contain a normal map and the '001' specular map, but has both glossiness and environment set to 0. These objects should look identical to the 'no specular' row.
    • The 6th row, '51 gloss, 0 env', has objects which contain a normal map and the '001' specular map, and has both glossiness=51 and environment=0. These objects should by mostly matte, except for shiny '001' sections in the upper-left and lower-right corners.
    • The 7th row, '51 gloss, 0 env, red', has objects which contain a normal map and the '001' specular map, and has both glossiness=51, environment=0, and a red specular color. These objects should appaer similar to those in the '51 gloss, 0 env' row, except that the shiny '001' parts should have a red hue.
    • The 8th row, '51 gloss, 200 env', has objects which contain a normal map and the '001' specular map, and has both glossiness=51 and environment=200. These objects should appaer metallic all over, and have the shiny '001' lettering in the upper-left and lower-right corners.
    • The 9th row, '0 gloss, 200 env', has objects which contain a normal map and the '001' specular map, and has both glossiness=0 and environment=200. These objects should appear metallic all over, but should only have the shiny '001' lettering in the upper-left and lower-right corners when there is a direct reflection from a light source (you have to move your camera around to see it).
    • At this time, some of the sample images are unavailable, due to rendering bugs.
  5. Disable "Advanced Lighting Model" in your Preferences, under Graphics->Advanced
  6. Look at the wall of test objects to the East, and confirm these changes:
    • All 'emissive mask' objects (far right column) now appear identical to the 'alpha none' objects next to them
    • All normal maps are missing
    • Rows 1, 5, 6, 7, 8, 9 (that is, all except for low/medium/high shiny rows) should all look identical to each other. None of them should appear shiny.
    • For each of rows 2-4 (low/medium/high shiny), the 'opaque', 'alpha none', and 'emissive mask' objects appear identical to each other (and look shiny)
    • For each of rows 2-4 (low/medium/high shiny), the 'alpha blend' and 'alpha mask' objects all appear non-shiny

Materials Rendering on HUDs

Normal and specular maps should not render on objects which are attached as HUDs, due to the lack of lighting sources at the HUD layer (objects tend to render as full bright). However, some of the new alpha modes should effect rendering of HUD objects.

  1. Take a copy of 'Materials test HUD', which is rezzed at http://maps.secondlife.com/secondlife/Bug%20Island%202/229/253/23 - this object is a linkset of small boxes, with plenty of floating text.
  2. Enable "Advanced Lighting Model" in your Preferences, under Graphics->Advanced
  3. Wear the 'Materials test HUD' object from inventory. By default, it should attach to the 'Center' HUD attachment point
  4. If you have trouble seeing the floating text about each HUD object (the text can be crowded), set 'UI size' to 0.75 under Preferences->Advanced
  5. Position your camera so that you can see the attachments clearly - I used a blank-textured large prim as background
  6. Verify that the HUD appears like this screen shot: File:Materials_test_HUD_appearance.png
    • Verify that no normal or specular maps appear with the '001' pattern
      • The boxes labelled with 'X gloss, Y env' should be identical to the 'no specular' boxes on the far left column
      • Each of the 'no specular' boxes on the far left column should appear identical to the non-brick 'Water particle 1' objects on the top row
      • In the top row, "No Alpha 'Water Particle 1' with legacy bricks" should look the same as "Emissive Masked 'Water Particle 1' with legacy bricks"
    • Verify that 'Opaque '001' diffuse map with legacy bricks' in the upper-left corner is the only box that has a visible 'bricks' pattern (this is legacy bumpiness)
    • Verify that the other 'with legacy bricks' objects in the top row do *not* have any bumpiness effect, and that the alpha modes render as labelled
      • These objects should have the same appearance as the non-'brick' objects on the right side of the first row
    • Verify that Alpha mode renders correctly
      • Verify that all of the 'opaque' boxes (with the 001 texture) appear fully opaque
      • Verify that all of the 'Alpha blended' objects appear alpha blended (semitransparent, with soft edges)
      • Verify that all of the 'Alpha masked' objects appear alpha masked (semitransparent, with hard edges)
      • Verify that all 'emissive mask' boxes match their corresponding 'alpha none' boxes, since all HUD objects render as fully emissive ('full bright')
    • Verify that legacy shiny objects appear darker than the others
      • Opaque-rendered objects (no alpha, emissive mask, or opaque) set to low/medium/high shiny boxes appear darker than the other boxes
      • The shading should be more severe with increasing shiny level: 'high shiny' objects should be darkest, while 'low shiny' objects should not be so dark
  7. Disable "Advanced Lighting Model" in your Preferences, under Graphics->Advanced
  8. Verify that the HUD appears like this screen shot: File:Materials_test_HUD_appearance.png
    • Appearance should match what you saw when "Advanced Lighting Model" was enabled

Materials Rendering on Rigged Meshes

TODO

Rendering of Environment and Exponent Masks

TODO