Skip to content

How Might Integer Coordinates Work If At All #16

Answered by PsichiX
zicklag asked this question in Q&A
Discussion options

You must be logged in to vote

oh actually that you mention it, i had similar problems with few pixel based demos, i've played with the idea of integer coords and abandoned it because there were problems on the layouting side, precision related bc of multiplying and dividing big and small numbers, a lot of mess iirc (integer idea was bad from the get go but i wanted to test it anyway to confirm that it is problematic).
then i've played with rounding scalar numbers and i've found out that if you leave all virtual-space coords calculations as it does now, and round coords only on the renderer side then all values are prefectly aligned with pixels - i've working example in oxygengine, i'm even working with it at this very…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zicklag
Comment options

@PsichiX
Comment options

@zicklag
Comment options

Answer selected by zicklag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants