blendweight0 missing

Sep 23, 2012 at 5:18 PM
Edited Sep 23, 2012 at 9:44 PM

in the current build (commit 49f8f297d357) i get a runtime-error, that blendweight0 is missing for all non-weighted models, but i´m not using a sinned-effect fore these ...

in the changelog i can´t see which change forces the error - i can´t se how to workaround to get my application back running.

it seems to be a problem with shadow-casting and default depth-material - it hits me randomly on any model that casts shadow --> not entirely random - only on a model that´s mesh has not material assigned although the model has one ...

if i comment out any other skinned model it works fine ... i´m trying to get out more

Coordinator
Sep 24, 2012 at 12:55 AM
Edited Sep 24, 2012 at 2:18 AM
This is probably a shader switching problem. Can you narrow down the problem by graduately removing the models until it disappear, and give me a minimum setup of the scene that repro the issue?
Sep 24, 2012 at 7:03 PM

after playing a while i could reproduce the problem with only using your sample-project and condensingit into one scene-file ;-). i replaced Hello World.xaml with the one below. the clou seems to be, that both models are out of current view.

 

<?xml version="1.0" encoding="utf-8" ?>
<!-- Hello World.xaml -->
<Scene xmlns="http://schemas.microsoft.com/nine/2011/xaml">
  <BirdEyeCamera />
  <DirectionalLight DiffuseColor="1, 1, 1" CastShadow="true" Direction="-1, -1, -1" />
  <Group Name="Group1">
    <Model
      Source="{ContentReference ../Models/dude}" 
      Transform.Position="6.9, 0, -25.7" >
      <Model.Material>
        <MaterialGroup>
          <DiffuseMaterialPart />
          <DirectionalLightMaterialPart />
          <ShadowMapMaterialPart />
          <SkinnedMaterialPart />
        </MaterialGroup>
      </Model.Material>
    </Model>
  </Group>
  <Group Name="Group2">
    <Model
      Source="{ContentReference ../Models/AlphaPalm}"
      Transform.Position="27.6, 0, -29.9" >
      <Model.Material>
        <MaterialGroup>
          <DiffuseMaterialPart />
          <DirectionalLightMaterialPart />
          <ShadowMapMaterialPart />
        </MaterialGroup>
      </Model.Material>
    </Model>
  </Group>
</Scene>

 

 

Coordinator
Sep 25, 2012 at 7:13 AM

Fixed. It is caused by the DepthMaterial when drawing the shadowmap.

Sep 25, 2012 at 7:15 PM
Edited Sep 25, 2012 at 7:41 PM

exceptions have gone ...

thx