Export and Import GLTF / GLB

If you modeling 3D scenes in 3ds Max and want to import it in game engine such as Three.js, Unity and Unreal Engine, we can export it using the Alin glTF Exporter for 3ds Max. Here is the steps of how to export glTF files from 3 …
2023-05-03 1 comment

Import Json 3D Models and Animations in WebGL with Three.js

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 JD Exporter you would be able …

Skin for glTF, X and JD File Format

In X format this template within a mesh defines the vertices and weights influence of a particular bone. template SkinWeights { STRING transformNodeName; // Bone name DWORD nWeights; …

Binary Tree Traversal Algorithm Without Recursion

Pre-Order Traversal Because the characteristic of preorder traversal is to access the root node first, and then access the left and right subtrees, so the root node must be pushed into the stack first, then the root node of the …

Binary Search

Performance and Time Complexity For any algorithm based on comparison, its worst-case time cannot be lower than O(log2n), so binary search is the optimal algorithm in the worst case. Found Not found Best …

Flow light effect

Today I found that the color dodge algorithm in Photoshop can be simplified: //let b = base color, c = mix color, then b + (b * c) / (1 - c) = b / (1 - c); This clearly tells us how the final color va …

Line–plane intersection

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 - …