Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

adam_

Faking low resolutions

This topic is 5302 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Do you remember those old games like chrono trigger and zelda for snes. They used a really low resolution, probably 320x240. The game I am working on now is using 640x480 and I feel that is way to much to get the same look as previously mentioned games. Most monitors wont support a resolution below 640x480 in fullscreen. Is there someway to somehow fake a low resolution. Like using four pixels on the screen to display one from the game? Another idea I tought of right now is that there is probably someway to scale up images. So that a 32x32 tile will be 64x64 on screen? When I think about it again thats probably the same thing... Anyone has any ideas on this? If you do please share them with me =) Examples in code is always nice if that is possible. Thanks!

Share this post


Link to post
Share on other sites
Advertisement
in addition to using a 2x2 block of pixels for each "pixel", make sure you change the movement so everything moves by 2 pixels at a time...

and turn off filtering if you''re using OpenGL or D3D, so your big "pixels" don''t get blurred around the edges.

Share this post


Link to post
Share on other sites
If you use OpenGL, using the glOrtho function, you can set the "resolution" to whatever you want. It doesn''t really change the window''s resolution, but it changes the orthographic resolution within OpenGL.

Share this post


Link to post
Share on other sites
Well if you''re using SDL, you could render all your stuff into an offscreen 320x240 buffer then you can resize the buffer''s image and then blit that to a 640x480 screen. To resize the buffer all you have to do is create a 640x480 image and then copy one pixel from the 320x240 image and put it as 4 pixels 640x480 image. That will give you a pixelated look, but it''s probably not what you''re looking for.

Share this post


Link to post
Share on other sites
I did this to achieve a retro look and feel for a game I made last month. I rendered everything to a 256x256 texture, and then rendered it as a textured quad (centered). I think it looked pretty retro.

I had to use a square texture because D3D needed it to be square. In my case, square screen was acceptable. If not, you could make simple conversion functions that convert 320x240 coordinates centered in a 512x512 texture. Then render it appropriately, to show the 320x240 that you rendered to.

Share this post


Link to post
Share on other sites
Most monitors do support low resolutions (320x240, etc.), just not directly. They do exactly what you''re talking about - by displaying 320x240 images stretched onto a 640x480 resolution.

So if you create a 320x240 fullscreen OpenGL window, it will have only 320x240 pixels on the screen (and each one will be huge), but actually the monitor will be in 640x480 mode, displaying each pixels using 4 real pixels.

Or at least that''s how it works with my monitor''s driver (standard Windows one).

---
shurcooL`

Share this post


Link to post
Share on other sites
quote:
Original post by maxd gaming
Just make all your graphics huge and pixelate them alittle bit actually I am quite serious, it may not be the best approach but it would work



Not if you rotate or skew them it won''t.

Share this post


Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!