When you use 3ds Max to create models with animations, and you need a rapid workflow to load them in WebGL with Three.js, I recommend the following steps:
1. Export Models from 3ds Max
By using the Json Exporter you would be abl …

Conservative Morphological Anti-Aliasing 2.0

Suppose we have a Line:
P = P1 + tL
and a plane:
N • (P - P2) = 0
We can substitute P into the plane equation:
N • (P1 + tL - P2) = 0
Solve for t:
t = (N • (P2 - P1)) / (N • L)
The point of intersection is:
P = P1 + ((N • (P2 - …

One dimension:
\[
G(x) = \frac{1}{\sqrt{2\pi \sigma^2}} e^{-\frac{x^2}{2\sigma^2}}
\]
Two dimensions:
\[
G(x, y) = \frac{1}{2\pi \sigma^2} e^{-\frac{x^2 + y^2}{2\sigma^2}}
\]
This is because:
\[
I(t) = \int_{-t}^{t} e^{-x^2}dx …

When skinning with CAT bones, export it to FBX, and reimport to 3ds Max, the animation appears to be broken.
The reason for this bug is a new feature TMCache in 3ds Max 2017 is in conflict with CAT rig controllers.
This b …

In Clifford algebra all units forms a group, so we can construct a unit dual-quaternion from two quaternions q and t where q is a unit rotation quaternion and t is a pure quaternion representing the translation:
\[
d = (1 + \fra …

We can compute a rotation matrix \( R \in SO(3) \) from an angle \(\theta\) and axis \(l\) (unit vector)
\[
R = I + \sin(\theta)C + (1-\cos \theta)C^2
\]
where \(C\) is the antisymmetric matrix:
\[
C = \begin{bmatrix}
0 & -l …

A Cardinal spline( sometimes called Canonical spline )consists of a sequence of curves. Consider a single Cardinal segment:
\[
F(u) = C_0 + uC_1 + u^2C_2 + u^3C_3
\]
Suppose it starts at \(F(0) = P_i\) and ends at \(F(1)=P_{i+1} …

Sometimes we need only a subset of the vertices in a mesh to be animated without a full skeleton, such as a set of mouth shapes or face vertices for facial animation. A easy way to do this is using Morph Target Animation. In thi …

ver 1.1
Example of the Json 3D Format
{
"animation":
{
"keyframeAnimations":
[
{
"name": "Anims_1",
"timeline": "seconds",
"fps": 30,
"animNodes":
[
…

Skinned Mesh or SubMesh Format of the Json 3D Format ver 1.1
Example:
{
"model":
{
"version": "1.0",
"meshes":
[
{
"name": "subMesh1",
"type": "tria …

Crytek has announced that the CryEngine is now available to everyone for free, including the full source code ! The latest version launched today with a "pay-what-you-want" business model and with no obligation to pay royaltie …

1. Download the Visual Studio 2015 community (it is free) and Windows 10 SDK.
2. Create a win32 project by the Application Wizard. On the Application Settings check "Empty project" and uncheck "Security Development Lifecycle (SD …

Compared with the Sobel Operator which use 8 points, the Roberts Operator use only 4 points to compute the gradient magnitude. The first order derivative represents the directional derivative:
\[
G_x =
\begin{bmatrix}
-1 & …

This is an improved Sobel operator mainly used in edge detection. It uses 3x3 convolution matrix to compute the gradient in the x-direction (\(G_x\)) and y-direction (\(G_y\)):
\[
G_x =
\begin{bmatrix}
-1 & 0 & 1\\
-\sqr …