Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

87 Commits

Folders and files

Repository files navigation

Crave Logo

Crave Engine

Crave is a primitive game engine developed with OpenGL for the sake of learning. It is in early stage of development and currently only available for Windows.

Building the engine

Clone the repository via

git clone https://github.com/VileDeg/crave-engine .

Crave uses premake5 build system so first to configure run GenerateProjects.bat file. By default it's contents should look like this:

call vendor\premake5.exe vs2022
PAUSE

You can change vs2022 option, for available options see premake documentation. After projects were configured, open Crave.sln and build the solution through visual studio(if configured with vs**** option).

The solution consists of Crave static library and CavernEditor console application that uses the library. In premake5.lua script there is a postbuild task to call the scripts that will copy all necessary DLLs into executable folder. If, for some reason, you get a "missing DLL" error, consider copying necessary DLLs yourself. DLLs can be found at following paths:

  • Crave/vendor/assimp/lib/

Engine features

Crave Engine is currently in early stage of development so it isn't yet possible to create games with it, but here is what it currently allows:

Navigation

Unity-like camera controls:

  • Hold RMB to rotate view
  • Hold MMB to pan view
  • Scroll mouse wheel to move forward and backward

Navigation-encoded

Select and transform objects

Select objects(entities) with LMB. Use Q, W, E, R to enable translation, scale and rotation gizmos.

Transformation

Object hierarchy

Drag and drop one object on another to make it a child

Hierarchy

Multiple light sources

Although Crave's renderer is only based at Forward Rendering it supports scenes with multiple light sources of different type.

Shadow mipmapping

Crave uses one huge atlas texture for shadow maps. The further the light source, the less space it's shadow map takes up on the atlas, resulting in lower resolution and higher frame rate.

Importing models

Currently Crave only supports importing models with diffuse or diffuse and specular textures.

Save/load scene

Currently(after last modifications) saving and loading scene does nothing, although the buttons can be found in File menu.

Attribution

Some textures you'll find under CavernEditor resource folder belong to Joey de Vries, specifically to learnopengl course. You can find any other licenses in Third-party_licenses folder under vendor directory.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages