I have previously found that it is possible to browse shadow filter files in real time in the SDK visualization. But when I use the code to load the Filter file, the material object of one of the filters is null, the situation is as follows:
This is to view the shadow filter file in the SDK visual editor:
The specific error seems to be caused by the material object of the DirectionalLightShadowFilter class being null.
I noticed that there are two constructors, one of which does not handle anything. Is it because of this constructor that the material object is not initialized? This is just my guess. Due to my limited ability, I can only hope that the SDK maintainer has time to fix this bug. I am using SDK 3.2.4.
Oh, ok, but my problem is that the Material object of the DirectionalLightShadowFilter is null when the .j3f file is loaded in Java code, but it is normal to browse the j3f file directly in the SDK editor.