Git Product home page Git Product logo

zen3d's Introduction

Install Bazel

https://bazel.build/install

Use npm install bazelisk which contains bazel command

# Contains bazel command
sudo npm install -g @bazel/bazelisk

# Contains BUILD file linter
sudo npm install -g @bazel/buildifier

Local Requirement

  • local build use clang
    • ubuntu: sudo apt install clang
  • c++17
  • python3
  • glfw
    • ubuntu: sudo apt-get install libglfw3-dev

Test minimal build

local gltf_loader

bazel run //zen/demo:gltf_model_loader_demo

wasm renderer demo

bazel build //zen/demo:minimal_renderer_demo_wasm

python3 wasm_server.py ./bazel-bin/zen/demo/minimal_renderer_demo_wasm/ -p 8080

Debug target

# generate target vscode debug config in launch.json
python3 debug.py //zen/demo:gltf_model_loader_demo

clang-format

sudo apt install clang-format

run wasm server with dir and port (requires python3.7)

# run this first `bazel build //zen/demo:imgui_demo_wasm`
python3 wasm_server.py ./bazel-bin/zen/demo/imgui_demo_wasm/ -p 8080

Vulkan Dependencies

Ubuntu (https://vulkan-tutorial.com/Development_environment#page_Vulkan-Packages)

sudo apt install vulkan-tools
sudo apt install libvulkan-dev
sudo apt install vulkan-validationlayers-dev spirv-tools

Install glslc:

If met "glslc: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by glslc)":

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install --only-upgrade libstdc++6

zen3d's People

Contributors

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