2018-05-24 22:28:00 +01:00
|
|
|
SAM-Viewer
|
|
|
|
==========
|
|
|
|
|
2018-09-05 19:18:46 +01:00
|
|
|
**Skin & Model Viewer - Version 0.2**
|
2018-05-24 22:28:00 +01:00
|
|
|
|
|
|
|
A simple 3d mesh viewer built with Irrlicht rendering engine.
|
|
|
|
|
|
|
|
Features
|
|
|
|
--------
|
|
|
|
|
|
|
|
* Wielded item or 'attachment' model support.
|
|
|
|
* Multiple textures, up to 6 material layers.
|
|
|
|
* Mesh debug view. (wire-frame, skeleton and normals)
|
|
|
|
* Animation playback amd frame controls.
|
|
|
|
|
2018-09-09 16:53:07 +01:00
|
|
|
Supported Mesh Formats
|
|
|
|
----------------------
|
2018-05-24 22:28:00 +01:00
|
|
|
|
2018-09-09 16:53:07 +01:00
|
|
|
* Irrlicht scenes (.irr)
|
|
|
|
* Irrlicht static meshes (.irrmesh)
|
|
|
|
* 3D Studio meshes (.3ds)
|
2018-05-24 22:28:00 +01:00
|
|
|
* B3D files (.b3d)
|
|
|
|
* Alias Wavefront Maya (.obj)
|
|
|
|
* Lightwave Objects (.lwo)
|
|
|
|
* COLLADA 1.4 (.xml, .dae)
|
2018-09-09 16:53:07 +01:00
|
|
|
* Microsoft DirectX (.x) (binary & text)
|
|
|
|
* Milkshape (.ms3d)
|
|
|
|
* OGRE meshes (.mesh)
|
|
|
|
* My3DTools 3 (.my3D)
|
|
|
|
* Pulsar LMTools (.lmts)
|
|
|
|
* Quake 3 levels (.bsp)
|
|
|
|
* Quake 2 models (.md2)
|
|
|
|
* Quake 3 models (.md3)
|
|
|
|
* DeleD (.dmf)
|
|
|
|
* FSRad oct (.oct)
|
|
|
|
* Cartography shop 4 (.csm)
|
|
|
|
* STL 3D files (.stl)
|
|
|
|
|
|
|
|
Supported Texture Formats
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
* JPEG File Interchange Format (.jpg)
|
|
|
|
* Portable Network Graphics (.png)
|
|
|
|
* Truevision Targa (.tga)
|
|
|
|
* Windows Bitmap (.bmp)
|
|
|
|
* Adobe Photoshop (.psd)
|
|
|
|
* Zsoft Paintbrush (.pcx)
|
|
|
|
* Portable Pixmaps (.ppm)
|
|
|
|
* Quake 2 textures (.wal)
|
2018-05-24 22:28:00 +01:00
|
|
|
|
|
|
|
Installation
|
|
|
|
------------
|
|
|
|
|
|
|
|
For now this assumes you are using some sane linux distro and have
|
|
|
|
a c++11 compliant compiler, although I am pretty sure it could be
|
|
|
|
made to work on any platform or device that meets the requirements.
|
|
|
|
|
|
|
|
**Requirements:** cmake, opengl, Irrlicht
|
|
|
|
```
|
|
|
|
cmake .
|
|
|
|
make -j2
|
|
|
|
```
|
|
|
|
|
|
|
|
**CMake options:** (defaults)
|
|
|
|
```
|
|
|
|
IRRLICHT_INCLUDE_DIR=/usr/include/irrlicht
|
|
|
|
IRRLICHT_LIBRARY="/usr/local/lib/libIrrlicht.so"
|
|
|
|
```
|
|
|
|
|
|
|
|
**Example:**
|
|
|
|
```
|
2018-05-25 14:52:49 +01:00
|
|
|
cmake . -DIRRLICHT_LIBRARY="/usr/lib/x86_64-linux-gnu/libIrrlicht.so"
|
2018-05-24 22:28:00 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
Controls
|
|
|
|
--------
|
|
|
|
|
|
|
|
| Control | Action |
|
|
|
|
|-------------------------------|----------------------------------------------------------------|
|
|
|
|
| Left mouse button + move | Trackball style rotation |
|
|
|
|
| Mouse wheel | Zoom |
|
|
|
|
| + | Zoom in |
|
|
|
|
| - | Zoom out |
|
|
|
|
| Arrow keys | Rotate around X and Y axes in 15 degree steps |
|
|
|
|
| Z, X | Rotate around Z axis in 15 degree steps |
|
|
|
|
| Home | Reset zoom and rotation |
|
|
|
|
| F5 | Reload textures |
|
|
|
|
| Space | Jump (experimental) |
|
|
|
|
|
|
|
|
To Do
|
|
|
|
-----
|
|
|
|
|
|
|
|
* Basic lighting.
|
|
|
|
* Image capture tools.
|
|
|
|
|
|
|
|
Screenshot
|
|
|
|
----------
|
|
|
|
|
|
|
|
![Imgur](https://i.imgur.com/xIS7pRj.png)
|
|
|
|
|