Skip to content

Material Test Cases

bsupnik edited this page Jan 15, 2016 · 3 revisions

Standard scenery objects.

All objects in this test case sub-section are standard scenery objects, e.g. instancing is not indicated.

3 compatible materials

3 Materials are specified:

  • Non-draped, tex A, shiny rat 0.5, poly os off
  • Non-draped, tex A, shiny rat 1.0, poly os off
  • Non-draped, tex A, shiny rat 1.0, poly os on Expected behavior: project exports, ATTR_shiny_rat and ATTR_poly_os used to change materials on the fly.

2 compatible materials + draping

3 Materials are used:

  • Non-draped, tex A, shiny 0.5
  • Non-draped, tex A, shiny 1.0
  • Draped, tex B, shiny 0.7 Expected result: project exports, draped uses different texture than day time, ATTR_shiny_rat used for main section and SPECULAR used for draped.

2 incompatible materials

2 Materials are used:

  • Non-draped tex A
  • Non-draped tex B Expected result: failure. Textures A and B are not compatible within the same non-draped texture slot.

2 incompatible draped materials

3 materials are used:

  • Non-draped tex A
  • Draped tex A
  • Draped tex B Expected result: failure. Textures A and B can't both be used for draping

2 incompatible draped attributes

3 materials are used:

  • Non-draped tex A, specular 1.0
  • Draped tex B, specular 0.5
  • Draped tex B, specular 0.7 Expected result: failure. The draped texture can't have two different specularities.

Illegal use of panel texture

2 Materials are used:

  • Non-draped texture A
  • Panel texture B Expected result: failure. Panel texture is illegal in scenery objects.

Instanced Scenery Tests

These tests apply to an instanced scenery object

Two materials, Same Specularity, different surface

The instanced object has two materials:

  • Texture A, specularity 0.5, asphalt surface
  • Texture A, specularity 0.5, concrete surface Expected result: object exports, GLOBAL_specular used to set up specularit,y ATTR_hard appears in object.

Two materials, Variable Specularity

The instanced object has two materials:

  • Texture A, specularity 0.5
  • Texture A, specularity 1.0 Expected result: export fails, specularity mismatch in an instanced object.

Two materials, With Draping

The instanced object has two materials:

  • Texture A, not draped, specular 0.5
  • Texture B, draped, specular 1.0 Expected result: export passes, specularity and texture set up separately for draped vs not draped objects.

Aircraft Object Test Cases

All objects in this test case sub-section are aircraft-attached objects, with a valid panel texture set up for the project.

Two materials, Panel Test

The object has two materials:

  • One panel texture and
  • One object texture Expected result: export passes, using ATTR_cockpit

Two Material Draping Rejection Test

The object has three materials:

  • One panel texture
  • One object texture
  • One draped Expected result: Export fails, draping is not allowed in aircraft-attached object.

Two Material Manipulator Rejection Test

The object has two materials:

  • One panel texture
  • One object texture. The object texture mesh has a manipulator set; the export fails due to a manipulator in a non-cockpit object.

Cockpit Object Test Cases

Two Material Manipulator, Solid Camera Test

Two Material Draping

Two Material Hard Surface

Clone this wiki locally