question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make it more intuitive to smooth textures

See original GitHub issue

Using the WebGL renderer (canvas untested):

When I set the base texture to use nearest neighbour interpolation, it works, except when a child container has cacheAsBitmap = true (in which case it renders aliased textures), which is a massive problem because of the performance.

This took ages to find (by chance)- I hope that I’ve been helpful!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
kaansoralcommented, Sep 2, 2016
canvas{
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

This also works in Chrome, which is pretty interesting (interesting to someone who doesn’t know how exactly things fit together)

And, for retina screens, resolution:2 achieves the same effect

0reactions
lock[bot]commented, Feb 24, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make it more intuitive to smooth textures · Issue #2902 · pixijs ...
Hello! To set the smoothing of a cached as bitmap texture you can do the following: myCachedAsBitmapElement._cacheData.sprite.baseTexture.
Read more >
How To Improve Your Skin Texture in Five Simple Steps - Foreo
Silky Smooth: 5 Ways To Improve Your Skin Texture · 1. Slather on the SPF · 2. Exfoliate Exfoliate Exfoliate · 3. Try...
Read more >
How to Smooth Uneven Skin Texture on Your Face for 2022
Not only can retinoids give you smoother, brighter skin, but they can also boost collagen production and strengthen the walls of your pores....
Read more >
5 Tips to Help You Get Rid of Textured Skin | Nacach Wax
Having troubled with textured skin? Read on for five tips you can use to help you get rid of textured skin.
Read more >
Multi-scale selective image texture smoothing via intuitive ...
This simple interface is made possible by first generating three-scale intermediate filtered images (i.e., high, medium and low) and then performing breadth- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found