MLB
April 27, 2023, 12:06pm
#1
2 weeks ago, I sent my client the application to review and approve it, today they gave me the OK to compile the final version, but suddenly I get this, and part of my plane disappears to turn on lights (it’s an internal configurator of planes)
I need to fix this as soon as possible since I have to turn in the work
Hey @MLB ,
do you have a script with a function called
This seems related this this:
opened 06:58PM - 25 Apr 23 UTC
bug
area: graphics
Activating VSM shadows breaks up in default lit shader (without clustered lighti… ng)
# Error log
``` terminal
ERROR: 0:855: 'getShadowCoordPersp' : no matching overloaded function found
850: getLightDirPoint(light4_position);
851: dAtten = getFalloffLinear(light4_radius, dLightDirW);
852: if (dAtten > 0.00001) {
853: dAtten *= getSpotEffect(light4_direction, light4_innerConeAngle, light4_outerConeAngle, dLightDirNormW);
854: dAtten *= getLightDiffuse(litShaderArgs.worldNormal, dViewDirW, dLightDirW, dLightDirNormW);
855: getShadowCoordPersp(light4_shadowMatrix, light4_shadowParams, dLightDirW);
856: float shadow4 = getShadowSpotVSM32(SHADOWMAP_PASS(light4_shadowMap), dShadowCoord, light4_shadowParams, 15.0, dLightDirW);
857: dAtten *= mix(1.0, shadow4, light4_shadowIntensity);
858: dDiffuseLight += dAtten * light4_color;
859: dHalfDirW = normalize(-dLightDirNormW + dViewDirW);
860: dSpecularLight += getLightSpecular(dHalfDirW, dReflDirW, litShaderArgs.worldNormal, dViewDirW, dLightDirNormW, litShaderArgs.gloss, dTBN) * dAtten * light4_color* litShaderArgs.specularity;
```
### Steps to Reproduce
1. Add any light to scene.
2. Change shadow type to any `Varience Shadow Map` type.
3. getShadowCoordPersp is broken and objects with shadows are invisible.
# Screenshot

Please see if the workarounds work for you till we fix this. Thanks.
Just to confirm - are you using VSM shadows, and clustered lighting is disabled?
MLB
April 27, 2023, 12:11pm
#5
I also notice that in the editor, most of the parts of my plane are not shown. This used to work OK
MLB
April 27, 2023, 12:14pm
#6
YES, that’s how i’m using
MLB
April 27, 2023, 12:22pm
#7
In version 1.61.3, I don’t have this error, PLEASE, don’t remove this version, until you fix the error.
As a temp workaround for the Editor, add this to the end of the URL:
?use_local_engine=https://code.playcanvas.com/playcanvas-1.61.3.js
eg
https://playcanvas.com/editor/scene/1004487?use_local_engine=https://code.playcanvas.com/playcanvas-1.61.3.js
MLB
April 27, 2023, 12:39pm
#10
By the way, you can check this work, which was made for PIPER at this URL
go a little bit down here
4 Likes
MLB
April 27, 2023, 12:41pm
#11
The interior version is about to be updated to a new version that includes night lighting, and that is where I got the error
1 Like
We’ve released 1.62.2 to the Editor which fixes the crash in the viewport but the shadows don’t look correct (see 1.62.2 VSM shadows from spotlights have no blur · Issue #5286 · playcanvas/engine · GitHub )
Please select 1.61.3 for publishing and the Editor settings (for the launch tab) for the short term while we investigate this issue
2 Likes