Sign in to follow this  

Pixel percision on rotation for renderer

Recommended Posts

Ok maybe that title doesn't make sense?

The idea is tied to this -

Basically when the sprite isn't drawn on a perfect pixel location, it gets blurred, not very nice looking.

Counter this with CSS3 - translate: rotateZ()  - here's a comparison attached, the teal background is pixi.js, the white is CSS3 DOM.

What can I do to get pixi to render like CSS3? I'm willing to dig into the renderer code base but I'd need some advice.



Share this post

Link to post
Share on other sites

I noticed that changing the renderer resolution to 2 makes a huge improvement. Granted it also makes everything a lot bigger, but at least the rendering is very smooth - 

Screen Shot 2016-02-24 at 9.38.29 PM.png


edit- Heh... i set the canvas CSS zoom property to 50%, works like magic


Share this post

Link to post
Share on other sites

cool, I also have a regular 1080p secondary screen that I used to look at the quality, this retina support fix works on the regular display too so I'll stick with this for my project(s)

does it have a significant impact on performance? I imagine it would once the scene(s) starts getting busy and complex? at least more so than resolution: 1 ? 

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.