Skip to content

Instantly share code, notes, and snippets.

View KelSolaar's full-sized avatar
🔅
Bending Light

Thomas Mansencal KelSolaar

🔅
Bending Light
View GitHub Profile
@KelSolaar
KelSolaar / config-aces-cg.yaml
Created July 19, 2021 11:05
The "Academy Color Encoding System" "CG" config.
ocio_profile_version: 2
environment:
{}
search_path: luts
strictparsing: true
luma: [0.2126, 0.7152, 0.0722]
description: |
The "Academy Color Encoding System" (ACES) "CG Config"
------------------------------------------------------
@KelSolaar
KelSolaar / cornell_box_to_sRGB.py
Last active October 23, 2021 14:19
Cornell Box to sRGB
import numpy as np
import colour
D = np.array([
[400, 0.343, 0.092, 0.040],
[404, 0.445, 0.096, 0.046],
[408, 0.551, 0.098, 0.048],
[412, 0.624, 0.097, 0.053],
[416, 0.665, 0.098, 0.049],
[420, 0.687, 0.095, 0.050],
@KelSolaar
KelSolaar / inkscape.py
Last active October 10, 2021 06:42
Inkscape - macOs - Absolute Path Wrapper
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Inkscape - macOs - Absolute Path Wrapper
========================================
On *macOs*, *Inkscape* requires absolute paths to work::
https://answers.launchpad.net/inkscape/+question/280575
@KelSolaar
KelSolaar / aces_shoot_cc24_neutral5.json
Last active September 7, 2021 10:04
ACES Shoot - CC24 Neutral 5 (.70 D)
{
"ALEXA SXT": {
"A-2_2": {
"-2": {
"Directory": "/20210601/A003R732/A003R732/A003C003_210519_R732",
"Encoding": "LOG-C/AWG",
"Grey Card (Sequence)": [
[0.255043625831604, 0.24865077435970306, 0.23095490038394928],
[0.2548905611038208, 0.2486673891544342, 0.23095150291919708],
[0.2553250789642334, 0.24885307252407074, 0.23137225210666656],
@KelSolaar
KelSolaar / aces_shoot_cc24_samples.json
Last active September 7, 2021 10:03
ACES Shoot - CC24 Samples
This file has been truncated, but you can view the full file.
{
"ALEXA SXT": {
"Flat Field": {
"NA": {
"Samples (Sequence)": [
[
[0.671089768409729, 0.6727330684661865, 0.6635704040527344],
[0.6711151003837585, 0.6730829477310181, 0.6639554500579834],
[0.6708062291145325, 0.6727433204650879, 0.6637686491012573],
[0.6708905696868896, 0.6724928021430969, 0.663275420665741],
@KelSolaar
KelSolaar / GSoC2021.md
Last active August 23, 2021 02:48 — forked from SGeetansh/GSoC2021.md
Google Summer of Code 2021 Final Work Submission
@KelSolaar
KelSolaar / rokh.py
Created July 26, 2021 23:55 — forked from andyneff/rokh.py
Python file for parsing uasset files from Rokh
import logging
import re
import collections
import struct
from StringIO import StringIO
import codecs
import binascii
import math
import sys
@KelSolaar
KelSolaar / config-aces-reference.yaml
Last active July 19, 2021 11:04
The "Academy Color Encoding System" "Reference" config.
ocio_profile_version: 2
environment:
{}
search_path: ""
strictparsing: true
luma: [0.2126, 0.7152, 0.0722]
description: |
The "Academy Color Encoding System" (ACES) "Reference Config".
wavelength HeNe Laser
301.2475431 121.7295551
303.5565712 123.2564968
305.8655993 120.5549846
308.1746274 122.0819263
310.4836555 120.9073557
312.7926836 120.7898987
315.1017117 120.3200705
317.4107398 121.377184
319.719768 121.8470122
@KelSolaar
KelSolaar / hsv_pseudo_rrt.tcl
Last active February 23, 2021 06:08
HSV - Pseudo RRT
set cut_paste_input [stack 0]
version 12.1 v1
push $cut_paste_input
Colorspace {
illuminant_in ACES
primary_in ACES
bradford_matrix true
name ACES_to_sRGB_Colorspace
selected true
xpos -193