Menu

Test_models

Javier Taibo
Attachments
Test1.jpg (23417 bytes)
Test2.jpg (6042 bytes)
Test3.jpg (12184 bytes)
Test4.jpg (23177 bytes)
Test4b.jpg (27707 bytes)
Test5.jpg (6837 bytes)
Test6.jpg (35357 bytes)

Maya2OSG package includes some scenes/models to test and validate the exporter and the importer.

This page describes the contents and the meaning of each test.

TEST 1. Geometry

File:

test_geometry.ma

Features tested:

  • Polygon meshes
  • Per face vertex normals (hard edges and soft edges) -> OpenGL per vertex normals
  • Single and double sided surfaces. Surface orientation -> OpenGL backface culling
  • Two-side lighting model

Exporter supports all these features. Importer does not consider backface culling, all the geometry is created with default behaviour (double sided).

TEST 2. Transformation hierarchy

File:

test_trans.ma

Features tested:

  • Transformation hierarchy with pivot points displaced
  • Geometry instances

Geometry instanciation are not exported correctly. Instead, geometry is replicated at each instance. Importer creates an additional Maya transform for each imported osg::Geode.

TEST 3. Animated Transforms

File:

test_trans_anim.ma

Features tested:

  • Animated Transforms

Animations are not correctly exported if they include shear transformations or pivot point for scaling and rotating is moved.

TEST 4. Textures

File: test_texture.ma

Features tested:

  • Texture/material sharing between polygon meshes
  • Repeating modes (wrap/mirror/clamp)
  • Texture transformation matrix (Repeat UV, Offset, Rotate UV)
  • Texture coordinates (UV sets)

Textures applied in Maya with projection nodes are not currently supported. Only regular UV sets are supported.

Some differences between Maya and OSG/OpenGL in considering clamping with texture coordinates inside texture space and texture matrix transformation. Figures above show some differences (left: Maya, right: OSG).

Clamp can be configured to Maya default color or clamping to edge in the exporter option box (see [Maya2OSG_User_Manual]).

TEST 5. Lighting

File:

test_lighting.ma

Features tested:

  • Directional lights
  • Point lights
  • Spot lights

All light sources work correctly, with the limitations of OpenGL lighting.

TEST 6. Animated lights

File:

test_lighting_anim.ma

Features tested:

  • Motion paths
  • Animation curves
  • Animations applied to transforms that contain light sources and geometry.

Correctly exported all the animations, with the sampling step supplied in the export options.

TEST 7. Particle systems

File:

test_particles.ma

TO-DO


Related

Wiki: Main_Page
Wiki: Maya2OSG_User_Manual
Wiki: Polygonal_geometry

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.