RenderToolbox / RenderToolbox3

Matlab toolbox for managing graphics rendering for psychophysics
Other
5 stars 2 forks source link

Include Bump Map textures from Collada and Blender #35

Closed benjamin-heasly closed 7 years ago

benjamin-heasly commented 8 years ago

33 added support for diffuse and specular textures from Collada.

We would also like to support bump map textures.

Here is an example scene which uses bump map textures. When exported to Collada, some element contain elements that point to bump map textures:

          <extra>
            <technique profile="FCOLLADA">
              <bump>
                <texture texture="lata_de_lixo_bump_jpg_001-sampler" texcoord="UVMap"/>
              </bump>
            </technique>
          </extra>

So the bump maps are not standard Collada. They use the FCOLLADA extension to Collada.

The FCOLLADA documentation is hosted at khronos, which maintains Collada itself. So maybe we're fine with investing in FCOLLADA.

benjamin-heasly commented 8 years ago

For Version 3, we are planning to use Assimp and mexximp for loading scene files, instead of Collada.

It looks like Assimp already supports FCOLLADA bump maps, so this will become a non-issue.

benjamin-heasly commented 7 years ago

Closing this issue. It should be addressed in RenderToolbox4: https://github.com/RenderToolbox/RenderToolbox4