Giter Site home page Giter Site logo

Comments (4)

manu-unter avatar manu-unter commented on May 1, 2024

I just had a similar artifact when trying out the Bin example:

image

One thing that caught my eye is the fact that the actual content only occupies the lower left quarter of the window, both for me and for @jordwalke.

To me, this looks a lot like a scaling issue where the two dimensions are off by a factor of 2 exactly. Maybe even this has something to do with layout pixels vs native pixels, i.e. what we would call devicePixelRatio on the web? I know for a fact that my devicePixelRatio is exactly 2.

I am not familiar enough yet with the way we create the window and scale the content, but I might be able to take a look into it once I took a deep dive through the whole thing. I'll have to do that anyway to figure out how to implement our texture atlas :)

from revery.

bryphe avatar bryphe commented on May 1, 2024

To me, this looks a lot like a scaling issue where the two dimensions are off by a factor of 2 exactly. Maybe even this has something to do with layout pixels vs native pixels, i.e. what we would call devicePixelRatio on the web? I know for a fact that my devicePixelRatio is exactly 2.

Yes, I think this is definitely the issue! I added some code to handle this (the difference in 'screen size' and 'pixel size' in PR #66 ).

I believe that PR addresses this - but I don't have an environment where this reproduces (my Surfacebook has a high DPI, but the screen size == pixel size, so I don't hit this issue on it). Would be interested to see if it is fixed w/ latest master.

I am not familiar enough yet with the way we create the window and scale the content, but I might be able to take a look into it once I took a deep dive through the whole thing. I'll have to do that anyway to figure out how to implement our texture atlas :)

I hope that PR #66 helps give some ideas! But of course, let me know if you have any questions 😄 I could definitely use your WebGL skills - the text rendering here is so limited compared to what you implemented for Oni's renderer.

from revery.

manu-unter avatar manu-unter commented on May 1, 2024

Wow, that was quick 🐎

I just tested on the newest master and didn't have the issue anymore:

screenshot 2018-11-26 at 09 42 04

Thanks for fixing! I guess you can close the issue now ✌️

from revery.

bryphe avatar bryphe commented on May 1, 2024

Sweet, thanks for confirming the fix @Cryza ! 💯

from revery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.