Coder Social home page Coder Social logo

sirbob01 / dynamo-engine Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 1.0 7.67 MB

A C++ game engine powered by Vulkan

License: MIT License

C++ 99.98% CMake 0.01% GLSL 0.01%
game-engine ogg-vorbis entity-component-system audio-engine game-programming game-development engine rendering api api-documentation

dynamo-engine's Introduction

Dynamo Engine

Linux Build


Dynamo is a C++ game engine powered by Vulkan.

Features

  • Native support for an optimized ECS architecture in designing game objects
  • A simplified Scene management system
  • Rendering engine powered by the Vulkan API
  • An audio engine that supports multiple playback tracks and raw PCM data manipulation
  • ... and more!

These features allow it to be used as a framework for general multimedia applications.

For a more in-depth look at the engine's components, visit the wiki.

Rationale

I built this because I've always wanted to understand how game engines worked under the hood. This is mostly a learning exercise, but I also use it for my personal projects because of its flexibility and reusability.

Dependencies

To use Dynamo, the compiler must support at least C++17.

Dynamo uses a number of submodules that can be installed by running git submodule update --init

Running Demos

The engine comes with demo programs to test core features of the engine. To compile them, cmake must be installed. Go to the /demos/build directory, then run:

  • cmake .. -G BUILD_GENERATOR
  • make

Replace BUILD_GENERATOR with the generator applicable to your development environment. This assumes that all the dependency requirements are satisfied.

Running Tests

Similar to the demos, the tests need to be built. Go to the /tests/build/ directory then run:

  • cmake .. -G BUILD_GENERATOR
  • make
  • ctest --verbose

Contributing

Anyone is welcome to open a pull request! State the issue being solved and explain the solution precisely. Just ensure that the new code adheres to the style of the codebase.

For high-level suggestions on improving the engine, open an issue so we can have a discussion.

License

Code and documentation Copyright (c) 2019-2022 Keith Leonardo

Code released under the MIT License.

dynamo-engine's People

Contributors

sirbob01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dynamo-engine's Issues

Jukebox - Partitioned IR convolution

Implement a partitioned (uniform or non-uniform) convolution algorithm for long impulse repsonses.

This will allow the real-time playback of sounds convolved with a filter that simulates environments (e.g., echo and reverb).

Jukebox - Device selection

Jukebox currently uses the PortAudio library as a cross-platform sound API. Unfortunately, it does not have the functionality to receive device count change events. This leads to stuttering if the new default device has different stream parameters to the old one.

Until the PortAudio team decides to release this feature, I'll be thinking of migrating to libsoundio. Again though, libsoundio is build failing on MacOS because it is using a deprecated API, so can't use that yet either.

Ugh.

Jukebox - Doppler effect Filter

Implement a filter for Doppler effect. This may necessitate a change in the Filter API depending on how I choose to implement this:

  1. Resampling procedure
  2. Pitch shifting, time constant

If I choose to take 1, the filters will need to account for the length of the output signal, since resampling can lengthen or shorten it.
If I choose to take 2, the algorithm will be more difficult to implement lol (+ might have more computational overhead?)

Implement ThreadPool

Implement a ThreadPool utility class to encapsulate enqueueing concurrent processes to be assigned to available threads

Create AI module

Add generic routines for pathfinding (i.e. A*) and simple finite-state machines.

Create module for dynamic lighting

The module should allow the placement of dynamic 2D light sources. These should cast shadows around the world given a list of polygons. The light sources can also be adjusted for luminosity, color, and may even have special image textures.

Integrate Dear ImGui

Use the Dear ImGui library to create a user interface for the editor, built on top of the engine's runtime.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.