-
Notifications
You must be signed in to change notification settings - Fork 55
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
texture size limitation #70
Comments
default mode in current (v5) implementation doesnt depend on that limitation. As soon as you specify
RMMV behaviour kicks in and starts combining 4 textures into one big. There are other constants. Please look at them. In v4x its by default, but you can easily switch it off. |
But then, of course, you need to raise number of used texture units. |
well, what I'm trying is to change in atlas frame coordinates to out of 1024x1024 range:
If I do so, this frames just does not show up. Also, I put
versions used:
|
with
and with:
|
Default mode in v5 should work, you dont need that line. Please make a small demo for me, I'll debug it. |
This is the line that makes pixi-tilemap work with any textures: https://github.com/pixijs/pixi-tilemap/blob/master/src/Constant.ts#L7 |
And here is it in build: https://github.com/pixijs/pixi-tilemap/blob/master/dist/pixi-tilemap.js#L206 pixi_tilemap.Constant = {
maxTextures: 4,
bufferSize: 2048,
boundSize: 1024,
boundCountPerBuffer: 4,
use32bitIndex: false,
SCALE_MODE: PIXI.SCALE_MODES.LINEAR,
DO_CLEAR: true
}; Well, it seems that I forgot to publish the build :) |
OK, I re-published it in published 2.0.1 in npm. |
I have updated to 2.0.1 and it was finally solved when I added
If I change it to |
@jjhesk look in readme, it has special setting for uint32 stuff |
thanks. i got it resolved @ivanpopelyshev |
is it possible to somehow hack the 1024x1024 texture limitation?
I'm currently using 2048x3040 and the tiles outside 1024x1024 is just ignored.
The text was updated successfully, but these errors were encountered: