gtsh77 / TRIX2

3-D game OpenGL render

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TRIX2 based on SDL2 & OpenGL

FEATURES

... (comming)

BUILD

A. BSD AS FREEBSD11

  1. PREPARE SHARED LIBS:
    1. COMPILE THEM FROM SOURCE:
      cd /usr/ports/devel/gmake && sudo make install clean BATCH=yes
      cd /usr/ports/lang/gcc && sudo make install clean BATCH=yes
      cd /usr/ports/devel/sdl20 && sudo make install clean BATCH=yes
      cd /usr/ports/graphics/glew && sudo make install clean BATCH=yes
      cd /usr/ports/math/gsl && sudo make install clean BATCH=yes
      cd /usr/ports/graphics/jpeg-turbo && sudo make install clean BATCH=yes
    2. OR FETCH PRE-COMPILED PACKAGES:
      sudo pkg install gcc gmake gsl sdl2 glew jpeg-turbo
  2. CLONE LATEST VER:
git clone git@github.com:gtsh77/TRIX2.git
  1. PRODUCE ELF64:
gmake

B. LINUX AS CENTOS7 (EXPERIMENTAL)

  1. PREPARE SHARED LIBS:
    1. INSTALL EPEL REPO
      yum install epel-release
    2. FETCH PRE-COMPILED PACKAGES:
      yum install gcc gsl-devel.x86_64 glew-devel.x86_64 SDL2-devel.x86_64 libjpeg-turbo-devel.x86_64 
  2. CLONE LATEST VER:
git clone git@github.com:gtsh77/TRIX2.git
  1. PRODUCE ELF64:
gmake

C. WINDOWS

... (comming)

SETUP ASSETS

  1. Copy your assets to assets folder (only jpg supported yet, maxsize 2048*2048)

COMPILE MAP

for map creation you can use any Q3-like map editor (eg. gtk radiant, moh radiant, etc.)

restrictions, no support yet for: prefabs, hollow, CSG substract, clipper, free rotation tools

  1. Copy your .map to maps folder
  2. Compile .map into .cmap
./trix2 -c maps/mapname.map

RUN

usage

trix2 [-m <mode> [opt] -f -l -b]

load map w fullscreen example:

./trix2 -mf load mapname

FLAGS:

-m mode enable special mode -f fullscreen -b calc frame render time -l nolights

BUGS

IF RENDER CRASHED:

start a new issue here https://github.com/gtsh77/TRIX2/issues/new
drag-n-drop trix2.core file there (will be produced in the main folder after crash)

EXAMPLES

MoH:AA dm/mohdm6 (build dec 2001, closed source, Q3 engine based on OpenGL 1.x) github2_2

TRIX2 (opensource, based on OpenGL 3.2) github1_1

TRIX1: https://github.com/gtsh77/TRIX

About

3-D game OpenGL render

License:GNU General Public License v3.0


Languages

Language:C 97.3%Language:GLSL 2.3%Language:Makefile 0.4%