1. Cafu Engine
  2. Cafu Engine
  3. Cafu
  4. Issues

Issues

Issue #78 resolved

Model Editor: Convert all models to cmdl, remove ModelT::LoadError

Carsten Fuchs
created an issue

Using the Model Editor, convert all models that are used in Cafu example maps / DeathMatch MOD to `cmdl` file format.

Then remove obsolete C++ code for classes like `ModelT::LoadError` and `ModelMdlT`.

Comments (10)

  1. Carsten Fuchs reporter

    (In [404]) Model support: Removed the obsolete class `ModelMdlT`. In its place, HL1 mdl models are now loaded via the `LoaderHL1mdlT` into the newer and better class `CafuModelT`.

    Also fixed the orientation of stencil shadow polygons (silhouette and "endcaps") of face occluders in the world BSP tree, making their orientation consistent to those used in `CafuModelT`. Without this, the sign of the stencil count of the world shadows mismatches that of the models shadows, yielding artifacts whenever model shadows and world shadows overlap.

    References #78.

  2. Carsten Fuchs reporter

    (In [436]) Added a set of new terminal models.

    The models have been imported and fully prepared with the Model Editor, complete with GUI fixtures, proper scaling (relative to a player model), etc. These terminal models are supposed to replace the older "television" and "LCD-panel" models that still use the now obsolete `struct GuiLocT` for specifying their GUI plane.

    The metal texture has been derived from a desaturated and brightness-adjusted copy of `Games/DeathMatch/Textures/TechDemo/trims/strim_diff.png` that has also been adjusted for seamless tiling.

    References #78.

  3. Carsten Fuchs reporter

    `ModelT` and `ModelT::LoadError` have been removed in r428, so this part of the ticket is done.

    It remains to convert the models to `cmdl` file format, which generally is not a strict necessity, but: - It is '''especially important for `ase` and `lwo` model files''', for which we're going to drop "use given tangent-space" support soon, and for which one of our new tangent-space methods should be explicitly set (see #100). - Other models can profit as well, like e.g. - the Trinity player model, setting the sunglasses and parts of the shoes to ''not'' cast dynamic shadows, - the Butterfly model, properly defining the skins, - etc.

  4. Carsten Fuchs reporter

    At this point, all models in http://trac.cafu.de/browser/cafu/trunk/Games/DeathMatch/Models have been converted to `.cmdl` format except those in subdirectories - Static - TechDemo and I have no intention to convert them anytime soon, because this can still be done at any later time as required, and leaves us with some "old" file formats that implicitly test their related file format loaders.

    Replying to [comment:4 Carsten]:

    - It is '''especially important for `ase` and `lwo` model files''', for which we're going to drop "use given tangent-space" support soon, and for which one of our new tangent-space methods should be explicitly set (see #100).

    As #100 has been implemented with reasonable defaults (see the comments there), this requirement is not as important as it seemed to be at the time it was written.

    In summary, the goals of this ticket have been reached, closing.

  5. Log in to comment