Questions tagged [pixel-perfect]
71 questions
33
votes
2 answers
Opengl pixel perfect 2D drawing
I'm working on a 2d engine. It already works quite good, but I keep getting pixel-errors.
For example, my window is 960x540 pixels, I draw a line from (0, 0) to (959, 0). I would expect that every pixel on scan-line 0 will be set to a color, but no:…

scippie
- 2,011
- 1
- 26
- 42
11
votes
6 answers
Pixel perfect (firebug addon) alternative
I've been using pixel perfect for quite a long time, and grown to love it (despite it's annoyances). Now, when pp is no longer compatibile with fx 6, I'm looking for a tool to replace it.
I found x-precise and am one step from buying it, but I don't…

Litek
- 4,888
- 1
- 24
- 28
9
votes
2 answers
Pixel Perfect Collision detection between a custom view and an ImageView
I have a CustomView and an Image view. The CustomView is a ball that moves around the screen and bounces off the walls. The Image is a quarter circle that you can rotate in a circle on touch. I am trying to make my game so that when the filled…

0xOsiris
- 247
- 2
- 17
8
votes
2 answers
How to deal with line-height while coding a pixel perfect design
Here is a screenshot of the example design I made up:
There is a 10px space between the bottom of the letters and the red line. I'm trying to replicate this with the following code:
font: normal 40px arial;
border-bottom: 3px solid…

archvile
- 169
- 4
- 8
5
votes
1 answer
Pixel perfect: choosing the right correction (OpenGL)
I was trying to draw pixel perfect bitmaps using quads in OpenGL... and to my surprise, a very important row of pixels was missing: (green is ok, red is bad)
The sizes of the quads were 30x30 px, with the red 2x2 in the top left corner.
Can…

thehorseisbrown
- 390
- 2
- 14
5
votes
1 answer
Getting reliable renders on Matlab R2014b+ (HG2)
I can't manage to make Matlab new graphics engine (HG2) display lines and markers in a reliable way, meaning a way that is identically displayed / rendered everywhere in the axes / screen.
To demonstrate the issue, I've coded a simple script (see…

Parker Lewis
- 323
- 1
- 9
4
votes
1 answer
IE6/IE7 Input Submit Box Model Dilemma
Some strange bug I came accross today when creating a generic button class to style everything from divs to inputs. It seems that most browsers use a different box model when it comes down to input[type=submit].
Most modern browsers (ie9+, ff,…

Ozzy
- 10,285
- 26
- 94
- 138
4
votes
3 answers
AS3 pixel perfect drawing?
When I'm use:
var shape:Shape = new new Shape();
shape.graphics.lineStyle(2,0);
shape.graphics.lineTo(10,10);
addChild(shape);
I get the black line I want, but I also get grey pixels floating around next to them. Is there a way to turn off whatever…

Weavermount
- 746
- 10
- 19
3
votes
1 answer
How to do pixel perfect collision on many sprites in cocos2d?
in my app I have a player and many enemies (about 100+)..I don't want to use CGRects because it doesn't fits to the enemies. Is there any example how to do pixel perfect collision detection in cocos2d with many sprites?
Some explaination would be…

cocos2dbeginner
- 2,185
- 1
- 31
- 58
3
votes
0 answers
How to setup font typography to make it pixel perfect?
I am working on this site now, its a store of my friend with retro computers. He wants me to add 8-bit like font. I searched web and found Munro font. First I saw it on demo page and it looked great. I embeded it on https://retro-cloud.eu and didn't…

Marecky
- 1,924
- 2
- 25
- 39
3
votes
0 answers
Cocossharp Xamarin Pixel perfect collision detection
Im making a game for Android and iOS using Cocossharp in Xamarin. I have 2 CCSprites and I need to know if a pixel with color on one sprite is overlapping a pixel with color on the other sprite, but I cant seem to find a map or array containing the…

Illedan
- 414
- 4
- 14
3
votes
1 answer
Wpf Dpi and pixel-perfect WritableBitmap
I have a GPU rendering engine that produces textures. These textures are copied into a WriteableBitmap. This Bitmap is used as an ImageSource in a normal Windows Presentation Foundation view.
Now, I set my dpi to 120, that is, I enabled the 125%…

Wilbert
- 7,251
- 6
- 51
- 91
3
votes
3 answers
Accounting for Rounding errors Grid
I am in search for a pixel perfect grid. I have tried the major frameworks but both have obvious rounding errors. I was hoping to start a conversation on how you guys account for such errors when trying to achieve pixel perfect design.
Chrome seems…

w3bMak3r
- 882
- 8
- 13
2
votes
2 answers
How do you do pixel perfect Collisions in GODOT ENGINE
In Godot, from what I can see, you must hand draw polygon colliders or use a primitive shape like a capsule. I need to do pixel perfect collisions with hundreds of frames on a sprite sheet. Thus I need to be able to have the bit mask of the sprite…

Have Mercy
- 51
- 3
2
votes
1 answer
can't get sharp lines on html canvas element
I have been having quite a time trying to get pixel perfect straight lines on a canvas element. I have tried a number of solutions that have been proposed on other stackoverflow issues and on an issue opened on the WebGL github repo. I'm still not…

JohnRDOrazio
- 1,358
- 2
- 15
- 28