Hey all,
Maybe
Ashley will see this. I am working on an sdk v2 plugin where I am extending ISDKWorldInstanceBase.
For my case, I have a working plugin where I render a 3D model using IRenderer drawMesh during runtime.
All works if 3D Camera is not used. Once 3D camera is added, the following crashes c3 once the object comes into view:
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'RendersToOwnZPlane')
at C3.Instance.RendersToOwnZPlane (instance.js:1:5438)
at C3.Layer._DrawInstances_3DCamera (layer.js:1:27107)
at C3.Layer.Draw (layer.js:1:26170)
at C3.Layout._DrawLayerList (layout.js:1:24177)
at C3.Layout.DrawMain (layout.js:1:23029)
at C3.Runtime._Render (runtime.js:1:45802)
at C3.Runtime.Render (runtime.js:1:44962)
Looks like we need a way to set RendersToOwnZPlane to false?
Anyone have a work around to the above or is there a setting I am missing which would prevent this issue?
Note that simply using drawMesh during runtime works with 3d camera. In this case I believe it is an issue with the _sdkInst being null in:
RendersToOwnZPlane() {
return this._sdkInst.RendersToOwnZPlane()
}
Any help or knowledge on this is appreciated!
Foozle