Jump to content

pixi-layer & pixi-projection


Recommended Posts

Hello everyone,
I am trying to replicate 3D Cards example in react https://pixijs.io/examples/#/plugin-projection/cards.js but I am facing a problem with pixi-layer https://github.com/pixijs/layers, somehow I cannot get acces to PIXI.display it is always undefined.
I also had issues with linking pixi-projection with pixi.js but I solved it like this. Can someone give me some input how to proceed, thanks a lot :)

import * as pixi from "pixi.js";
import * as projection from 'pixi-projection';

const PIXI = {...pixi, projection, application}

export default PIXI;

I am using these versions

"@pixi/layers": "^1.0.8",  
"pixi-projection": "^0.4.2",
"pixi.js": "^6.1.1",

 

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...