Page 1 of 1

FrameBuffer scaling in Doom3

Posted: Sat Sep 29, 2018 7:01 am
by revelator
This one has me up the walls.
Im working with the Darkmod Guys on moving out fbo resolution from the frontend renderer to the framebuffer code, but we hit a bit of a snag with that.
Atm it's scaled in BeginFrame by multiplying r_fboresolution by the screen width and height before cropping, but moving it out of there has been a test in futility.
Even if i recreate the exact same conditions it causes a number of undesirable things to happen, like scaling the gui instead of the frambuffer :shock:

The only other example of an engine with this feature is fhDoom and he does it in the same place as we do it now, so it would seem it is not exactly an easy fix.
Anyone got an idea about how we might pull it off ?.