Skip to content

Instantly share code, notes, and snippets.

Tzu-Mao Li BachiLi

Block or report user

Report or block BachiLi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View autodiff.h
#ifndef AUTODIFF_H__
#define AUTODIFF_H__
#include "delta_ray.h"
#include <vector>
#include <cmath>
#include <algorithm>
#include <iostream>
View rfactor_split.cpp
// g++ rfactor_split.cpp -I ${HALIDE_DIR}/include -I ${HALIDE_DIR}/tools -L ${HALIDE_DIR}/bin -lHalide -o rfactor_split -std=c++11 -O2
// LD_LIBRARY_PATH=${HALIDE_DIR}/bin ./rfactor_split
#include "Halide.h"
using namespace Halide;
int main(int argc, char *argv[]) {
Var x("x");
int n = 10000;
View graphics_mega_bibtex.bib
% A mega bibtex file containing many computer graphics & vision & programming systems
% related literatures
% maintained by Tzu-Mao Li
% Feel free to comment below for correction and additional references
% Some predefined strings for conferences & journals
@string{CG_SIGGRAPH = "Comput. Graph. (Proc. SIGGRAPH)"}
@string{SIGGRAPH93_01 = "SIGGRAPH"}
@string{TOG = "ACM Trans. Graph."}
@string{TOG_SIGGRAPH = "ACM Trans. Graph. (Proc. SIGGRAPH)"}
View smallgdpt.cpp
// smallgdpt: a simple implementation of gradient domain path tracing
// https://mediatech.aalto.fi/publications/graphics/GPT/
// adapted from smallpt by Kevin Beason http://www.kevinbeason.com/smallpt/
// and a screened poisson solver by Pravin Bhat http://grail.cs.washington.edu/projects/screenedPoissonEq/
// to build, type: g++ -o smallgdpt -fopenmp -O3 smallgdpt.cpp -L/usr/local/lib -lm -lfftw3
// you will need fftw3 http://www.fftw.org/ to compile
// usage: ./smallgdpt [number of samples per pixel]
#include <fftw3.h>
#include <math.h>
#include <stdlib.h>
You can’t perform that action at this time.