FrameBuffer scaling in Doom3

Discuss programming topics that involve the OpenGL API.
Post Reply
revelator
Posts: 2609
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

FrameBuffer scaling in Doom3

Post 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 ?.
Productivity is a state of mind.
Post Reply