Jump to content

Recommended Posts

I started exploring how Metin2’s graphics system actually works and what it would take to make it cross-platform. One of the main issues is its reliance on DirectX, so the idea is to replace the entire rendering layer with bgfx.

bgfx allows you to target DirectX 11/12, Android, iOS (via OpenGL), and many other platforms, which makes it a strong candidate for a cross-platform approach.

To make everything run on all platforms, replacing Granny is also necessary. One possible solution—at least for now—is to load Granny data at runtime, convert/cache the values, and then use them with ozz or glTF.

Keep in mind a few observations: much of the math code is also tied to DirectX, so I recommend starting there and progressing step by step—begin with the login screen, UI windows, etc., then move to character selection and the minimap. The most challenging part is the main world; I haven’t fully managed to port it yet, although I did succeed with other components.

I also recommend using an older bgfx build that still supports DirectX 9 and proceeding gradually (the newest build no longer supports DX9). Alternatively, start with Vulkan, as it makes call stack debugging easier—debugging DirectX is more difficult.

I’m sharing my 32-bit shaderc compiler (built using the latest bgfx commit) along with the shaders I’ve already completed. Feel free to continue the work if you’d like.

Hope this helps.

 

This is the hidden content, please

Alternative download links →

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

 

spacer.pngspacer.png

Edited by Metin2 Dev International
Core X - External 2 Internal
  • Metin2 Dev 118
  • Eyes 3
  • Scream 2
  • Good 29
  • Love 11
  • Love 66
Link to comment
https://metin2.dev/topic/34188-directx-to-bgfx-vulkan-or-others/
Share on other sites

  • 4 months later...
  • Active+ Member

I would like to Thank you. Without your release, I believe it would take me months to achieve what I achieved today: 

.png

 

Speedtree / gr2 / terrain / environment with the skybox / Specular levels / indoor maps (dungeon blocks) with proper lightmap visual / shadows and Effects. 

  • Metin2 Dev 1
  • Lmao 1
  • Love 2
  • 3 months later...
  • 2 weeks later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.