v2 addons crash if 3D camera is used - RendersToOwnZPlane Issue

Not favoritedFavorited Favorited 0 favourites
  • 3 posts
From the Asset Store
Template for a basketball game with a 3D aspect (illusion of 3D)
  • 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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • As ever, please file an issue for such reports so we can properly investigate them.

  • Issue filed here:

    github.com/Scirra/Construct-bugs/issues/8686

    I used the sdk v2 example drawingPlugin addon to demonstrate the bug with 3d camera.

    Thanks!

    Foozle

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)