Code Monkey home page Code Monkey logo

Comments (5)

DerKoun avatar DerKoun commented on May 12, 2024

Hi, This is Derkoun, of bsnes-hd.
HD Mode 7 currently dose not use 3D hardware. So there are no texture filtering options.
When I get back to working on bsnes-hd (hopefully soon) I have some other things to do, especially performance optimizations. But after that I have a fork with Vulkan/OpenGL support on the top of my list, as it would improve both performance and quality, including options for anisotropic filtering. However, I will need help from someone experienced with those graphics APIs, as I already came into this with little-to-no C++ skills, and learning 3D graphics on top of that is something I doubt I'll manage...

from bsnes.

WhiteMagicRaven avatar WhiteMagicRaven commented on May 12, 2024

Hello, understand, i have very minimalistic OpenGL and Direct3D knowledges, so i can't be helpful ((( here, maybe some helpers come, i don't know any for just now(
maybe Yaba Sanshiro developers can be helpful in future if they decided to implement hardware acceleration . Just for now two emulators Bsnes and Yaba Sanshiro have similar approach on my opinion =)
devmiyax/yabause#726

from bsnes.

WhiteMagicRaven avatar WhiteMagicRaven commented on May 12, 2024

mgba-emu/mgba#1748

from bsnes.

Screwtapello avatar Screwtapello commented on May 12, 2024

I assume "linear magnification and anisotropic minification" are what graphics APIs typically call bilinear filtering and anisotropic filtering. These operations are built into 3D graphics hardware, and if you have a textured rectangle, it's fairly easy to draw it in 3D and let the GPU do the filtering for you.

It's quite difficult for bsnes because SNES games don't draw "a textured rectangle", they draw ~240 textured rectangles the width of the screen and one scanline high, and bsnes has compare them all and guess (a) are these all part of the same shape, and (b) if so, what was it supposed to look like? For some games (like F-Zero) it does indeed turn out to be a textured rectangle, but often it's not. For example, Mario Kart often shows two different views in the top and bottom halves of the screen, there's some tennis game that uses the same background for the horizontal surface of the court and the vertical bleachers behind it, and Terranigma does a weird curvy thing that's not any simple shape.

And even if bsnes could reliably guess the size, shape and orientation of the original textured quad, implementing those texture filters in software would be a chore, and extracting the texture to render it on the GPU would be even more of a chore.

I'm afraid I'm going to mark this "wontfix" - although I'd actually like to see it happen, realistically there's no chance anyone will have the time and energy to make this happen. If somebody does show up, great, but I'm not holding my breath.

from bsnes.

DerKoun avatar DerKoun commented on May 12, 2024

GPU based rendering for Mode 7 scenes that simulate simple perspectives (no curving and so on) is on my to-do list for the long term. There is much to prepare first and I will need help with the GPU stuff, plus I first have to get back to working on bsnes-hd at all. So we will get there... eventually

from bsnes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.