Code Monkey home page Code Monkey logo

opengl-minimal-compute-particles's Introduction

Bounded Compute Particles

A minimal-ish project that sets up particles that are tweaked in a compute shader. See my blog post on this project.

Some of the code is lifted from https://github.com/bartvbl/TDT4230-Assignment-1

The state of it right now

Project structure

main.cpp initializes the window, program.cpp is where everything is initialized and updated/rendered. Finally, the particle system is implemented in particles/particleSystem.cpp. It goes a bit deep but I just wanted to see if I could get my particle code to work with the initial code.

Building:

  1. git clone --recursive https://github.com/Embla-Flatlandsmo/OpenGL-minimal-compute-particles.git
  2. cd openGL-minimal-compute-particles
  3. cmake .
  4. cmake --build .
  5. The executable should be in ./Debug

Alternatively using VS Code:

  1. git clone --recursive https://github.com/Embla-Flatlandsmo/OpenGL-minimal-compute-particles.git
  2. cd openGL-minimal-compute-particles
  3. code .
  4. Using the CMake extension, let cmake do its thing
  5. Use Ctrl+Shift+P then type CMake: Build The executable should be found in /build/bin

Note that because I'm using file(COPY res DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) in the root CMakeLists.txt, the stuff in the res folder might not update inbetween builds. Haven't found a fix for that yet.

opengl-minimal-compute-particles's People

Contributors

bartvbl avatar embla-flatlandsmo avatar mgimle 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.