Skip to content

alexanderommel/Custom-Doom-style-engine-OpenGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 

Repository files navigation

Doom-style renderer for OpenGL

Graphics engine (No GUI editor) to create doom-style maps using mapvertex arrays and string arrays for referencing textures.

For example, a sector may be created using the following data:

{ 
  mapvertex_t sector_vertex[4]:{{0,0},{10,0},{10,10},{0,10}},
  floor_height: 0,
  ceil_height: 128,
  upper_textures: {"metal","metal","metal","metal"},
  middle_textures: {"metal","metal","metal","metal"},
  lower_textures: {"metal","metal","metal","metal"},
  light_level: 150
}

Look at main.cpp class in order to see how sectors are defined and the map of the last two photos is built.

Samples

sample Untitled Untitled2

Credits

  • Classes such as a camera, shader, shader_img, resource_manager and texture were obtained from the site https://learnopengl.com/.

  • Doom Hd textures have been taken from the project (https://github.com/KuriKai/DHTP), credit goes to each one of the names on the Copyright / Permissions section.

About

A very basic graphics engine for creating Doom-style scenes using data structures for scene definition.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published