Hi all,
I am writing an application that allows user clip model. I have used Explicit Rendering to improve performance. However, when I create ClippingPlane to clip model and zoom it will throw the bug as the video below.
I realize that If I turn off Explicit Rendering then create ClippingPlane, it will work well.
I want to clip model within enable Explicit Rendering. Do you know the root core of the problem ?
This is the error message in the first video:
DeveloperError: This object was destroyed, i.e., destroy() was called.
Error
at new DeveloperError (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:7483:11)
at ShaderProgram.throwOnDestroyed (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:13729:11)
at beginDraw (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:39460:17)
at Context.draw (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:39554:3)
at DrawCommand.execute (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:22484:11)
at executeCommand (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:221608:15)
at performPass (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:221800:7)
at executeCommands2 (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:221918:5)
at executeCommandsInViewport (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:222271:3)
at Scene4.updateAndExecuteCommands (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:222085:5)
Sometime, It raises another error message:
TypeError: Cannot read properties of undefined (reading '_target')
TypeError: Cannot read properties of undefined (reading '_target')
at UniformSampler.set (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:24591:21)
at ShaderProgram._setUniforms (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:25517:17)
at continueDraw (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:39491:17)
at Context.draw (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:39555:3)
at DrawCommand.execute (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:22484:11)
at executeCommand (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:221608:15)
at performPass (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:221800:7)
at executeCommands2 (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:221918:5)
at executeCommandsInViewport (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:222271:3)
at Scene4.updateAndExecuteCommands (http://localhost:5173/node_modules/.vite/deps/cesium.js?v=70de511a:222085:5)