Skip to content

Instantly share code, notes, and snippets.

Patricio Gonzalez Vivo patriciogonzalezvivo

Block or report user

Report or block patriciogonzalezvivo

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

VisualSFM by Changchang Wu

Probably the most straight forward way to start generating Point Clouds from a set of pictures.

VisualSFM is a GUI application for 3D reconstruction using structure from motion (SFM). The reconstruction system integrates several of my previous projects: SIFT on GPU(SiftGPU), Multicore Bundle Adjustment, and Towards Linear-time Incremental Structure from Motion. VisualSFM runs fast by exploiting multicore parallelism for feature detection, feature matching, and bundle adjustment.

For dense reconstruction, this program supports Yasutaka Furukawa's PMVS/CMVS tool chain, and can prepare data for Michal Jancosek's CMP-MVS. In addition, the output of VisualSFM is natively supported by Mathias Rothermel and Konrad Wenzel's [SURE]

patriciogonzalezvivo /
Last active Oct 4, 2019
Loading OSM and LIDar to PostGIS
patriciogonzalezvivo /
Created Oct 7, 2014
How to install Python correctly on Mac OSX

Install Homebrew

ruby -e "$(curl -fsSL"

Add PATH to ~/.bash_profile and ~/.zshrc

export PATH=/usr/local/bin:$PATH
cam.setPosition( cam.getPosition()+(targetPos-cam.getPosition())*0.01 );

Simple Quad

glTexCoord2f(0, 0); glVertex3f(0, 0, 0);
glTexCoord2f(width, 0); glVertex3f(width, 0, 0);
glTexCoord2f(width, height); glVertex3f(width, height, 0);
glTexCoord2f(0,height);  glVertex3f(0,height, 0);

First :

git submodule add ...


git clone ...
git pull && git submodule init && git submodule update && git submodule status
git submodule foreach git checkout master
patriciogonzalezvivo /
Last active Jul 14, 2018
GLSL Geom shader billboard
    vec2 offSet[4];
 	offSet[0] = vec2(0.,0.);
    offSet[1] = vec2(0.,1.);
    offSet[2] = vec2(1.,0.);
    offSet[3] = vec2(1.,1.);

	vec3 zAxis = normalize( vNormal[0] );
    vec3 yAxis = vec3( 0.0, 1.0, 0.0 );
    vec3 xAxis = normalize( cross(zAxis, yAxis) );
patriciogonzalezvivo /
Last active Jul 14, 2018
Load all files on a folder with OF
ofDirectory dir(_path);
    int total = dir.getFiles().size();
    for (int i = 0; i < total; i++) {
        cout << "Loading " << dir.getName(i) << endl;
patriciogonzalezvivo /
Last active Apr 23, 2020
GLSL Shaders Lights Funtions
You can’t perform that action at this time.