Git Product home page Git Product logo

bvhtest's Introduction

BVHTest

Source code for my Bachelor thesis

Requirements

  • meson
  • ninja
  • assimp >= 4.1
  • OpenGL >= 3.3
  • GLFW >= 3.1
  • CUDA >= 9.1
  • a C++17 compiler

Building

cd $PROJECT_ROOT
meson build         # only once
ninja -C build

Usage

Run with ./build/src/bvhTest

BVHTest has only a minimal cmd. It is designed to execute JSON configuration files.

Use ./build/src/bvhTest list to list available commands, then generate a sample config file with ./build/src/bvhTest genrate <OUT FILE> [LIST OF COMMANDS].

Use ./build/src/bvhTest run <FILE> to execute the commands for each input in baseConfig.input

Converting binary files

Mesh files

Binary mesh files (data.json, data.bin) can be converted to the new file format version with:

{
  "baseConfig": {
    "basePath": "/path/to/meshes",
    "input": [
      "list",
      "of",
      "files",
      "to",
      "convert"
    ],
    "maxThreads": 4,
    "name": "test",
    "verbose": true
  },
  "commands": [
    {
      "cmd": "load"
    },
    {
      "cmd": "export",
      "options": {
        "outDir": "/path/to/meshes"
      }
    },
    {
      "cmd": "status"
    }
  ]
}

Saved BVH files

These files can not be upgraded to a new version.

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.