[No] N64 style 3-point texture filtering

Moderator: GZDoom Developers

N64 style 3-point texture filtering

Postby RuscoIstar » Fri Jul 16, 2021 5:19 pm


After testing Doom CE (https://www.moddb.com/mods/doom-ce) I couldn't be more but excited to see this texture rendering style implemented in GZDoom. After a while my excitement became a slight dissapointment, particularly as I took a dive into the implementation found in the 3pointfiltering.pk3 file as it seemingly hacks in a shader filter in the rendering pipeline at the cost of breaking texture upscaling, filtering and automap rendering.

I have been wondering if this type of texture filtering could be natively added to GZDoom and so I did a quick research. This blog post (http://filthypants.blogspot.com/2014/12 ... n.html?m=1) talks about the feasibility of emulating this N64 hardware feature in software and provides HLSL and GLSL example implementations. Furthermore, there are some shadertoys which take a texture and spit out a pre-filtered texture (https://www.shadertoy.com/view/3lBXWc) (https://www.shadertoy.com/view/wdy3RW) (https://www.shadertoy.com/view/Ws2fWV)

I identify 3 insertion points: API call, hires texture cache and shader pipeline. AFAIK GZDoom calls in bilinear/trilinear filtering from the API and builds upscaled precached hires textures via dll libraries, correct? This later option would be less desirable since it would call for more memory usage and not bring the sharpest results. About the second one, I'm not savvy enough on OpenGL/Vulkan to talk meaningfully about it. Nonetheless, I think it would be a legitimately good feature, specially for N64 styled graphics as it would give them the intended look.

(Also, yeah, before some people shoot me off, I normally use no texture filtering, maybe resizing, and yes I also think bilinear/trillinear looks too smudged and ugly with Doom's low res original assets, but for Doom 64 the fuzziness just looks OH SO RIGHT :wub: )
User avatar
Joined: 15 Sep 2019
Location: Mexico City
Discord: RuscoIstar#2063
Twitch ID: rodylg
Github ID: rodylg
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: Intel with Vulkan Support

Re: N64 style 3-point texture filtering

Postby Redneckerz » Tue Jul 20, 2021 4:04 am

GZDoom isn't trying to emulate the feature set of Doom 64 - There are several other projects that do, however using custom forks. I would suggest you start there.
User avatar
To it's ports i may have seen
Spotlight Team
Joined: 25 Nov 2019
Discord: Redneckerz#8399
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: Intel (Modern GZDoom)

Re: N64 style 3-point texture filtering

Postby SuaveSteve » Wed Jul 28, 2021 1:59 pm

This is an awesome suggestion. More options are always nice for users, especially with the many preferences over texture filtering.
Joined: 05 Jul 2014

Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 2 guests