Git Product home page Git Product logo

landscape-sim's Introduction

Landscape Simulator

A landscape simulation engine with attention to detail.

For the old version visit old-worldtogpu branch in this repo.

Technology

Vulkan graphics API and C++17

External dependancies

  • Vulkan 1.1
  • SDL 2
  • GLM

Supported platforms

Tested on:

  • Windows 10
  • Ubuntu Linux

Set up

Install Vulkan SDk 1.1+
Install SDL2 library as a package on Linux and manually on Windows.
Make sure Vulkan and SDL are findable by CMake with find_package() command.

Making SDL2 library findable on Windows might take extra steps:

  • create sdl2-config.cmake file containing definitions of SDL2_INCLUDE_DIRS and SDL2_LIBRARIES. Both of those variables should point to SDL include and library directories respectively. Make sure SDL include files are searchable at "SDL2/SDL.h" path.
  • at CMake configuration stage add -DSDL2_DIR="dir_to_sdl2-config.cmake" definition
  • copy SDL2.dll next to application executable file.

Cloning and Building

To retrieve the project from github and compile:

git clone https://github.com/ivarsrb/landscape-sim.git --recursive
cmake -S . -B build
cmake --build build --config Debug --target <target_name>

to compile shaders for the given app target:

cmake --build build --target <target_name>-shaders

, where <target_name> is the name of an application.

Project structure

The lsim engine consists of multiple sublibriraries.

  • apps - applications using lsim engine
  • src - lsim engine source files and non-exported header files
  • include - exported header files. To be used in applications or other libraries.
  • extern - external modules

Coding convention

The project uses Google style guide and C++ Core Guidelines as a coding reference.
In case Clangd language server is used, .clang-tidy file describes the style the code is checked against.

Author

Designed and developed by Ivars Rusbergs.

landscape-sim's People

Contributors

ivarsrb avatar

Watchers

 avatar

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.