Author Topic: Stretch FrameBuffer  (Read 847 times)

Offline Gatobot14

  • int
  • **
  • Posts: 64
    • View Profile
Stretch FrameBuffer
« on: June 05, 2015, 06:15:35 pm »
its posible to stretch the frame buffer to fit different resolutions?
im working in full screen mode 800x600 but i wonder if its worth
trying bigger resolutions, strectching the buffer so i can keep
working internally with 800x600
Thanks.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11749
    • View Profile
    • http://www.jpct.net
Re: Stretch FrameBuffer
« Reply #1 on: June 05, 2015, 07:28:50 pm »
Not really...and to be honest, I don't the point either. 800*600 in fullscreen will be scaled up by the monitor anyway. Or maybe I got this wrong...can you give an example of what you have in mind?

Offline Gatobot14

  • int
  • **
  • Posts: 64
    • View Profile
Re: Stretch FrameBuffer
« Reply #2 on: June 05, 2015, 10:10:05 pm »
i mean rescaling the image from buffer to fit the desire resolution(having the base image
800x600), but i think doing this will mess up the mouse input......
if you render a 3d scene the viewport will be scaled to the size of the buffer
but im blitting textures so this never happen
anyway it was just a question....

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11749
    • View Profile
    • http://www.jpct.net
Re: Stretch FrameBuffer
« Reply #3 on: June 06, 2015, 12:39:06 am »
I just don't get it...the monitor will scale it up anyway. So what's the point in rendering in 800*600 and then upscale it into a framebuffer of the monitor's native resolution? Where's the difference except that it's slower?

Offline Gatobot14

  • int
  • **
  • Posts: 64
    • View Profile
Re: Stretch FrameBuffer
« Reply #4 on: June 06, 2015, 06:01:29 pm »
sorry i find where i was mistaken yes indeed the framebuffer size will be one especified,
and in full screen it wil be rescaled automatic , my concern was to rescaling a part of the frambuffer :P, im just blittin an area of 800x600 and if the resolution grows there will be an empty space surrounding the framebuffer beacuse nothing is render beyond 800x600,but even rescaling that part of the buffer to fill the empty spaces just going to mess with my mouse input.
i dont know what i think of this in first places...after all reading the post it fells weird so i guess im going to keep working with 800x600 and perhaps 1024x768 anyway i think im overthinking this reslution thing.
sorry for the confussion and thanks for kepping track of thigs like this  ::)