Coder Social home page Coder Social logo

Comments (14)

elishacloud avatar elishacloud commented on June 8, 2024

@LethalManBoob, I was able to get AntiAliasing to work using the AA feature dxwrapper while using d3d8to9. Check out the attached files: d3d8.zip

It does not work with all games but it does work with Serious Sam and Raymond 3 (which looks significantly better with AA!)

Also you can try out SMAA for other games that may not work with dxwrapper's AA.

from d3d8to9.

LethalManBoob avatar LethalManBoob commented on June 8, 2024

Big issue here. AA wont work on serious sam the second encounter. It goes to d3d9 but no aa. I dont know exactly how to correctly install dxwrapper for serious sam. I need help. thanks.

Their tutorial didnt work for me.

from d3d8to9.

elishacloud avatar elishacloud commented on June 8, 2024

Yes, the AA in dxwrapper is just trying to force AA on. Some games won't work if you force it on, so I fail gracefully and just disable AA to ensure the game still runs. Try SMAA. It should work even if dxwrapper does not.

from d3d8to9.

LethalManBoob avatar LethalManBoob commented on June 8, 2024

"but it does work with Serious Sam"

This confuses me because it dosen't work on the first encounter ether.

it works with firestarter so i know im not doing anything wrong.

from d3d8to9.

elishacloud avatar elishacloud commented on June 8, 2024

The issue with Serious Sam (both 1 & 2) is that it requires the backbuffer to be lockable, so this flag D3DPRESENTFLAG_LOCKABLE_BACKBUFFER cannot be disabled. However (as seen here) the D3DPRESENTFLAG_LOCKABLE_BACKBUFFER flag needs to be disabled before anti-aliasing will work.

Unless you can show me something that works without d3d8to9 that does not work with d3d8to9 then I recommend you close this issue. If you want anti-aliasing you can use SMAA. It does work with this game, I tested it.

from d3d8to9.

LethalManBoob avatar LethalManBoob commented on June 8, 2024

Im very sure that XII (Ubisoft game/UE2) dosent work with d3d8tod3d9. When i last tried it a few months ago It didnt work. instant CTD.

from d3d8to9.

elishacloud avatar elishacloud commented on June 8, 2024

I did a fix last night for AA. Attached is a fixed dll so that you can use AA with d3d8to9. Can you try with this: d3d8.zip

I tried several games with AA and d3d8to9 using this patched dll and they all worked for me. If that does not work can you give the exact steps you perform that are not working?

from d3d8to9.

LethalManBoob avatar LethalManBoob commented on June 8, 2024

from d3d8to9.

elishacloud avatar elishacloud commented on June 8, 2024

The AA in dxwrapper has some limitations. It uses standard Direct3D9 MultiSampling a.k.a. Full-Scene Antialiasing (see here). There are two limitations to the standard Direct3D9 MultiSampling:

  1. It does not support locking the backbuffer. See my comments here.
  2. It only supports the SwapEffect discard (D3DSWAPEFFECT_DISCARD). See documentation here.

However there are games that require backbuffer locking or other swap effects. For example Serious Sam requires locking the backbuffer.

The SMAA listed above uses shading to do AA after the screen is drawn. This allows AA to work regardless of the backbuffer or the SwapEffect. I am planning to switch to this method later when I have time.

If you have other issues or want more data on dxwrapper please close this issue and open an issue on dxwrapper issues page. We want to keep this forum for d3d8to9 only.

BTW: for the "XII (Ubisoft game/UE2)" game mentioned above do you mean this game XIII?

from d3d8to9.

LethalManBoob avatar LethalManBoob commented on June 8, 2024

Unless you are doing SMAA2TX or SMAAS2x (smaa supersampled with msaa) i wouldn't bother. It messes up text to use anything but, unless that can be avoided of course, in which case i wouldent mind, assuming it is of very high quality. I suppose you could attempt to force raw ssaa + smaa if that dosent require a buffer back lock, which is equally as good as SMAA S2x

Anyway no i don't have any issues with dxwrapper that dont already have here so i shant be discussing it further.

And yes i did mean XIII.

from d3d8to9.

elishacloud avatar elishacloud commented on June 8, 2024

Comments from here:

Msaa still does not work with serious sam? Am I missing something?
Through the nvidia drivers.

I tested with Serious Sam: The First Encounter. Without d3d8to9 then enabling MSAA via Nvidia Control Panel works fine. However with d3d8to9 enabling MSAA has no effect.

from d3d8to9.

LethalManBoob avatar LethalManBoob commented on June 8, 2024

Great work. It now works perfectly on serious sam first encounter and firestarter. However the second encounter still yields no results.

from d3d8to9.

elishacloud avatar elishacloud commented on June 8, 2024

However the second encounter still yields no results.

@LethalManBoob, I believe I found the issue. Try this update: d3d8.zip

from d3d8to9.

LethalManBoob avatar LethalManBoob commented on June 8, 2024

However the second encounter still yields no results.

@LethalManBoob, I believe I found the issue. Try this update: d3d8.zip

I know this is odd. But I swear the issue had since been fixed at some point, but I cannot remember if it was, either way, this most certainly does fix the issue. Thanks.

from d3d8to9.

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.