-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import without Node.js #16
Comments
PIXI moved away from supporting PIXI.extras. Have you tried pixi-cull with |
Having the same exact issue here |
The bundling system for pixi-cull is old. I need to redo it. I'll try to get it to it this week. |
I updated the projected to v2.0.1. It is now accessible via the window.Cull variable. See the README.md for more information. Let me know if you run into any problems! |
First of all, thanks for the library! Really important for optimization so thanks for putting this together and maintaining.
I started setting this up last night following the code snippet in the README and it's not quite working as presented for non Node.js users like myself.
README setup tutorial:
☝️ the latest release link in README maps to pixi-viewport, not the releases for pixi-cull btw
Running this setup, it can't find
Cull
inPIXI.extras
. In fact, thePIXI
object does not haveextras
. I can't see anywhere in the source where this gets added toPIXI.extras
- it looks like it just creates classesSimple
andSpatialHash
in the global scope, so I tried calling those. ConstructingSimple
usingvar viewFrustumCuller = new Simple();
also results in an error:To get this to load I had to rip out all of the top-level export wrappers in the
pixi-cull.js
build. It now loads but not sure if it's working yet.So my question here is: is this a bug or am I setting this up incorrectly?
Mirroring #3 and reopening because issue still remains. Perhaps it's just a matter of updating the docs for ease of understanding how to set this up. Would be great if this was namespace scoped like other pixi libraries: for example,
pixi-filters
when I includepixi-filters.js
I can access everything withPIXI.filters.GlowFilter
.Using latest version of PIXI:
6.0.0-rc.3
on WebGL 2The text was updated successfully, but these errors were encountered: