Engine class includes
C++ 3D software engine
Version 1.75 - 13/08/2018
Currently supported platforms:
- Microsoft Windows XP, 7, 8 and 10
- Linux based operating systems
- MacOS X
Source code / examples / documentation
Copyright (c) 2015-2018 Frédéric Meslin
Twitter: marzacdev
Email: fred@.nosp@m.fred.nosp@m.slab..nosp@m.net
CMake scripts / MacOS support
Andreas Streichardt
Twitter: m0ppers
Email: andre.nosp@m.as@m.nosp@m.op.ko.nosp@m.eln
Exceptions:
Mesh textures
In the example folder, one or more textures on the 3D models have been created with photographs from Textures.com. These photographs may not be redistributed by default; Please visit http://www.textures.com for more information.
Skybox texture
In the example folder, the meadow skybox has been created by Emil "Humus" Persson and it is licenced under the Creative Commons Attribution 3.0 Unported License. Please visit http://www.humus.name/index.php?page=Textures for more information.
Fred's Lab:
A project maintained by Fred's Lab
Website: www.fredslab.net
This is open source software released under the MIT License, please refer to LICENCE file for more information.
Renderer (Portable C++ / ASM (SSE2))
The renderer:
- Renders meshes
- Renders billboard sets
- Does simple transformations (rotation, scaling, translation)
- Performs 3D clipping
- Performs 2D clipping
- Performs projection
- Does backculling
- Performs Z-sorting
The rasterizer:
- Draws textured triangles
- Handles mipmaping
- Handles alpha blending
- Applies solid color per triangle
- Applies quadratic fog per fragment
- Performs perspective correction
- Does not perform texture filtering
- Does not draw anti-aliased edges
- Align vertex coordinates to nearest pixel coordinates
The lighting system:
- Handles point lights
- Handles directionnal lights
- Handles ambient lights
Backends (Native OS code)
window / draw / gamepad / timing / system
The backend - Windows version:
- Handles windows creation / management
- Handles mouse events
- Handles keyboard events
- Handles graphic contexts with GDI
- Handles joysticks with rumble support (with Microsoft XInput V1.3 drivers)
- Supports Windows XP / 7 / 8 and 10 OS
- Supports fullscreen mode
The backend - Linux version:
- Handles windows creation / management (with X11)
- Handles mouse events (with X11)
- Handles keyboard events (with X11)
- Handles graphic contexts (with X11)
- Handles joysticks with rumble support (with evdev interface)
- Supports virtually all Linux based OS
The backend - MacOS version:
- Similar to Linux version
- Needs X11 (XQuartz) for MacOS
- No native COCOA support
- No joysticks support yet (soon)
File formats
Supported bitmap / texture formats:
- Uncompressed 24bit RGB windows bitmap
- Uncompressed 32bit RGBA windows bitmap
- Import & export functions
Supported 3D model formats:
- Wavefront OBJ
- Import & export functions
Limitations
- No Z-buffer
- No antialiasing
- Single core support
Comparison
It renders graphics a bit better than a Sony Playstation one.