Setting BaseTexture.resolution requires BaseTexture.update() prior to any effect
See original GitHub issueIn this pen, a 100x100 and a 200x200 image is loaded via resource loaded, with the latter set to resolution=2 and the former defaulting to resolution=1. Displaying sprites from these textures displays two equally sized textures on a renderer that has resolution=2.
I then use a PIXI.Graphics to generate the same sized textures and set resolution=2 on the second’s baseTexture. Without calling baseTexture.update() after setting the resolution, the second texture is rendered at the wrong size.
I think that his means that either BaseTexture.resolution should be a property setter that calls this, or, the documentation on the field should be updated to advise the required call to .update(), or, the field should be readonly.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8
Top Results From Across the Web
Setting BaseTexture.resolution requires BaseTexture.update ...
In this pen, a 100x100 and a 200x200 image is loaded via resource loaded, with the latter set to resolution=2 and the former...
Read more >PIXI.BaseTexture - PixiJS API Documentation
A Texture stores the information that represents an image. All textures have a base texture, which contains information about the source.
Read more >pixi.js-legacy - UNPKG
baseTexture =false] - Only used for child Sprites if stageOptions.children is set. 1029, * to true. Should it destroy the base texture of...
Read more >Determine when a PIXI texture is loaded to clone it
I have no way of determining whether it's loaded or not! Error: Texture Error: frame does not fit inside the base Texture dimensions:...
Read more >Environmental Effects in 3D Graphics with XNA Game Studio 4.0
In this article you will know about environmental effects in 3D graphics with XNA Game Studio 4.0. You can further learn the fundamentals...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yeah, its a weird state. So
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.