2
\$\begingroup\$

I wanna get some old art style (256 color, dithering, etc) in modern OpenGL in an effective way. Maybe using a low resolution (320x240) rendered at a bigger space so that the pixels looks "bigger?" I'd just like to fake this old style on modern GPUs.

\$\endgroup\$
  • 1
    \$\begingroup\$ Color palettes and upscaling your 320x240 image to your (most likely) 1920x1080 screen can easily be done in a postprocessing shader. A toon shader/cel shader should be a good starting point. \$\endgroup\$ – tkausl Mar 3 at 23:53
  • \$\begingroup\$ So you talking about render the scene in a 320x240 buffer and after render like a image in bigger resolution... This would be a opmized way to do in Real time? \$\endgroup\$ – Gobbs Mar 4 at 0:06
  • 4
    \$\begingroup\$ All of your questions have been answered elsewhere, low resolution, limited colors, and although not on an SE site, there's a blog post about dithering \$\endgroup\$ – Bálint Mar 4 at 0:59
0
\$\begingroup\$

To get pixelated look, you can use OpenGL's framebuffer functionality to render to texture (glFramebufferTexture2D etc.), then draw that texture as a rectangle with nearest-neighbour scaling.

\$\endgroup\$
  • 1
    \$\begingroup\$ This answer would greatly benefit from a short example! \$\endgroup\$ – Alexandre Vaillancourt Apr 4 at 12:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.