Jump to content

DemOnJR

Premium
  • Posts

    208
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by DemOnJR

  1. 9 hours ago, TheEqualizer said:

    Implemented soft shadows using variance shadow mapping. Shadows add quite a bit of cost when many dynamic objects are visible, so this is a good candidate for multithreading.

    spacer.png

    There is decent self-shadowing as well.

    spacer.png

    Looks amazing

  2. If the ``Cached statistics refreshed every 5 minutes.`` includes Online Players then move it to 10 minutes to be more accurate the numbers, because metin2 is taking some time to update the table for all the players.

  3. 3 hours ago, HFWhite said:

    if we disable backbuffer and add anti aliasing CEF Browser stops working

    Try to enable it back when the browser is starting, and when you close it disable it again... idk
    I do not use CEF anymore.

  4. On 11/27/2023 at 2:09 PM, MysteriousDev said:

    I got interested in this topic so I tried it myself. What I've found you can pretty easily enable antialiasing on dx9.

    Search for:

    int CGraphicDevice::Create

    Now scroll down where the parameters of ms_d3dPresentParameter are set.

     

    Add those two lines

    ms_d3dPresentParameter.MultiSampleType = D3DMULTISAMPLE_8_SAMPLES;
    ms_d3dPresentParameter.MultiSampleQuality = 0;

    And now that's a riddle. I haven't got too much time for a research, but ms_lpd3d->CheckDeviceMultiSampleType tells that multiSampling is indeed available, and it sets the quality to 1. But I can't get it working with it, so I left the quality set to 0, it still looks good enough, IDK what would be the difference.

     

    Also there's one more thing to set in the parameters, and I don't know the long term effects of this change, but it looks like it works just fine, like I said I don't have too much time for doing research atm.

    You'll be having a "D3DERR_INVALIDCALL" error if ms_d3dPresentParameter.Flags are set to D3DPRESENTFLAG_LOCKABLE_BACKBUFFER, and I don't know the answer for now, maybe I'm missing something, but setting the flag to 0 does the job.

    After the device is created with success you must write last line to make it work:

    ms_lpd3dDevice->SetRenderState(D3DRS_MULTISAMPLEANTIALIAS, TRUE);

     

    And now you can enjoy those SMOOTH EDGES:

      Reveal hidden contents

    .png

     

    This works with DX9 and for the screenshot use https://metin2.dev/topic/31916-uninstalling-libjpeg-and-taking-screenshots-with-directx9/

    Edit:
    Bug when you open an second client the FSAA/MSAA will be DISABLED on the first Window,
    Solution ... edit this option to TRUE

    StateManager.cpp
    
    void CStateManager::SetDefaultState()
    {
    ...
    #ifdef DX9_FSAA_DEFAULT_FIX
    	SetRenderState(D3DRS_MULTISAMPLEANTIALIAS, TRUE);
    #else
    	SetRenderState(D3DRS_MULTISAMPLEANTIALIAS, FALSE);
    #endif
    ...
    }

    Bug CEF
    Unsolved.

    • Good 1
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.