trueBlue wrote: ↑16 Jul 2020, 23:39
Something is super wrong with this update!
I have 3 cubes in the scene
Nothing selected
I ran Convert with Instancing/Scene
SceneInstancingProblem.png
I took a peak at some of the scene materials and noticed materials from your Cube widget which was not even loaded.
I see. I suspect you had nothing selected then ran it with selected option. don't think I accounted for that.
Edit:
Yep, 87 changes here...
Edit:
I did take it into account. It's just wrong, fix is on the way...
Properly handles no selection used with selected only option for the Compiled to D3D and Instancing scripts. Also caught rare bug of trying to instance materials before any materials have been created.
This fix is only for the Unofficial Update version of the material converter.
Material Instance Converter was not working with objects that had several materials.
Fixed by moving the logic into a loop of command nodes.
Also added status feedback.
Run the attached script to install the fix. Fix will disappear after a context reset. Not permanent.
I found your ConstantAlpha shader using your Collada Importer
I have added this shader to your D3D Material Converter and got it working for Transparency
DiffuseStrength.png (24.31 KiB) Viewed 756 times
.
Now I see it is missing DiffuseStrength and SpecularStrength
Got the VertexColorShade to work
Looks like there needs to be more than one ModelShader
Also, would be better if the shaders included their Move and Scale attributes