Parallel transport on curve

Jul 31, 2018 - 10 minutes
TL;DR: How to generate a stable orientation along a curve, math and Unity implementation. Here the repository with all the code and Unity project. Introduction Parallel transport is a technique that allows computing a moving frame (a 4x4 matrix defining a coordinate system) down the curve. Here is an example: The computation starts on the top right of the image, where the gizmo is, then move sequentially down the curve. Read more ...

Unity custom hair simulation PT1

Jul 31, 2018 - 13 minutes
Introduction In today’s blog post I would like to talk about hair simulation, it has been something that always piqued my interest. I attempted to do a proper simulation in the past based on the Position based dynamics , more specifically the one focusing on inextensible hair strand . The issue with both papers was that they did not worry about keeping the initial hair shape, basically the groom an artist would have spent days crafting. Read more ...

HLSL: Will it MAD/FMA ?

Jul 1, 2018 - 4 minutes
SPOILER: What is a MAD/FMA? (click to show text) TL;DR: FMA (Fused multiply add) and MAD/MADD (multiply-add) are a specific instuction in a processor which allows to performa a multiplication followed by an add in a single instruction. Having that instruction baked in hardware allows to achieve two results, higher performance due to performaing the operation in a single instruction and less instruction/fetch and decoding down the cpu pipeline. Proper explanation: FMA on wikipedia Read more ...