Skip to content

Neverblender 4.5.0

Choose a tag to compare

@github-actions github-actions released this 19 Oct 04:39
· 36 commits to main since this release
v4.5.0
d2495a4

One add-on for Blender 3.3 to 5.2.

Install: download neverblender-4.5.0.zip below (don't unzip it). In Blender: Edit > Preferences > Add-ons, then Install... (Blender 3.3 to 4.1) or the v menu, Install from Disk... (4.2 and later), and enable Import-Export: Neverblender. Remove any other Neverblender first.

New

  • Binary models without cleanmodels, both ways. Neverblender now ships a copy of cleanmodels 4.9.0's decompiler and compiler, so binary models import and export the same with or without cleanmodels installed:

    • Import reads emitter particle settings, animated meshes, and skinned body parts with their bones named from the creature skeleton. The earlier built-in decompiler lost emitter settings and animated-mesh data.
    • Export: Compile to Binary in the export options writes the same bytes as the cleanmodels program. Node numbers come from the model's supermodel. Walkmeshes stay ASCII. Checks still need the cleanmodels program.

    Skeletons and supermodels are looked up next to the model, then in your game folder (Game folder in the preferences). The copy is kept identical to cleanmodels by cleanmodels' own tests: every model of the game (32,832, binary and ASCII) decompiles and compiles the same, warnings included.

  • Warnings are shown in Blender:

    • Import warnings appear in a popup and the Info editor, not only in the system console. They come from the built-in decompiler and the cleanmodels program, and also cover a model or walkmesh that can't be read. 710 of the game's binary models give one, such as c_wings2's wing with no bone weights, which the game draws at the origin.
    • Compile warnings are listed in Scene properties > cleanmodels, such as a supermodel that isn't found (the model's node numbers then may not match its animations). With the cleanmodels program they were not shown when a compile succeeded.

Fixed

  • NWN DDS textures are the right way up (4.3.0 to 4.3.3 converted them upside down). Textures converted by those versions, including in saved .blend files, are converted again automatically.
  • Animated meshes lost their animation. An animated mesh whose animation length isn't an exact multiple of its sample period was skipped, and in floating point that is common: 27 stock meshes, such as the opening and closing of tn_sdoor_02, pnl_fog and vff_explword. The number of samples now comes from the data, so meshes such as GUI frames, whose sample count isn't length/period + 1, import too.
  • UV animation is no longer limited to 8 samples. Each sample was a UV map, and Blender allows 8 per mesh. Samples are now mesh attributes (animtverts.<animation>.<sample>, under Object Data properties > Attributes), so pnl_fog's 180 samples import and export. Files saved with older versions, which have them as UV maps, still export.
  • UV animation of meshes that store their faces twice (stock water tiles) was not imported; the samples now follow the mesh's own faces, as in game.
  • Animated mesh export keeps the sample period. It was rounded to 3 decimals, so pnl_fog's fog ran 3% slow, and it was wrong when the samples don't span the whole animation (scrollbars). A single-sample mesh exports again.
  • Models that failed to import:
    • models with classification OTHER (cleanmodels writes it for unclassified models); Other is now a classification, kept on export;
    • stock GUI models with a sample period of 1.#INF (ctl_btn_srv_lan, ctl_spellbox_nxt);
    • ASCII models with stray lines: a node line without a type and name (stock c_quiver), node inside another line, such as a comment (stock tnp_wndw_a01), and an emitter value left empty (dag_grifflag01). Like cleanmodels, these lines are now skipped;
    • a model whose MTR file has an accented character (in a comment, say), on Linux and macOS;
    • faces that use a vertex twice, which crashed Blender's custom normals; they have no area and are now dropped, with a message;
    • a binary walkmesh next to a model gave a Python error; walkmeshes are ASCII in NWN, so it is now skipped with a warning.
  • Bezier keys were dropped on import (positionbezierkey, and alphabezierkey and the like, which NWMax writes and cleanmodels 4.9.0 keeps in binaries): their keyed values now import, as linear keys like all others.
  • Export with UV map order Alphabetical (Active First) wrote the active UV map twice and no others.
  • Exported text files are written in the same encoding on every system.

Tested

Blender 3.3.21 LTS, 3.6.23 LTS, 4.0.2, 4.5.14 LTS and 5.2.2 LTS, with the checks of 4.3.3.

  • Import: the built-in decompiler gives the same text as the cleanmodels program inside each Blender. 1,954 binary and 783 ASCII game models covering every node type import, and all 807 game models with animated meshes round-trip with their samples.
  • Export: stock models of every kind (creature, emitter, skinned body parts, animated GUI meshes, UV animation) compile without cleanmodels to exactly the bytes the cleanmodels program writes, and import again.

Credits

Neverblender is by Attila Györkös (gyoerkaa, Symmetric on the Neverwinter Vault). It includes SpacePope's Blender 5.0 port and tools, used with their permission. Please report problems here, not to them: https://github.com/plenarius/neverblender/issues