Skip to content

Mobile-friendly viewer for 3D models like glTF, X3D, VRML, Collada, Wavefront OBJ, and other formats supported by the Castle Game Engine

License

Notifications You must be signed in to change notification settings

castle-engine/castle-model-viewer-mobile

Repository files navigation

Castle Model Viewer

Mobile-friendly viewer for 3D and 2D models like glTF, X3D, VRML, Collada, Wavefront OBJ, Spine JSON and many other formats supported by the Castle Game Engine.

In addition to the above formats, it also allows to open a ZIP file that contains a single model and associated media (like textures, sounds etc.).

You can change navigation type (walk, fly, examine, 2D), jump between viewpoints, play chosen animations, save a screenshot, display scene statistics (triangle, vertex count) and more.

Screenshots

Examine view of a dungeon

Usage

The application comes with a few sample files, and naturally you can open your own 3D and 2D model files.

The models must be self-contained, e.g. you have to

Building

Compile by:

  • CGE editor. Just use menu items "Compile" or "Compile And Run".

  • Or use CGE command-line build tool. Run castle-engine compile in this directory.

    To upload to Google Play as AAB, place here correct AndroidSigningProperties.txt and then run:

    castle-engine package --target=android --package-format=android-app-bundle --fast
    

    (Remove --fast if you don't trust FPC to make a correct incremental build.)

  • Or use Lazarus. Open in Lazarus castle_model_viewer_mobile.lpi file and compile / run from Lazarus. Make sure to first register CGE Lazarus packages.

License

GNU GPL >= 2.0. See the file LICENSE.

Authors

Pretty toolbar icons from https://feathericons.com/ .

Authors of 3D graphics used in this project

Thank you for the amazing 3D stuff we could use to showcase our project!