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.
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
PAUSEYou 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/
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:
Unity-like camera controls:
- Hold RMB to rotate view
- Hold MMB to pan view
- Scroll mouse wheel to move forward and backward
Select objects(entities) with LMB. Use Q, W, E, R to enable translation, scale and rotation gizmos.
Drag and drop one object on another to make it a child
Although Crave's renderer is only based at Forward Rendering it supports scenes with multiple light sources of different type.
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.
Currently Crave only supports importing models with diffuse or diffuse and specular textures.
Currently(after last modifications) saving and loading scene does nothing, although the buttons can be found in File menu.
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.



