Giter VIP home page Giter VIP logo

balboa_public's Introduction

balboa

UCSD CSE 167 codebase https://cseweb.ucsd.edu/~tzli/cse167/

Build

All the dependencies are included. Use CMake to build.

git clone --recurse-submodules https://github.com/BachiLi/balboa_public mkdir build
cd build
cmake ..
make -j

It requires compilers that support C++17 (gcc version >= 8, clang version >= 7, Apple Clang version >= 11.0, MSVC version >= 19.14).

For Windows users:

  1. Install Visual Studio 2022 and Visual Studio Code. Choose "Desktop development with C++" and check "C++ CMake tools for Windows" on the recipe.
  2. git clone --recurse-submodules https://github.com/BachiLi/balboa_public
  3. mkdir build; cd build
  4. cmake ..
  5. At this point, you can either open up the balboa.sln in build folder and use Visual Studio as your IDE, or work with Visual Studio Code.

(optional) To build, run, and debug in VS Code:

  1. In the bottom bar, configure CMake as follows (from left to right):
    • Build variant: RelWithDebInfo.
    • Active kit: Visual Studio ... x64, choose the appropriate one depending on your architecture.
    • Default build target: balboa.
  2. Create a launch.json in .vscode folder:
    {
        "version": "0.2.0",
        "configurations": [
            {
                "name": "hw1", 
                "type": "cppvsdbg", 
                "request": "launch", 
                "program": "${workspaceFolder}/build/${command:cmake.buildType}/balboa.exe",
                "cwd": "${workspaceFolder}/build/${command:cmake.buildType}", 
                "args": ["-hw", "1_1"]
            }
        ]
    }
    
    You can pass arguments using args.
  3. Press Ctrl+Shift+D to start the debugger. You can set breakpoints, inspect variables, and trace callstack, etc.

Run

Try

cd build
./balboa -hw 1_1

This will generate an image "hw1_1.png".

Acknowledgement

stb_image, stb_image_write, json, tinyply, GLFW, and glad

We use stb_image and stb_image_write for reading & writing images.

We use json to parse JSON files.

We use tinyply for parsing PLY files.

We use glfw and glad for the OpenGL homeworks.

3D models and textures: Stanford 3D Scanning Repository, KickAir_8p, and Texturemontage.

balboa_public's People

Contributors

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