Skip to content

Instantly share code, notes, and snippets.

View gszauer's full-sized avatar
💻
Living life 16.6 ms at a time

Gabor Szauer gszauer

💻
Living life 16.6 ms at a time
View GitHub Profile
@gszauer
gszauer / mount.txt
Created March 16, 2019 07:55
mount.txt
mount -v | grep "^/" | awk '{print "\nPartition identifier: " $1 "\n Mountpoint: " $3}'
sudo mount -o remount,ro /dev/sdc2
@gszauer
gszauer / polardecomp_skin.glsl
Created March 15, 2019 09:02
polardecomp_skin.glsl
/*
This shader is meant to test if polar decomposition will act the same way as dual quaternion skinning or not. So far, the answer is yes.
The shader works by decomposing the skin matrix into TQS, where T is the translation part, Q is a pure rotation and T is a scale / skew matrix. T is then thrown away and the matrix is reconstructed from just TQ
This does mean that scaling is no longer supported, but that's the same problem you would have with regular ol dual quat skinning.
So yeah, that's about it. This has the same result, but is MUCH less optimal. Could probably lower the number of decom iters to 10
*/
#version 330 core
uniform mat4 view;
@gszauer
gszauer / From youtube
Last active December 26, 2018 01:15
research
https://www.youtube.com/watch?v=BTdJsnPaD0E
@gszauer
gszauer / stuff.txt
Created December 24, 2018 21:42
Windows Stuff
Here are the list of commands:
3D Builder: Get-AppxPackage *3dbuilder* | Remove-AppxPackage
Alarms and Clock: Get-AppxPackage *windowsalarms* | Remove-AppxPackage
Calculator: Get-AppxPackage *windowscalculator* | Remove-AppxPackage
Calendar and Mail: Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage
@gszauer
gszauer / math.glsl
Created November 4, 2018 20:19
Just Quaternions
// From: https://code.google.com/archive/p/kri/wikis/Quaternions.wiki
struct Spatial {
vec4 pos,rot;
};
//rotate vector
vec3 qrot(vec4 q, vec3 v) {
return v + 2.0*cross(q.xyz, cross(q.xyz,v) + q.w*v);
}
@gszauer
gszauer / sample.html
Created November 2, 2018 06:52
sample.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Quaternion Interpolation Test</title>
<script type="text/javascript">
function V3_MagnitudeSq(quat) {
return quat[0] * quat[0] + quat[1] * quat[1] + quat[2] * quat[2];
}
@gszauer
gszauer / la.txt
Created October 26, 2018 00:20
Things to do in LA
--------------------------------------------------------------------------------------------------------
Little Tokyo
--------------------------------------------------------------------------------------------------------
Anime Jungle/Entertainment Hobby Shop Jungle
319 E 2nd St, Ste 103
Los Angeles, CA 90012
https://www.yelp.com/biz/anime-jungle-entertainment-hobby-shop-jungle-los-angeles
Colorfulnia-Life
330 E 2nd St, Ste A
https://github.com/aws/lumberyard/blob/9608bcf905bb60e9f326bd3fe8297381c22d83a6/dev/Gems/EMotionFX/Code/MCore/Source/Matrix4.cpp#L2383
@gszauer
gszauer / XPS 13 2 in 1.md
Last active October 30, 2017 06:54
glxinfo
gszauer@XPS13X:~$ glxinfo | grep 'version'
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 4.5
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.0.3