Pixel Shader Issue

Posted By: Dooley

Pixel Shader Issue - 08/08/20 20:41

I am using the Oldschool Pixel Shader for my current project. I want to make a 64x64 pixel window, but allow it to be bigger on screen.

So I set the window to 640 x 640, then apply the Oldschool Pixel Shader at 64 x 64.

It works, and each "pixel" is 10 x 10 actual pixels. however it seems to start halfway through a "pixel," so the first "pixel" in each column or row is only 5 x 5 or 5 x 10 pixels.

[Linked Image]

Is there any way to remove this offset so the full pixel begins in the corner?
Posted By: txesmi

Re: Pixel Shader Issue - 08/09/20 10:35

That happens on scaled up panels. If that is the case there is nothing you can do but change the drawing system.

I would render the level over a 64x64 bitmap and scale it up by a post process view.
Posted By: Dooley

Re: Pixel Shader Issue - 08/09/20 13:19

That's a better idea. I ended up making it 650 x 650 and putting a 5 pixel wide frame around it. The game jam allowed for having frames, so that was an easy remedy laugh

[Linked Image]
Posted By: Raveeshyui

Re: Pixel Shader Issue - 08/28/20 11:46

Thanks for the info!
© 2024 lite-C Forums