This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
GIF_DIR="gif" | |
VIDEO_DIR="video" | |
convert_glsl2gif_mp4() | |
{ | |
if [ ! -e ${OUTPUT_DIR}/${GIF_DIR}/${FILE_NAME}.gif ]; then | |
echo "exporting gif file to '${OUTPUT_DIR}/${GIF_DIR}/${FILE_NAME}.gif'" | |
glsl2gif $INPUT_FILE_DIR.frag -o ${OUTPUT_DIR}/${GIF_DIR}/${FILE_NAME}.gif -s 512x512 -r 30 -l 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Custom/SemiTransparent" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
} | |
SubShader { | |
Tags { "RenderType"="Transparent" "Queue"="Transparent"} | |
LOD 200 | |
Pass{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
function make_directory() | |
{ | |
if [ -n "$1" ] | |
then | |
mkdir $1 | |
cd $1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SCRIPT_NAME=`basename $0` | |
if [ $# -ne 2 ]; then | |
echo "usage: $SCRIPT_NAME input_path/ output_path/" | |
exit 1 | |
fi | |
INPUT_DIRECTORY_PATH=$1 | |
OUTPUT_DIRECTORY_PATH=$2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ ! -e ./out ]; then | |
echo "Making out directory..." | |
mkdir out | |
fi | |
for file in `\find . -maxdepth 1 -type f`; do | |
jq . $file > 'out/'${file:2} | |
done | |
echo "Finished to export formatted json!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# # DeepLab Demo | |
# | |
# This demo will demostrate the steps to run deeplab semantic segmentation model on sample input images. | |
# | |
# ## Prerequisites | |
# | |
# Running this demo requires the following libraries: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ofPath path; | |
int w = 250; | |
int h = 250; | |
//-------------------------------------------------------------- | |
void ofApp::setup() | |
{ | |
// set color | |
path.setFillColor(ofColor::black); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ofApp.h" | |
//-------------------------------------------------------------- | |
void ofApp::setup() | |
{ | |
ofBackground(0); | |
ofSetFrameRate(60); | |
ofDisableBlendMode(); | |
blur.setup(ofGetWidth(), ofGetHeight(), 10, .2, 4); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "Mac", | |
"includePath": [ | |
"/usr/include", | |
"/usr/local/include", | |
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/", | |
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1", | |
"${workspaceRoot}/../../../libs/openFrameworks", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "freetype.h" | |
#include "ftglyph.h" | |
#include "ftoutln.h" | |
#include "fttrigon.h" |
NewerOlder