Skip to content

OpenMW-CS: Built-in graphics for Lights and Levelled-Creature-List objects in the 3d view.

OpenMW-CS displays various utility objects in the 3D view and it expects specific meshes to render the objects. Mesh names and format are currently hardcoded to what Morrowind uses.

This issue proposes these utility objects (Levelled creature lists and Lights) fall back to an in-built graphic when no meshes are available. The graphics would be simple textured billboards. The attached images are in.tga format and could already be used to texture the billboards. They are higher resolution versions of icons that appear beside corresponding record types in OpenMW-CS tables.

levelled-creature-list-3d.tga

light-3d.tga

Concept on how this would look in 3d:

3d_markers_concept

There is an example of how to create a billboard in OSG (a bit obsolete due to using geodes I believe)

https://github.com/openscenegraph/OpenSceneGraph/tree/master/examples/osgbillboard

OpenMW-CS picks the mesh for these objects here

https://gitlab.com/OpenMW/openmw/-/blob/master/apps/opencs/view/render/object.cpp#L107

https://gitlab.com/OpenMW/openmw/-/blob/master/apps/opencs/view/render/object.cpp#L113