This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"type": "Object", | |
"version": 4.3, | |
"generator": "Blender Three.js Object Exporter" | |
}, | |
"materials": [{ | |
"name": "FlagMaterial", | |
"type": "MeshPhongMaterial", | |
"uuid": "066f0672-aae2-58a9-8d6b-71f9df941403", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
/** | |
* rc4.js - A fast seedable psuedo-random number generator | |
* @public | |
* @class | |
* @param {string} [seed] - seed. IF specified, the first 256 chars will | |
* be used to seed the RC4 PRNG, otherwise a random character | |
* string will used. | |
* @example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* A seedable (deterministic) psuedo-random number generator | |
* | |
* This script replaces native Math.random() with a deterministic psuedo-random | |
* number generator. It also adds a static method to reset the prng stream and | |
* optionally set a new seed string. | |
* | |
* @function random | |
* @memberof Math | |
* @description Generates a deterministic psuedo-random number between zero and one |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"version": 4.3, | |
"type": "Object", | |
"description": "BufferGeometry Cube Mesh with 6 Materials" | |
}, | |
"object": { | |
"uuid": "89529CC6-CBAC-412F-AFD1-FEEAE785BA19", | |
"name": "Cube", | |
"type": "Mesh", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
arm = bpy.data.objects["Armature"] | |
bones = set(b.name for b in arm.data.bones if b.use_deform) | |
for action in bpy.data.actions: | |
supported = not bool(set(g.name for g in action.groups).difference(bones)) | |
print("arm '%s' can be animated by action '%s' %s" % (arm.name, action.name, supported)) |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "Default MakeHuman Mesh", | |
"type": "Object", | |
"version": 4.4, | |
"description": "This is a MakeHuman mesh, animated in Blender, and rendered with Three.js", | |
"_objects": 25, | |
"_skeletons": 1, | |
"_geometries": 20, | |
"_materials": 10, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "Scene", | |
"type": "Object", | |
"version": 4.4 | |
}, | |
"object": { | |
"uuid": "d39bc990-9ccd-5e37-aa40-de2cff47cedb", | |
"name": "Scene", | |
"type": "Scene", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "Scene A", | |
"type": "Object", | |
"version": 4.4 | |
}, | |
"object": { | |
}, | |
"materials": [ |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | |
typeof define === 'function' && define.amd ? define(['exports'], factory) : | |
(factory((global.THREE = global.THREE || {}))); | |
}(this, (function (exports) { 'use strict'; | |
// Polyfills | |
if ( Number.EPSILON === undefined ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( group.userData.bones !== undefined ) { | |
armature = group | |
var bones = createBones( armature, group.userData.bones ) | |
armature.updateMatrixWorld() | |
armature.userData.skeleton = new THREE.Skeleton( bones, undefined, true ) | |
OlderNewer