Using the N3PMesh converter

Knight Online uses an internal file format called “N3PMesh” to store a lot of the game’s item meshes along with other various game meshes. A lot of these files are located in the “Item” folder found within the game’s install directory. You can think of every object in the game has having its own 3D mesh. In order for a object to appear in game we need to first know all the vertex information in order to draw the object using a 3D rendering library (in KO’s case it would be the DirectX library). A lot of the details aren’t necessarily important for this article but sometimes players would like to modify the 3D meshes in order to change how the objects look in game. I’m going to show you how to do this using the N3PMeshConverter.

Using the converter it is possible to convert .n3pmesh files into .obj files (allowing you to modify the appearance of the game’s weapons) and it can convert .obj files (along with other various formats) into .n3pmesh files. All this allows for you to export objects from the game, modify those objects, and import the modified objects back into the game.

In order to export an object you first must convert the .dxt item texture to a .bmp/.png image file using the N3TexViewer. Next run the following command using the command prompt (Windows Start Menu -> Search Bar -> Type “cmd” -> Press Enter).

N3PMeshConverter -export obj 1_6011_00_0.n3pmesh item_co_bow.bmp

This command will convert the .n3pmesh for the basic bow into a .obj file. Using the .obj and image file you can easily load the KO mesh into a 3D mesh editor like Blender.

In order to import the .obj file back into KO’s .n3pmesh format (presumably after you have made your modifications) use the following command (again via the command prompt).

N3PMeshConverter -import 1_6011_00_0.obj

Simply paste the new .n3pmesh into the KO content folder and the newly modified weapons mesh will appear in game!

37 thoughts on “Using the N3PMesh converter

  1. Nico

    Hi stephen,

    can you maybe make a video how you convert the N3PMesh file into obj than to Blender ?!?

    would be nice

    best wishes
    NSB

    Like

    Reply
  2. Stephen Meier Post author

    Hi Nico,

    Thank you for your suggestion. If I can find time I’ll happily make a video, also feel free to message me on Skype (bitshift8) and I can help there too.

    Best,
    Stephen

    Like

    Reply
  3. kenan

    Hi Stephan
    Last 3 days i m try to use that program but i dont understand how does it works
    I have install VS2017 community .
    when i try to local debug x86 console screen shows “ Press any key to continue…
    https://hizliresim.com/76Xrdm
    https://hizliresim.com/vj8vVR
    when i try to start in Release directory console screen shows error message box .
    https://hizliresim.com/gOVJp2
    start>>cmd run as admin . try to use
    N3PMeshConverter -export obj 2_0113_10_0.n3pmesh 2_0113_10_0.bmp
    https://hizliresim.com/2JNVRv
    i try last chance start>>cmd run as admin . Copy paste .n3pmesh and bmp file in Relaese folder
    its look like that
    https://hizliresim.com/Z9QPqZ
    i have 3d object converter its only converting .n3cskins to obj or several different format. But problem obj format cant not converting .n3pmesh.
    My PC windows 10 pro 64bit
    if it possible , can u tell me what must i do and how to use it

    Like

    Reply
  4. Stephen Meier Post author

    Hi Kenan,

    I will take a look and see whether I can fix the release build of the converter. I often just work with the debug build but it is technically slower so let me take a look.

    Stephen

    Like

    Reply
  5. Stephen Meier Post author

    @ Kenan: I have updated the Github and it now includes the Assimp source code so now everything should build fine.

    Like

    Reply
  6. Stephen Meier Post author

    @Kenan

    Try “N3PMeshConverter -import untitled.obj n3pmesh”. I had to add an additional command-line argument to distinguish between whether you want to create a “n3pmesh” or “n3cskins”

    So use:

    N3PMeshConverter -import untitled.obj n3pmesh

    if you want a n3pmesh or:

    N3PMeshConverter -import untitled.obj n3cskins

    if you want a n3cskins

    Like

    Reply
  7. Yusuf Numan YILMAZ

    Hi! Stephen,

    I’m using the n3pmeshconverter but if something’s wrong, I’m getting an error like on the terminal.

    ‘N3PMeshConverter’ is not recognized as an internal or external command,
    operable program or batch file.

    What’s wrong?

    Like

    Reply
  8. Serkan

    There was no problem before I format my computer. I can’t do it anymore after the format.

    Please take a how-to video. Or you can tell me how to do it with pictures.

    Like

    Reply
  9. meftun

    C:\WINDOWS\system32>N3PMeshConverter -export obj 1_1011_00_0.n3pmesh 01_dg.png
    ‘N3PMeshConverter’ is not recognized as an internal or external command,
    operable program or batch file.

    CMD administrador startup. . error. help me pls.

    Like

    Reply
  10. meftun

    I fixed most of the mistakes first. Finally, I’d appreciate it if you could help me solve this error.

    and thank you so much for sharing…

    Like

    Reply
  11. mastermikie

    hello, I had no problem using the dxt to png export. however the file types I have are actually .n3cpart is it possible to export these to .obj? thanks in advance for your support.

    Like

    Reply
    1. Stephen Meier Post author

      Is “.fbx” an effects format? Is that specific to knight online or no? Off the top of my head I can’t remember. The effect files for KO are a little more involved and currently there isn’t a way to export them like we can for .n3pmesh / .n3cskins.

      Like

      Reply
  12. yusuf

    n3pmesh and n3cskins files, except that the file exists in the skeletal system.
    converting to n3cskins format on a computer does not have in-game navigation.
    I need a way to import or import n3cskins and n3pmesh extensions in the blender application.

    meftun
    your file extension .png should make it .bmp.

    Like

    Reply
  13. mike heckelbeck

    hello, i followed the examples and im not entirely certain what my output should look like.
    i use the following command.

    n3pmeshconverter -export obj wing_0331.n3cpart wings.png

    i get the message: DB loading “wing_0331.n3cpart”….

    after that i see no file output

    Like

    Reply
  14. Anonymous

    mike heckelbeck ;
    you can’t edit n3cpart,
    because it does not contain an object
    you can just convert .n3pmesh or .n3cskins.
    You can use hex to edit .n3cpart

    Like

    Reply
  15. mike heckelbeck

    No. i get no other output. it just goes back to prompt like its finished.
    i am using release from github dated feb 15. which contains 3 files.
    n3pmeshconverter.exe
    n3pmeshconverter.lib
    assimp-vc140-mt.dll
    i work at a command prompt and have the files to convert in that folder with them.

    Like

    Reply
  16. meftun

    stephen accept this comment!
    I will teach those who want to learn as Turkish.
    and fix to head pls

    skyp:live:ebasimsek1997
    facebook:https://www.facebook.com/Blinder06
    arkadaşlar bunu öğrenmek isteyenlerin duyusunu biliyorum.
    bende çok götümü yırttım sonunda öğrendim . istedğiniz zaman mesaj atın size dönüş yapacağım

    Like

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s