Babylon native error "reverse depth buffer is not currently implemented"

We just started getting this error when rendering via babylon native:

Error: reverse depth buffer is not currently implemented
   at clear (app:///Scripts/api.spectrum-renderer.js:152420:11)
   at activate (app:///Scripts/api.spectrum-renderer.js:71945:11)
   at _prepareFrame (app:///Scripts/api.spectrum-renderer.js:31774:9)
   at _renderForCamera (app:///Scripts/api.spectrum-renderer.js:40345:11)
   at _processSubCameras (app:///Scripts/api.spectrum-renderer.js:40411:11)
   at render (app:///Scripts/api.spectrum-renderer.js:40719:11)
   at scene.render (app:///Scripts/api.spectrum-renderer.js:152347:11)
   at renderSpectrumAssetAsync (app:///Scripts/index.js:231:9)
   at Generator.prototype.next (native code)

Im no sure what we are doing that utilizes reverse depth buffer. Recently we added refractionTexture to create dynamic refractions.

We are using the latest Babylon Native at this commit
commit 8d61e153094c147ecb3979e20ce4c4a914048dd3
and BabylonJS 7.3.2

I see there have been some updates to Native since then. I’ll try pulling in the latest native and see if the error goes away.

@bghgary

cc @BabylonNative

We had some issues with Babylon Native updated to Babylon.js 7.0, could you guys verify if that works with Babylon.js 6.49.0?

@bghgary , could this be related to the things you were fixing?

Sorry for the slow response. This should not be related to my changes. @sebavan @Evgeni_Popov Anyone know if refraction uses reverse depth buffer?

We don’t set any value to useReverseDepthBuffer in Babylon, except false at initialization time, so I’m not sure why this variable is true for you…

That is the question. what is causing that value to be set to true. I will have to step backward in our builds to see when the problem started and will report back. As said the only thing we added was dynamic reflection/refraction texture stuff.

If there is a repro, it should be relatively straight-forward to determine why the flag is set.

1 Like