Git Product home page Git Product logo

hello-vulkan's Introduction

Hello Vulkan

This is a simple application I wrote to learn the basics of the Vulkan API. It is based primarily on Alexander Overvoorde's Vulkan tutorial. I have made a few modifications to better enforce my understanding, such as writing the code in C, dynamic lighting, normal maps, and camera movement, to name a few.

Example

Dependencies

Note: These are the versions I have tested; the program may work with earlier versions. Feel free to modify configure.ac and report it in the issues section.

Building

Building the program is currently based on the GNU Build System. To build:

  1. autoreconf -i
  2. ./configure
  3. make
  4. (Optional) sudo make install

Once built, the program can be run from ./src/hello-vulkan, or simply hello-vulkan if the install prefix is in your PATH.

Controls

  • W: Camera forward
  • S: Camera reverse
  • A: Camera left
  • D: Camera right
  • Q: Camera up
  • Z: Camera down
  • NUM8: Light -x
  • NUM2: Light +x
  • NUM4: Light -z
  • NUM6: Light +z
  • NUM7: Light -y
  • NUM1: Light +y
  • ESC: Quit program
  • Left Mouse: Rotate camera
  • Right Mouse: Rotate model

Command Line Options

A number of command line options are available by running hello-vulkan -? or hello-vulkan --help. A notable option is the interactive console (hello-vulkan -i), which allows modifying several scene/material attributes on-the-fly.

Special Thanks

  • Alexander Overvoorde for his awesome Vulkan tutorial.
  • Bricks'n'Tiles, textures.

hello-vulkan's People

Contributors

devint1 avatar

Watchers

 avatar  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.