FrameBuffer scaling in Doom3

Discuss programming topics that involve the OpenGL API.

Moderator: InsideQC Admins

FrameBuffer scaling in Doom3

Postby revelator » Sat Sep 29, 2018 7:01 am

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.
User avatar
Posts: 2592
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Return to OpenGL Programming

Who is online

Users browsing this forum: No registered users and 1 guest