Skip to content

Instantly share code, notes, and snippets.

@hsab
hsab / import_scenes.py
Last active August 29, 2018 16:12
Blender: Import Scenes from Bunch of Files
import bpy
import os
import ntpath
D = bpy.data
C=bpy.context
path = 'D:\odrive\Cloud\Gutter\Outlier 2.0\Blends'
def listdir_fullpath(d):
@hsab
hsab / CSS SVG Liquid Distortion
Created March 19, 2018 12:06
css-svg-distort.html
<svg width="0" height="0">
<defs>
<filter id="distort">
<feTurbulence baseFrequency=".001" type="fractalNoise" seed="200" />
<feColorMatrix type="hueRotate" values="0">
<animate attributeName="values" from="0" to="360" dur="8s" repeatCount="indefinite" />
</feColorMatrix>
<feDisplacementMap in="SourceGraphic" in2="main" xChannelSelector="R" yChannelSelector="B" scale="200" />
<feGaussianBlur id="blur-amount" stdDeviation="3" />
<feComponentTransfer result="main">
@hsab
hsab / ffmpeg_tut_.md
Last active November 24, 2025 11:37
FFMPEG Tutorial: 2-Pass & CRF in x264 & x265

Google FFMPEG H264

Two-Pass: Requires a bitrate. This defines the quality of the video. Youtube and Vimeo usually reduce your bitrate to 25mbs. So if it is higher, it will be compressed by these websites.

Lower bitrate means lower files size.

Calculating Bitrate:

@hsab
hsab / GLSL-Noise.md
Created October 26, 2017 03:53 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}