Jump to content
Logo
Your Metin2 zone for C++, Python, Lua.

Better Quality Screenshots with DirectX9


GameCore

Recommended Posts

Hello. As you know, the LibJPEG library in Metin2 is only useful for taking screenshots. Other than that, it doesn't have any duties.
Those who have Directx9 and want to take better quality screenshots with this method can follow this guide carefully .
Those who use Directx8 can try updating the code I will give according to Directx8, I did not have the chance to try it.

Make sure you are determined before following the steps here. Because as a result of these operations, you will no longer have the libjpeg library, and the screenshot files will reach larger sizes than the jpg file, depending on the quality. (3-8 MB)
The explanation will be a bit complicated, but if you do each operation in order, you will not have any problems. If you still have a problem, you can report it below.

The difference image is added below.

First, let's get rid of libjpeg:

Enter the client src/extern/lib folder and delete the .lib files whose file name starts with libjpeg...

Enter the Client src/EterLib folder and delete the JpegFile.cpp & JpegFile.h files. Open the EterLib project in Visual Studio in the same way, select these two files and remove them.

Open the client src/EterPythonLib / PythonGraphic.cpp file and remove the following include line and functions:

This is the hidden content, please

Where you delete them, you will see this function:
 

This is the hidden content, please

Replace this function completely with:

This is the hidden content, please
This is the hidden content, please

As a result, the general difference is as seen below. I wanted to show it by zooming in to make it more understandable. The size of the image file will vary depending on the window size in which you play the game. Since the image on the right is 1920x1080, the file size was recorded as 7.97 MB.
ek.webp

  • Like 1
Link to comment
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Style Version: 0.1

The code was completely created from scratch and optimized.

The basic style on which it was created: Default

Created by: Grzyb.ovh

The style was to be simple to browse topics, devoid of graphics, uniform in color and definitely simple. ×

×
×
  • Create New...

Important Information

Do you like cookies? 🍪 We use cookies to provide the highest quality of service. Learn more