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 …
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 - …
2017-02-13 Comments
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 …
2016-10-10 Comments
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 …
2016-08-16 Comments
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 …
2016-07-09 1 comment
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 …
2016-07-08 Comments
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} …
2016-06-22 Comments
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":         [         …
2016-04-10 Comments
Skinned Mesh or SubMesh Format of the Json 3D Format    ver 1.1 Example: {       "model":   {     "version": "1.0",          "meshes":     [       {                    "name": "subMesh1",                  "type": "tria …
2016-03-21 Comments
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 …
2016-03-16 Comments
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 …
2016-03-11 Comments
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 & …
2016-03-09 Comments
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 …
2016-02-19 Comments
https://github.com/NvPhysX/UnrealEngine The CPU-based implementation of PhysX 3.3.3, including the clothing and destruction libraries. Source for NVIDIA PhysX can now be found as part of the Unreal Engine code on the GitHub netw …
2015-06-14 Comments
1. 守望先锋(Overwatch) 暴雪的创新动作射击类FPS游戏 2.  街霸5 Capcom采用虚幻4打造的大作, 预计2016年春季上市      
2015-05-12 Comments
Voxel Global Illumination 传统游戏中,所有间接光照(某一表面反射出来的光线)是预先计算的,存储于有光照贴图之称的纹理内。光照贴图让游戏场景能够具备类似全局光照的效果,但是因为它们是预先计算的,所以只在静态物体上有效。VXGI将一个场 …
2015-04-14 Comments
一.  unique_ptr 这种指针刚好和 shared_ptr 相反: unique_ptr 禁止了拷贝构造函数, 因此任何时刻不可能有两个 unique_ptr 指向同一个对象, 也就是说它没有复制操作. 那么要将指针赋给另一个指针怎么办呢? 这就要用 std::move 函数来移交所有权, …
C++
2015-04-07 Comments
引言 从高山隘口一直到清晨之门, 从2008到2012, 指环王Online给我们带来了太多精彩的回忆, 无论是角色扮演还是怪兽扮演模式.  在这个道具游戏逐渐兴起的时代,  指环王国服可能是中国唯一一个运营了这么长时间又没收玩家一分钱的超一流MMORPG游戏. …
2015-03-29 Comments
以前我玩的竞技类游戏都是局域网互联,比如星际、帝国时代、横扫千军... 而2006年ArenaNet的Guild Wars是游戏历史上第一款竞技类网络游戏,各国服务器世界互联.可以用同一ID登陆到美国、韩国、日本的服务器,从而实现了全球玩家同场竞技的壮观 …
2015-03-29 Comments