vsg-dev / osg2vsg

Adapter library for converting OpenSceneGraph Images and 3D models to VulkanSceneGraph
MIT License
43 stars 15 forks source link

Added support for Material uniform mimicing osg::Material values #24

Closed tomhog closed 5 years ago

tomhog commented 5 years ago

Here's changes to add support for osg Material. I've added new ShaderModeMask values. If an osg Material is present the Material mask is added. We use that to indicate we should create a vsg Uniform and add the appropriate descriptorlayout.

vsg-dev commented 5 years ago

I have manually merged the changes into a tomhog-topic-multitexturing-ii branch.

In testing I got mixed results:

osg2vsg dumptruck.osgt works osg2vsg lz.osgt crashes

On the console I get a message: Compiling GraphicsStage 0x56076d9b6b70 Error: vsg::ShaderModule::create(...) failed. requires Shader with valid spirv contents. Segmentation fault (core dumped)

I haven't looked into this yet. I am going to move back to the InterfaceImplementat and get some IO support implemented and merge this data back into the tomhog-topic-multitexturing-ii branchest to help with debugging.