Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

pogl

Pascal opengl render .obj files program

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

POGL

POGL - Wavefront OBJ files render, written in Free Pascal using SDL2 lib and SDL2-for-Pascal repository.

Requirements

  • Free Pascal Compiler
  • GNU Make
  • GCC
  • SDL2

Pascal-units for SDL2 already in directory lib/SDL2-for-Pascal.

Building

From repo root run:

bash
make

Application will appear here:

text
bin/pogl

Running

First argument is a path to OBJ file:

bash
./bin/pogl ./obj/african_head.obj

Controls

Keys Action
Left Arrow / Right Arrow Turn around Y axis
Up Arrow / Down Arrow Turn around X axis
Page Up / Page Down Turn around Z axis
W / A / S / D Move object
+ / - Scale object
Escape Close application

You can keep pressed several buttons at the same time.

Project structure

text
src/    program main file & Makefile
lib/    OBJ parser, maths, graphics & SDL2-units
obj/    models example
bin/    results of building