Skip to content

PolywickStudio/TERRA-Engine

 
 

Repository files navigation

TERRA Game Engine

TERRA is a cross platform game engine written in Object Pascal. While compatible with Lazarus and Delphi, it does not use visual components. The engine was developed with focus on performance and optimized to run on mobile devices. Does not require any external library or framework besides linking to OpenGL and system libraries.

Support via Paypal

Build Status

windows-fpc-x86 linux-fpc-x86_64
windows-fpc-x86 linux-fpc-x86_64

What is supported?

Compilers:

  • FPC 2.6.2 and up
  • Delphi 7, Delphi XE2, Delphi XE3, Delphi XE10.

Platforms:

  • Windows
  • Linux
  • OSX using FreePascal or Delphi
  • iOS using FreePascal or Delphi
  • Android using FreePascal or Delphi
  • OUYA

Renderers:

  • OpenGL (both shader-based and fixed pipeline)
  • OpenGL ES

File formats

Images:

  • PNG
  • JPG
  • BMP
  • TGA
  • DDS
  • PSD
  • GIF (including animation)
  • PVR (Android)

Fonts:

  • TTF
  • FNT (Angelcode)

Audio:

  • WAV
  • OGG
  • MOD
  • MIDI
  • MP3 (Windows/Android/iOS only)

3D Models:

  • OBJ
  • MS3D (Milkshape)
  • SMD (Valve)
  • 3DS
  • Collada
  • GLS ([g]iles)
  • X (Microsoft DirectX)

Core Features

  • SIMD optimized math library (Vectors, Matrix, Colors, Rays, etc)
  • Full cross platform abstraction (write once, compile everywhere)
  • Automatic resource management with lazy loading/multithreading (Textures, Meshes, Sounds, Animations, etc)
  • Logging with advanced options (filtering, console output)
  • Custom memory manager
  • Input management (keyboard, mouse, touch, gamepad)
  • Thread management system (tasks, etc)
  • Image manipulation framework (resize, crop, etc)
  • 2D/3D sound system based on OpenAL
  • Can be used standalone or integrated into a Delphi/Lazarus form
  • Localization system (with UTF8 support)
  • In-app purchase integration (iOS and Android)
  • Steam integration

Renderer Features

  • Optimized sprite rendering with batching
  • Mesh skinning with skeletal animation (both on GPU and CPU)
  • Inverse kinematics animation
  • Mesh dynamic deformation system (water, explosions, cloth rendering, etc)
  • Uber shader system (forward and deferred rendering)
  • Shadows (stencil-based and shadowmaps)
  • Particle systems (sprites, lines and meshes)
  • Dynamic light system with culling (infinite number of lights per scene, supports point, directional and spot)
  • Infinite reflective surfaces (water, mirrors, etc)
  • Water shading with flow map support
  • Texture palettes/color grading (both meshes and sprites)
  • Animated textures (GIF or video based)
  • Screen based effects (color correction, outlines, refractions, SSAO, etc)
  • Font rendering (including density field fonts)
  • Billboards and decals
  • Fur rendering
  • Terrain rendering
  • Voxel/metaballs rendering
  • Software rasterization support
  • Lightmapping support (both rendering and generation)
  • Cartoon/celshading support
  • Skyboxes, skydomes and volumetric cloud rendering
  • Standard solids procedural meshes
  • Spline based mesh extrusions
  • Optimized 2D sprite rendering (including tilemaps from Tiled map editor)

GUI Features

  • Optimized batched rendering
  • Standard widgets (buttons, labels, images, comboboxes, etc)
  • Widget animation (colors, opacity, size, rotation, etc)
  • Custom virtual keyboard (supports Russian, Korean, Japanese and Chinese)
  • Transition effects (fade out, slides, etc)

Artificial Inteligence

  • Path finding
  • Boids
  • Navigation mesh

Networking features

  • Portable sockets API
  • Client and Server for multiplayer
  • Support for HTTP and FTP protocols
  • UPNP support for NAT punchthrough

Integrated Mobile SDKs

  • Flurry
  • iAd
  • Admob
  • Tapjoy
  • Fortumo
  • Chartboost
  • Adbuddiz
  • Vungle

Projects using TERRA

About

Cross platform game engine written in Object Pascal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Pascal 85.2%
  • Objective-C 7.3%
  • Java 3.9%
  • C# 1.0%
  • PHP 0.7%
  • C++ 0.6%
  • Other 1.3%