View KlakSpout_README.md

KlakSpout

gif

KlakSpout is a Unity plugin that allows sharing rendered frames with other applications with using the [Spout] protocol.

The Spout protocol is supported by several frameworks (Processing, openFrameworks, etc.) and software packages (Resolume, AfterEffects, etc.).

View CameraAim.cs
using UnityEngine;
public class CameraAim : MonoBehaviour
{
[SerializeField] Transform _target;
[SerializeField] Transform _upTarget;
void LateUpdate()
{
transform.LookAt(_target, _upTarget.position - _target.position);
View ProcAmpReadme.md

ProcAmp

ProcAmp is a utility shader for tweaking video frames. It's developed for providing optional functionalities of video playback with the [VideoPlayer] component that is newly introduced in Unity 5.6.

System Requirements

View BashConEmu.md

GitHub Desktop installs several UNIX command line tools (actually it contains a subset of cygwin and msys). It's one of the easiest ways to build a UNIX-like CLI environment in a Windows system.

GitHub Desktop provides a powershell script shell.ps1 that sets up environment variables for the command line tools inside it. For instance, to launch the bash shell in ConEmu, the following command has to be added to a task.

View raspi.md
  • Install Raspbian.
  • Change the boot option to CLI.
  • Tweak the configuration file. In most cases the default screen resolution is too high. Change hdmi_mode to 3 (480p).
  • Install the following packages with apt-get.
  • ufw
  • pppoe
  • pppoeconf
  • Set up ufw firewall.
  • ufw default deny
View flac2raw.rs
use std::fs;
use std::fs::File;
use std::io::Write;
extern crate flac;
fn main() {
let mut stream = flac::StreamReader::<fs::File>::from_file("sample/test.flac").unwrap();
let info = stream.info();
View c3d-unity.md
  • Import the .c3d file into MotionBuilder.
  • Create an actor and align it to the markers. Then assign the markers to the actor. See the tutorial for the detailed steps.
  • Merge the .fbx file of the target model. See the tutorial for the detailed steps.
  • Characterize the target model. See the tutorial for the detailed steps.
  • Set the actor as an input source in the character settings. Then plot the animation to the skeleton. See the tutorial for the detailed steps.
  • Save the project at this point.
  • Select the joint hierarchy and the character, and then export it with "File" -> "Save Selection". Note that "Select Branches" in the right click menu should be used to select the whole hierarchy (left click only select a top node).
View gpd_win.md

image

GPD Win is a really enjoyable piece of hardware.

Windows 10 Clean Installation

View Knob_atan2.hlsl
fixed4 frag(v2f IN) : SV_Target
{
half2 uv = IN.texcoord.xy;
fixed4 c = tex2D(_MainTex, uv) * IN.color;
half a1 = atan2(uv.x - 0.5, 0.5 - uv.y);
half a2 = atan2(ddx(uv.y), ddx(uv.x));
c.rgb = max((a1 < a2) * c.r, c.g);
View LoadSceneOut.cs
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Klak.Wiring
{
[AddComponentMenu("Klak/Wiring/Output/Load Scene")]
public class LoadSceneOut : NodeBase
{
[SerializeField] string _sceneName;