Comments (14)
If you are bundling, try calling this method to enable deprecated settings:
http://pixijs.download/dev/docs/PIXI.html#.useDeprecated
from pixi-projection.
Interesting. Thanks, i'll check it.
from pixi-projection.
If you fix this problem, please let me know, thank you very much.
from pixi-projection.
I met the save problem.
Here it is.
BatchRenderer refactoring to increase performance (#6162)
PIXI.BaseTexture._id batch local field has been changed to
_batchLocation
You can use PIXI.useDeprecated()
as a temporary solution, or fix it in Sprite2dRenderer
.
from pixi-projection.
OK, right, according to examples - it actually works with 5.2, it only produces one deprecation. Yes, I know about it , I was the one who put that deprecation there.
@Vi-jay
What does not work for you?
from pixi-projection.
For me it also doesn't work if paired with Pixi 5.2.
More specifically if I try to project the following simple sprite:
const backgroundSprite: PIXI.projection.Sprite2d = new PIXI.projection.Sprite2d(PIXI.Texture.WHITE);
backgroundSprite.tint = 0xff0000;
backgroundSprite.alpha = 0.25;
via the mapSprite
method, nothing is displayed. The same code works correctly with older versions of Pixi (5.1.5).
from pixi-projection.
But but but.. it works here: https://pixijs.io/examples/?v=dev#/plugin-projection/basic.js , with dev and with 5.2.0 , just fine.
I believe pixi-projection in examples is the same as here.
How can it not work in your case?
I'm gonna publish new version in weekend but I really don't know whether it will work for you :( I really need more information.
from pixi-projection.
Do you see that deprecation in console, @Shyiy ? maybe you use pixi without deprecations somehow..
from pixi-projection.
It seems to be somehow related to imports/require.
I use parcel.js, and if I try to set up a clean project containing only the same code as in the demo at https://pixijs.io/examples/?v=v5.2.0#/plugin-projection/quad-homo.js, with on top the following to import and use PIXI and projection, then it doesn't show the projection as explained, only the 4 vertices to be dragged around. No message in the console.
import * as PIXI from "pixi.js";
globalThis.PIXI = PIXI;
import "pixi-projection";
from pixi-projection.
try require('pixi-projection')
instead.
from pixi-projection.
Enabling the deprecated settings did the trick for me and now everything works! Thank you!
from pixi-projection.
OK, special for you, I made half-cooked 3.6 that does have _id
swapped to _batchLocation
, thus fully compatible with 5.2 without deprecations.
If it doesn't work - try remove node_modules and package.lock and reinstall everything from scratch.
If it doesn't work again - then sorry, I we dont support your webpack configuration, that is unknown configuration
, that you didnt specify, my telepathy doesn't work on it (when usually it works, seriously).
from pixi-projection.
Thanks for the quick support. That's actually not needed since as I reported before, enabling the deprecated settings makes it work correctly now.
The problem was caused by my bundler combined with myself not knowing about the http://pixijs.download/dev/docs/PIXI.html#.useDeprecated function that needed to be called to include the needed deprecations. Without calling it the pixi-projection library would just silently fail.
from pixi-projection.
Oh, good, its deprecations after all :)
from pixi-projection.
Related Issues (20)
- Pixi Projection for Graphics HOT 3
- Cannot read properties of undefined (reading 'start') HOT 2
- wrong type for Container3d : ObservablePoint3dĀ HOT 1
- typo
- orthographic camera projection
- 0.4.4 spine support HOT 4
- Importing the plugin (webpack) HOT 4
- IEuler typea need fix and to be replace by data point.
- The bug in 2D Plane
- PixiJS Deprecation Warning HOT 1
- Pixi.js v7.x & pixi-spine compatibility HOT 8
- An error occurs when using Assets.add
- README.md links broken HOT 1
- Pixi 6.1.2 - Uncaught TypeError: Cannot read property 'start' of undefined HOT 4
- TilingSprite works in isometric mode but not in perspective mode HOT 5
- Bunnies in the sky HOT 3
- pixi-projection with sprite elevations HOT 20
- How can I decide which diagonal to use ? HOT 4
- Mesh in 2d projections
- Where can i find the docs ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pixi-projection.