language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
mrdoob
three.js
2ab6388f42c65658cd622d8f6a85a526f88f6a83.json
simplify formula suggested by WestLangley
examples/js/renderers/CSS3DRenderer.js
@@ -277,14 +277,9 @@ THREE.CSS3DRenderer = function () { if ( camera.parent === null ) camera.updateMatrixWorld(); - var cameraCSSMatrix = 'translateZ(' + fov + 'px)' + - getCameraCSSMatrix( camera.matrixWorldInverse ); - - if ( camera.type === 'OrthographicCamera' ) { - - cameraCSSMatrix = 'scale(' + fov ...
false
Other
mrdoob
three.js
8a5ca09d56ea03d43ad0c60ee28204ad93206497.json
Add example to model loading page.
docs/manual/en/introduction/Loading-3D-models.html
@@ -2,127 +2,174 @@ <html lang="en"> <head> - <meta charset="utf-8"> - <base href="../../../" /> - <script src="list.js"></script> - <script src="page.js"></script> - <link type="text/css" rel="stylesheet" href="page.css" /> + <meta charset="utf-8"> + <base href="../../../" /> + <script src="list.js"></script>...
true
Other
mrdoob
three.js
8a5ca09d56ea03d43ad0c60ee28204ad93206497.json
Add example to model loading page.
docs/manual/zh/introduction/Loading-3D-models.html
@@ -2,107 +2,111 @@ <html lang="en"> <head> - <meta charset="utf-8"> - <base href="../../../" /> - <script src="list.js"></script> - <script src="page.js"></script> - <link type="text/css" rel="stylesheet" href="page.css" /> + <meta charset="utf-8"> + <base href="../../../" /> + <script src="list.js"></script>...
true
Other
mrdoob
three.js
e4a12e8b61c0af85839a8fb68e7c5720df454f45.json
Add default frustum to OrthographicCamera
src/cameras/OrthographicCamera.js
@@ -15,10 +15,10 @@ function OrthographicCamera( left, right, top, bottom, near, far ) { this.zoom = 1; this.view = null; - this.left = left; - this.right = right; - this.top = top; - this.bottom = bottom; + this.left = ( left !== undefined ) ? left : -1; + this.right = ( right !== undefined ) ? right : 1; + this...
false
Other
mrdoob
three.js
91cd51830a05824eaafb1377baf80977dcbec8e3.json
Improve endnote docs.
docs/examples/loaders/GLTFLoader.html
@@ -37,10 +37,11 @@ <h2>Extensions</h2> </ul> <p><i> - <sup>*</sup>UV transforms are supported, with several key limitations in comparison to the - glTF specification. A transform is applied to all textures using that UV set on the current - material, and no more than one transform may be used per materia...
true
Other
mrdoob
three.js
91cd51830a05824eaafb1377baf80977dcbec8e3.json
Improve endnote docs.
docs/page.css
@@ -130,3 +130,13 @@ span.param { a.param:hover { color: #777; } + +sup, sub { + /* prevent superscript and subscript elements from affecting line-height */ + vertical-align: baseline; + position: relative; + top: -0.4em; +} +sub { + top: 0.4em; +} \ No newline at end of file
true
Other
mrdoob
three.js
b63ec3e8caf7e6ccefb1b4a9c38f61a02b4f2945.json
Add STL exporter in binary format to menu bar
editor/js/Menubar.File.js
@@ -265,7 +265,7 @@ Menubar.File = function ( editor ) { } ); options.add( option ); - // Export STL + // Export STL (ASCII) var option = new UI.Row(); option.setClass( 'option' ); @@ -279,6 +279,20 @@ Menubar.File = function ( editor ) { } ); options.add( option ); + // Export STL (Binary) + + var o...
false
Other
mrdoob
three.js
b8f08250a678b29944ab4a3e7369b4933e34d8b7.json
Add options arg to constructor
docs/api/en/cameras/CubeCamera.html
@@ -43,11 +43,17 @@ <h2>Examples</h2> <h2>Constructor</h2> - <h3>[name]( [param:Number near], [param:Number far], [param:Number cubeResolution] )</h3> + <h3>[name]( [param:Number near], [param:Number far], [param:Number cubeResolution], [param:Object options] )</h3> <p> near -- The near clipping distance...
true
Other
mrdoob
three.js
b8f08250a678b29944ab4a3e7369b4933e34d8b7.json
Add options arg to constructor
src/cameras/CubeCamera.js
@@ -11,7 +11,7 @@ import { PerspectiveCamera } from './PerspectiveCamera.js'; * @author alteredq / http://alteredqualia.com/ */ -function CubeCamera( near, far, cubeResolution ) { +function CubeCamera( near, far, cubeResolution, options ) { Object3D.call( this ); @@ -49,7 +49,7 @@ function CubeCamera( near,...
true
Other
mrdoob
three.js
30a3f0c185546ca22ba46a65f7d77d8cd4b6ba15.json
Update background color of kmz loader example
examples/webgl_loader_kmz.html
@@ -62,7 +62,7 @@ function init() { scene = new THREE.Scene(); - scene.background = new THREE.Color( 0xaaaaaa ); + scene.background = new THREE.Color( 0x999999 ); var light = new THREE.DirectionalLight( 0xffffff ); light.position.set( 0.5, 1.0, 0.5 ).normalize();
false
Other
mrdoob
three.js
a063cf571ab025a89892019fc3bef009a4b55346.json
Fix inconsistent menu order.
docs/list.js
@@ -176,8 +176,8 @@ var list = { "TorusGeometry": "api/geometries/TorusGeometry", "TorusKnotBufferGeometry": "api/geometries/TorusKnotBufferGeometry", "TorusKnotGeometry": "api/geometries/TorusKnotGeometry", - "TubeGeometry": "api/geometries/TubeGeometry", "TubeBufferGeometry": "api/geometries/TubeBuf...
false
Other
mrdoob
three.js
3ccef258935b7b892cf63024a4113481007c6fe0.json
Fix broken link.
docs/api/geometries/TextBufferGeometry.html
@@ -155,6 +155,6 @@ <h2>Available Fonts</h2> <h2>Source</h2> - [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] + [link:https://github.com/mrdoob/three.js/blob/master/src/TextGeometry.js src/TextGeometry.js] </body> </html>
false
Other
mrdoob
three.js
1b11cef40e2fc436cea4b1d3f43a7400fbb95f8f.json
Fix broken link.
docs/api/geometries/ExtrudeBufferGeometry.html
@@ -140,6 +140,6 @@ <h3>[method:null addShape]([page:Shape shape], [page:Object options])</h3> <h2>Source</h2> - [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] + [link:https://github.com/mrdoob/three.js/blob/master/src/ExtrudeGeometry.js src/ExtrudeGeometry.js] </body> </h...
false
Other
mrdoob
three.js
0dbdd90362f457964b9b819afee9267aa0a15b1f.json
Fix errors in setting bone transforms
examples/js/loaders/FBXLoader.js
@@ -463,7 +463,6 @@ // Also parse the texture map and return any textures associated with the material function parseParameters( FBXTree, properties, textureMap, ID, connections ) { - var parameters = {}; if ( properties.BumpFactor ) { @@ -644,10 +643,12 @@ ID: child.ID, indices: [], weight...
false
Other
mrdoob
three.js
3e9f292bcd82a24b90bfa0cc5bda175758b88570.json
Simplify deformer parsing
examples/js/loaders/FBXLoader.js
@@ -103,9 +103,9 @@ var images = parseImages( FBXTree ); var textures = parseTextures( FBXTree, new THREE.TextureLoader( this.manager ).setPath( resourceDirectory ), images, connections ); var materials = parseMaterials( FBXTree, textures, connections ); - var deformers = parseDeformers( FBXTree, connecti...
false
Other
mrdoob
three.js
6d983ef7f6a2a2ea6d1747b17f8cce68cb4d5ca0.json
Throw Errors in WebGLRenderer …instead of strings.
src/renderers/WebGLRenderer.js
@@ -215,11 +215,11 @@ function WebGLRenderer( parameters ) { if ( _canvas.getContext( 'webgl' ) !== null ) { - throw 'Error creating WebGL context with your selected attributes.'; + throw new Error( 'Error creating WebGL context with your selected attributes.' ); } else { - throw 'Error creatin...
false
Other
mrdoob
three.js
0321eef244b182381592baa6976aa153545a1c67.json
remove trailing comma
examples/js/loaders/GLTFLoader.js
@@ -139,7 +139,7 @@ THREE.GLTFLoader = ( function () { path: path || this.path || '', crossOrigin: this.crossOrigin, - manager: this.manager, + manager: this.manager } );
false
Other
mrdoob
three.js
e2fe7c44913db2e447764c27700bef32852773c1.json
Update the document content
docs/manual/introduction/Browser-support.html
@@ -13,57 +13,21 @@ <h1>[name]</h1> <h2>Overview</h2> <div> <p> - <strong>TL;DR</strong> three.js supports most modern browsers, including Internet Explorer 11 and above.</p> + Three.js can use WebGL to render your scenes on all modern browsers. For older browsers, especially Internet Explorer 10 and below, ...
false
Other
mrdoob
three.js
3675404aaf5aa1bad1247be80d90794b03dde73a.json
Add document for browser support
docs/list.js
@@ -5,6 +5,7 @@ var list = { "Getting Started": { "Creating a scene": "manual/introduction/Creating-a-scene", "Import via modules": "manual/introduction/Import-via-modules", + "Browser support": "manual/introduction/Browser-support", "WebGL compatibility check": "manual/introduction/WebGL-compatibility...
true
Other
mrdoob
three.js
3675404aaf5aa1bad1247be80d90794b03dde73a.json
Add document for browser support
docs/manual/introduction/Browser-support.html
@@ -0,0 +1,184 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <base href="../../" /> + <script src="list.js"></script> + <script src="page.js"></script> + <link type="text/css" rel="stylesheet" href="page.css" /> +</head> +<body> + <h1>[name]</h1> + + <h2>Overview</h2> + <div> + <p> + <stro...
true
Other
mrdoob
three.js
5da506d3c960e81b89d859c404092a7f5313fe1f.json
fix ALPHATEST and cleanup
examples/js/nodes/core/NodeBuilder.js
@@ -64,7 +64,7 @@ function NodeBuilder() { this.attributes = {}; this.prefixCode = [ - "#ifdef GL_EXT_shader_texture_lod", + "#ifdef TEXTURE_LOD_EXT", " #define texCube(a, b) textureCube(a, b)", " #define texCubeBias(a, b, c) textureCubeLodEXT(a, b, c)", @@ -82,7 +82,8 @@ function NodeBuilder() { ...
true
Other
mrdoob
three.js
5da506d3c960e81b89d859c404092a7f5313fe1f.json
fix ALPHATEST and cleanup
examples/js/nodes/materials/nodes/MeshStandardNode.js
@@ -75,6 +75,10 @@ MeshStandardNode.prototype.build = function ( builder ) { this.normal = new NormalMapNode( builder.resolve( props.normalMap ) ); this.normal.scale = builder.findNode( props.normalScale, inputs.normalScale ); + } else { + + this.normal = undefined; + } // slots
true
Other
mrdoob
three.js
5da506d3c960e81b89d859c404092a7f5313fe1f.json
fix ALPHATEST and cleanup
examples/js/nodes/materials/nodes/PhongNode.js
@@ -25,7 +25,6 @@ PhongNode.prototype.build = function ( builder ) { var code; builder.define( 'PHONG' ); - builder.define( 'ALPHATEST', '0.0' ); builder.requires.lights = true; @@ -49,7 +48,6 @@ PhongNode.prototype.build = function ( builder ) { "#endif", - "#include <common>", //"#include <e...
true
Other
mrdoob
three.js
5da506d3c960e81b89d859c404092a7f5313fe1f.json
fix ALPHATEST and cleanup
examples/js/nodes/materials/nodes/SpriteNode.js
@@ -23,7 +23,6 @@ SpriteNode.prototype.build = function ( builder ) { var output, code; builder.define( 'SPRITE' ); - builder.define( 'ALPHATEST', '0.0' ); builder.requires.lights = false; builder.requires.transparent = this.alpha !== undefined; @@ -37,7 +36,6 @@ SpriteNode.prototype.build = function ( buil...
true
Other
mrdoob
three.js
5da506d3c960e81b89d859c404092a7f5313fe1f.json
fix ALPHATEST and cleanup
examples/js/nodes/materials/nodes/StandardNode.js
@@ -26,7 +26,6 @@ StandardNode.prototype.build = function ( builder ) { var code; builder.define( this.clearCoat || this.clearCoatRoughness ? 'PHYSICAL' : 'STANDARD' ); - builder.define( 'ALPHATEST', '0.0' ); builder.requires.lights = true; @@ -52,7 +51,6 @@ StandardNode.prototype.build = function ( builder...
true
Other
mrdoob
three.js
5da506d3c960e81b89d859c404092a7f5313fe1f.json
fix ALPHATEST and cleanup
examples/js/nodes/math/CondNode.js
@@ -14,7 +14,7 @@ function CondNode( a, b, ifNode, elseNode, op ) { this.ifNode = ifNode; this.elseNode = elseNode; - this.op = op || CondNode.EQUAL; + this.op = op; };
true
Other
mrdoob
three.js
5da506d3c960e81b89d859c404092a7f5313fe1f.json
fix ALPHATEST and cleanup
examples/js/nodes/math/Math1Node.js
@@ -10,7 +10,7 @@ function Math1Node( a, method ) { this.a = a; - this.method = method || Math1Node.SIN; + this.method = method; };
true
Other
mrdoob
three.js
5da506d3c960e81b89d859c404092a7f5313fe1f.json
fix ALPHATEST and cleanup
examples/js/nodes/math/Math2Node.js
@@ -11,7 +11,7 @@ function Math2Node( a, b, method ) { this.a = a; this.b = b; - this.method = method || Math2Node.DISTANCE; + this.method = method; };
true
Other
mrdoob
three.js
5da506d3c960e81b89d859c404092a7f5313fe1f.json
fix ALPHATEST and cleanup
examples/js/nodes/math/Math3Node.js
@@ -12,7 +12,7 @@ function Math3Node( a, b, c, method ) { this.b = b; this.c = c; - this.method = method || Math3Node.MIX; + this.method = method; };
true
Other
mrdoob
three.js
5da506d3c960e81b89d859c404092a7f5313fe1f.json
fix ALPHATEST and cleanup
examples/js/nodes/math/OperatorNode.js
@@ -10,7 +10,7 @@ function OperatorNode( a, b, op ) { this.a = a; this.b = b; - this.op = op || OperatorNode.ADD; + this.op = op; };
true
Other
mrdoob
three.js
303a954121734963c1376b6dbff79bf523fb6276.json
Classify STL file prefix using matchDataViewAt
examples/js/loaders/STLLoader.js
@@ -96,24 +96,27 @@ THREE.STLLoader.prototype = { for ( var off = 0; off < 5; off ++ ) { - // Check if solid[ i ] matches the i-th byte at the current offset + // If "solid" text is matched to the current offset, declare it to be an ASCII STL. - var found = true; - for ( var i = 0; found && i < 5;...
false
Other
mrdoob
three.js
9eafb9e9e83ede23c6aa3eff8354a908cdc18e14.json
add comment and fix euler ordering
examples/js/loaders/FBXLoader.js
@@ -3851,16 +3851,17 @@ } + // Returns the three.js intrinsic Euler order corresponding to FBX extrinsic Euler order // ref: http://help.autodesk.com/view/FBX/2017/ENU/?guid=__cpp_ref_class_fbx_euler_html function getEulerOrder( order ) { var enums = [ - 'ZYX', // -> XYZ in FBX - 'YXZ', - 'ZXY', - ...
false
Other
mrdoob
three.js
e0fb997c502adf4d1853d87fdc66ecf5d7e08af4.json
fix undefined curveNode
examples/js/loaders/FBXLoader.js
@@ -97,7 +97,7 @@ } - console.log( FBXTree ); + // console.log( FBXTree ); var textureLoader = new THREE.TextureLoader( this.manager ).setPath( resourceDirectory ).setCrossOrigin( this.crossOrigin ); @@ -2246,6 +2246,7 @@ var curveNodesMap = parseAnimationCurveNodes( FBXTree ); parseAnimatio...
false
Other
mrdoob
three.js
5b1441a0e9422d25bf0343aae9fca2f3df8b5504.json
convert anim values back to arrays
examples/js/loaders/FBXLoader.js
@@ -2555,6 +2555,10 @@ if ( rawTracks.transform ) rawTracks.transform.decompose( initialPosition, initialRotation, initialScale ); + initialPosition = initialPosition.toArray(); + initialRotation = new THREE.Euler().setFromQuaternion( initialRotation ).toArray(); // todo: euler order + initialScale = initialS...
false
Other
mrdoob
three.js
ad44277f5554cee5928c8f013114a1ba56fcc286.json
use generateTransform for geometry transforms
examples/js/loaders/FBXLoader.js
@@ -814,44 +814,24 @@ }, null ); - var preTransform = new THREE.Matrix4(); - // TODO: if there is more than one model associated with the geometry, AND the models have // different geometric transforms, then this will cause problems // if ( modelNodes.length > 1 ) { } // For now just assume one mo...
false
Other
mrdoob
three.js
6139da0c9325a4b43e1750a97bbbc4873ecb701d.json
use generateTransform for animation transforms
examples/js/loaders/FBXLoader.js
@@ -2408,18 +2408,16 @@ initialPosition: [ 0, 0, 0 ], initialRotation: [ 0, 0, 0 ], initialScale: [ 1, 1, 1 ], + transform: getModelAnimTransform( rawModel ), }; - if ( 'Lcl_Translation' in rawModel ) node.initialPosition = rawModel.Lcl_Translation.value; + ...
false
Other
mrdoob
three.js
e8948e3b6f1d0f93f116ec2f6031c1bd6311efa9.json
Add ColladaExporter docs, fix links in PLYExporter
docs/examples/exporters/ColladaExporter.html
@@ -0,0 +1,81 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8" /> + <base href="../../" /> + <script src="list.js"></script> + <script src="page.js"></script> + <link type="text/css" rel="stylesheet" href="page.css" /> + </head> + <body> + <h1>[name]</h1> + + <p class="desc"> + An exporter...
true
Other
mrdoob
three.js
e8948e3b6f1d0f93f116ec2f6031c1bd6311efa9.json
Add ColladaExporter docs, fix links in PLYExporter
docs/examples/exporters/PLYExporter.html
@@ -13,7 +13,7 @@ <h1>[name]</h1> <p class="desc"> An exporter for *PLY*. <br /><br /> - <a href="https://www.khronos.org/gltf">PLY</a> (Polygon or Stanford Triangle Format) is a + <a href="https://en.wikipedia.org/wiki/PLY_(file_format)">PLY</a> (Polygon or Stanford Triangle Format) is a file format for ...
true
Other
mrdoob
three.js
d20b0069e37e5b80c6a8ac6131411ac1b0660bee.json
add boxselection demo
examples/files.js
@@ -59,6 +59,7 @@ var files = { "webgl_interactive_lines", "webgl_interactive_points", "webgl_interactive_raycasting_points", + "webgl_interactive_boxselection", "webgl_interactive_voxelpainter", "webgl_kinect", "webgl_lensflares",
true
Other
mrdoob
three.js
d20b0069e37e5b80c6a8ac6131411ac1b0660bee.json
add boxselection demo
examples/js/interactive/SelectionBox.js
@@ -0,0 +1,116 @@ +/** + * @author HypnosNova / https://www.threejs.org.cn/gallery + * This is a class to check whether objects are in a selection area in 3D space + */ + +function SelectionBox ( camera, scene, deep ) { + + this.camera = camera; + this.scene = scene; + this.startPoint = new THREE.Vector3(); + this.end...
true
Other
mrdoob
three.js
d20b0069e37e5b80c6a8ac6131411ac1b0660bee.json
add boxselection demo
examples/js/interactive/SelectionHelper.js
@@ -0,0 +1,73 @@ +function SelectionHelper ( selectionBox, renderer, cssClassName ) { + + this.element = document.createElement( "div" ); + this.element.classList.add( cssClassName ); + this.element.style.pointerEvents = "none"; + + this.renderer = renderer; + + this.startPoint = { x: 0, y: 0 }; + this.pointTopLeft = {...
true
Other
mrdoob
three.js
d20b0069e37e5b80c6a8ac6131411ac1b0660bee.json
add boxselection demo
examples/webgl_interactive_boxselection.html
@@ -0,0 +1,206 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <title>three.js webgl - draggable cubes</title> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> + <style> + body { + font-family: Monospace; + background-col...
true
Other
mrdoob
three.js
5262440b18f287a3d384cad6b769a5fc87e04a30.json
handle resize event
examples/webgl_buffergeometry_instancing_lambert.html
@@ -387,6 +387,19 @@ stats = new Stats(); document.body.appendChild( stats.dom ); + // + + window.addEventListener( 'resize', onWindowResize, false ); + + } + + function onWindowResize( event ) { + + renderer.setSize( window.innerWidth, window.innerHeight ); + + camera.aspect = window.innerWidth / w...
false
Other
mrdoob
three.js
b61a4713d1a06c8fb282f75ddb81cae958431722.json
Add MMDPhysics doc
docs/examples/animations/MMDPhysics.html
@@ -0,0 +1,112 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8" /> + <base href="../../" /> + <script src="list.js"></script> + <script src="page.js"></script> + <link type="text/css" rel="stylesheet" href="page.css" /> + </head> + <body> + <h1>[name]</h1> + + <p class="desc"> A Physics han...
false
Other
mrdoob
three.js
b2db307a6f47197b2b9638994f37d12e045f3454.json
Add CCDIKSolver doc
docs/examples/animations/CCDIKSolver.html
@@ -0,0 +1,100 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8" /> + <base href="../../" /> + <script src="list.js"></script> + <script src="page.js"></script> + <link type="text/css" rel="stylesheet" href="page.css" /> + </head> + <body> + <h1>[name]</h1> + + <p class="desc"> A solver for ...
false
Other
mrdoob
three.js
202bbb3422e0884db972df6d022dec11393f7e99.json
fix minor issue #13988
src/extras/core/Font.js
@@ -40,7 +40,7 @@ Object.assign( Font.prototype, { function createPaths( text, size, divisions, data ) { - var chars = String( text ).split( '' ); + var chars = Array.from ? Array.from( text ) : String( text ).split( '' ); // see #13988 var scale = size / data.resolution; var line_height = ( data.boundingBox.y...
false
Other
mrdoob
three.js
a355aa803bb47d0725bf17bf39e9a0a8865e981b.json
use var instead of const
src/math/Box3.js
@@ -564,31 +564,31 @@ Object.assign( Box3.prototype, { // transform of empty box is an empty box. if ( this.isEmpty( ) ) return this; - const m = matrix.elements; + var m = matrix.elements; - const xax = m[ 0 ] * this.min.x; - const xay = m[ 1 ] * this.min.x; - const xaz = m[ 2 ] * this.min.x; + var xax...
false
Other
mrdoob
three.js
0aa9bac390903430b7f1c8b675382e44326e352b.json
Add .getBoneByName() to Skeleton Doc
docs/api/objects/Skeleton.html
@@ -103,6 +103,13 @@ <h3>[method:null update]()</h3> This is called automatically by the [page:WebGLRenderer] if the skeleton is used with a [page:SkinnedMesh]. </div> + <h3>[method:Bone getBoneByName]( [param:String name] )</h3> + <div> + name -- String to match to the Bone's .name property. <br /><br /> + ...
false
Other
mrdoob
three.js
45ea96769e67036a5bfda88b41aa86ce609944a4.json
translate this passage.
docs/api/zh/deprecated/DeprecatedList.html
@@ -15,15 +15,10 @@ <h1>已被弃用API列表(Deprecated API List)</h1> 下面就列举出了这些API元素,以及一些关于他们的替代信息。 </p> - - - - - - - - - + + + + <h2>音频(Audio)</h2> <h3>[page:Audio]</h3> @@ -36,15 +31,9 @@ <h3>[page:BinaryTextureLoader]</h3> <p>BinaryTextureLoader 已被重命名为 [page:DataTextureLoader].</p> - - - - - -...
false
Other
mrdoob
three.js
bfefe8a38ccee9f2069e78b376836801afcc0fbf.json
Correct some expression in the passage
docs/manual/zh/introduction/Useful-links.html
@@ -23,7 +23,7 @@ <h1>一些有用的链接([name])</h1><br /> <h2>帮助论坛</h2> <p> Three.js官方使用[link:http://stackoverflow.com/tags/three.js/info Stack Overflow]来处理帮助请求。 - 如果你需要一些帮助,这才是你所要去的地方。请*一定不要*在GitHub上提issue来寻求帮助。 + 如果你需要一些帮助,这才是你所要去的地方。请<strong>一定不要</strong>在GitHub上提issue来寻求帮助。 </p> @@ -63,7 +63,7 @@ <h3>...
false
Other
mrdoob
three.js
9d382d6f664720486beca0b937f70c1ba545cacc.json
fix soft tabs
test/unit/src/animation/AnimationAction.tests.js
@@ -13,19 +13,19 @@ import { LoopOnce, LoopRepeat, LoopPingPong } from '../../../../src/constants'; function createAnimation(){ - var root = new Object3D(); + var root = new Object3D(); var mixer = new AnimationMixer(root); var track = new NumberKeyframeTrack( ".rotation[x]", [ 0, 1000 ], [ 0, 360 ] ); va...
false
Other
mrdoob
three.js
c802a474795da6d60ae82533e57e138e76d0f5c4.json
Add test for getMixer, getClip & getRoot
test/unit/src/animation/AnimationAction.tests.js
@@ -13,13 +13,19 @@ import { LoopOnce, LoopRepeat, LoopPingPong } from '../../../../src/constants'; function createAnimation(){ - - var mixer = new AnimationMixer(new Object3D()); + var root = new Object3D(); + var mixer = new AnimationMixer(root); var track = new NumberKeyframeTrack( ".rotation[x]", [ 0, 100...
false
Other
mrdoob
three.js
15e41aff657691220528fcd7f2c4f02572055e86.json
Simplify image parsing
examples/js/loaders/FBXLoader.js
@@ -163,14 +163,11 @@ // Parse FBXTree.Objects.Video for embedded image data // These images are connected to textures in FBXTree.Objects.Textures - // via FBXTree.Connections. Note that images can be duplicated here, in which case only one - // may have a .Content field - we'll check for this and duplicate the d...
false
Other
mrdoob
three.js
f8c0af8748e9046a5e8700c18517ebd09839e210.json
Add unit test for clipTime in AnimationAtion
test/unit/src/animation/AnimationAction.tests.js
@@ -16,9 +16,9 @@ function createAnimation(){ var mixer = new AnimationMixer(new Object3D()); var track = new NumberKeyframeTrack( ".rotation[x]", [ 0, 1000 ], [ 0, 360 ] ); - var clip = new AnimationClip( "clip1", 1000, [track] ); + var clip = new AnimationClip( "clip1", 1000, [track] ); - var animationAction...
false
Other
mrdoob
three.js
184db4b62adcb62b49f604289a81f5393119243a.json
tabify the issues
test/unit/src/animation/AnimationAction.tests.js
@@ -41,7 +41,7 @@ export default QUnit.module( 'Animation', () => { // PUBLIC STUFF QUnit.test( "play", ( assert ) => { - var {mixer,animationAction} = createAnimation(); + var {mixer,animationAction} = createAnimation(); var animationAction2 = animationAction.play(); assert.equal( animatio...
false
Other
mrdoob
three.js
cc8d54c1a81e350f89d094a42e342508ec476fd0.json
add Test for setLoop (LoopOnce,LoopRepeat)
test/unit/src/animation/AnimationAction.tests.js
@@ -8,6 +8,7 @@ import { AnimationMixer } from '../../../../src/animation/AnimationMixer'; import { AnimationClip } from '../../../../src/animation/AnimationClip'; import { NumberKeyframeTrack } from '../../../../src/animation/tracks/NumberKeyframeTrack'; import { Object3D } from '../../../../src/core/Object3D'; +im...
false
Other
mrdoob
three.js
17791a42c5af98dd981311615c87b4c2dbad8589.json
Allow instantiating WebGLTextures from a worker
src/renderers/webgl/WebGLTextures.js
@@ -7,7 +7,7 @@ import { _Math } from '../../math/Math.js'; function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, infoMemory ) { - var _isWebGL2 = ( typeof WebGL2RenderingContext !== 'undefined' && _gl instanceof window.WebGL2RenderingContext ); + var _isWebGL2 = ( typeof WebGL2Rendering...
false
Other
mrdoob
three.js
a67575ea404363af75728f963f7fe2d658c1aec0.json
remove conditions that are always true
examples/js/loaders/XLoader.js
@@ -1480,7 +1480,6 @@ var model = _model; var animation = _animation; - var bindFlag = _isBind ? _isBind : true; if ( ! model ) { model = this.Meshes[ 0 ]; @@ -1565,16 +1564,14 @@ model.geometry.animations = []; } - if ( bindFlag ) { - model.geometry.animations.push( TH...
false
Other
mrdoob
three.js
bd76c7a3ecce17b8bf3004e4cc626f6ec8966e85.json
Improve code readability This also fixes https://lgtm.com/projects/g/mrdoob/three.js/snapshot/c47fb709c7f969c42bb0b8bb2316a8cf8a53754c/files/examples/js/loaders/AssimpLoader.js?sort=name&dir=ASC&mode=heatmap&excluded=false#x3eeae27c070bf750:1
examples/js/loaders/AssimpLoader.js
@@ -1128,26 +1128,30 @@ THREE.AssimpLoader.prototype = { } - if ( ! key ) return null; + if ( ! key ) { + + return null; - if ( key && nextKey ) { + } else if ( nextKey ) { var dT = nextKey.mTime - key.mTime; var T = key.mTime - time; var l = T / dT; retur...
false
Other
mrdoob
three.js
e5bceae52dc1322ea0a32a266ece8520e717a803.json
make objects shinier
examples/webgl_postprocessing_pixel.html
@@ -129,7 +129,7 @@ var geom = geomData[ Math.floor( Math.random() * geomData.length ) ]; var color = new THREE.Color(); color.setHSL( Math.random(), .7 + .2 * Math.random(), .5 + .1 * Math.random() ); - var mat = new THREE.MeshPhongMater...
false
Other
mrdoob
three.js
aa30c4cd507dd7be90a21e9c553a0229b90ce4ef.json
add extra space on bottom
examples/webgl_postprocessing_pixel.html
@@ -181,7 +181,6 @@ init(); animate(); - </script> </body> </html>
false
Other
mrdoob
three.js
1a197e68abf918ca2804de5958815dbd8c0f7b84.json
remove shadows and fix formatting
examples/webgl_postprocessing_pixel.html
@@ -77,8 +77,6 @@ var container = document.getElementById( 'container' ); renderer = new THREE.WebGLRenderer({antialias: true}); - renderer.shadowMap.enabled = true; - renderer.shadowMap.type = THREE.PCSoftShadowMap; renderer.setPixelRat...
false
Other
mrdoob
three.js
dbb5835931db11dbab1737c6a3f5b8e789bc5c95.json
Add Sprite pivot property
docs/api/objects/Sprite.html
@@ -57,7 +57,12 @@ <h3>[property:SpriteMaterial material]</h3> </div> - <h2>Methods</h2> + <h3>[property:Vector2 pivot]</h3> + <div> + The origin of the sprite, and the point around which the sprite rotates. The lower-left is (-0.5, -0.5). The upper-right is (0.5, 0.5). The default is (0.0, 0.0), the ...
true
Other
mrdoob
three.js
dbb5835931db11dbab1737c6a3f5b8e789bc5c95.json
Add Sprite pivot property
examples/webgl_sprites.html
@@ -119,22 +119,27 @@ var height = material.map.image.height; spriteTL = new THREE.Sprite( material ); + spriteTL.pivot.set( - 0.5, 0.5 ); spriteTL.scale.set( width, height, 1 ); sceneOrtho.add( spriteTL ); spriteTR = new THREE.Sprite( material ); + spriteTR.pivot.set( 0.5, 0.5 ); ...
true
Other
mrdoob
three.js
dbb5835931db11dbab1737c6a3f5b8e789bc5c95.json
Add Sprite pivot property
src/objects/Sprite.js
@@ -1,3 +1,4 @@ +import { Vector2 } from '../math/Vector2.js'; import { Vector3 } from '../math/Vector3.js'; import { Object3D } from '../core/Object3D.js'; import { SpriteMaterial } from '../materials/SpriteMaterial.js'; @@ -15,6 +16,8 @@ function Sprite( material ) { this.material = ( material !== undefined ) ...
true
Other
mrdoob
three.js
dbb5835931db11dbab1737c6a3f5b8e789bc5c95.json
Add Sprite pivot property
src/renderers/webgl/WebGLSpriteRenderer.js
@@ -55,6 +55,7 @@ function WebGLSpriteRenderer( renderer, gl, state, textures, capabilities ) { uvScale: gl.getUniformLocation( program, 'uvScale' ), rotation: gl.getUniformLocation( program, 'rotation' ), + pivot: gl.getUniformLocation( program, 'pivot' ), scale: gl.getUniformLocation( program, 'scale'...
true
Other
mrdoob
three.js
a064db482a032e3c1539eca99611777ae24b00b8.json
simplify getString method
examples/js/loaders/FBXLoader.js
@@ -3650,13 +3650,13 @@ getString: function ( size ) { - var a = new Uint8Array( size ); + var a = new Uint8Array( this.getUint8Array( size ) ); - for ( var i = 0; i < size; i ++ ) { + // for ( var i = 0; i < size; i ++ ) { - a[ i ] = this.getUint8(); + // a[ i ] = this.getUint8(); - } + ...
false
Other
mrdoob
three.js
0cd15ca493faf140fe0b73becfcf2273ae67a451.json
Revert a new line I have wrongly removed
examples/js/loaders/GLTFLoader.js
@@ -2051,6 +2051,7 @@ THREE.GLTFLoader = ( function () { geometries.push( geometry ); } + } return geometries;
false
Other
mrdoob
three.js
6e0892b963bfc3d0d1f1dc162804dafca2fb4f18.json
Update PDBLoader.js with Comments Added comments to better understand file parser and data structures in more detail.
examples/js/loaders/PDBLoader.js
@@ -4,7 +4,7 @@ */ THREE.PDBLoader = function ( manager ) { - + //add your own manager or use default manager this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; }; @@ -49,23 +49,50 @@ THREE.PDBLoader.prototype = { } function parseBond( start, length ) { - + /* +...
false
Other
mrdoob
three.js
6b8a0d501e2be2d2011788db75be923268d45d7d.json
Fix minor typo
docs/manual/introduction/Import-via-modules.html
@@ -19,7 +19,7 @@ <h1>[name]</h1><br /> </ul> </div> - <div>Using a dependency manager like npm avoids these caveats by allowing you to simply download and import your desired version of the libarary onto your machine.</div> + <div>Using a dependency manager like npm avoids these caveats by allowing you to s...
false
Other
mrdoob
three.js
86e8095ff46755911719016653fe37bf29af6562.json
Fix sprite renderer bug
src/renderers/webgl/WebGLSpriteRenderer.js
@@ -225,6 +225,7 @@ function WebGLSpriteRenderer( renderer, gl, state, textures, capabilities ) { state.setBlending( material.blending, material.blendEquation, material.blendSrc, material.blendDst, material.blendEquationAlpha, material.blendSrcAlpha, material.blendDstAlpha, material.premultipliedAlpha ); state....
false
Other
mrdoob
three.js
129ea49e81a3650255929ee8dd98a13c0361fef9.json
Remove special casing for `node.meshes`
examples/js/loaders/GLTFLoader.js
@@ -2171,37 +2171,16 @@ THREE.GLTFLoader = ( function () { ] ).then( function ( dependencies ) { return _each( __nodes, function ( _node, nodeId ) { - + var node = json.nodes[ nodeId ]; - var meshes; - - if ( node.mesh !== undefined) { - - meshes = [ node.mesh ]; - - } else if ( nod...
false
Other
mrdoob
three.js
0ace56e97c3ab1b96c0510fab6fad4193e4dbad7.json
replace .length with variable
src/extras/curves/CatmullRomCurve3.js
@@ -114,7 +114,7 @@ CatmullRomCurve3.prototype.getPoint = function ( t, optionalTarget ) { if ( this.closed ) { - intPoint += intPoint > 0 ? 0 : ( Math.floor( Math.abs( intPoint ) / points.length ) + 1 ) * points.length; + intPoint += intPoint > 0 ? 0 : ( Math.floor( Math.abs( intPoint ) / l ) + 1 ) * l; } ...
false
Other
mrdoob
three.js
a18dc1a8e3c88244ec4d95de0b5070d45afa4157.json
Add Texture.updateMatrix() method
docs/api/textures/Texture.html
@@ -154,21 +154,21 @@ <h3>[property:number rotation]</h3> <h3>[property:Vector2 center]</h3> <p> - Indicates where the center of rotation is. To rotate around the center point set this value to (0.5, 0.5). Default value is (0.0, 0.0). + The point around which rotation occurs. A value of (0.5, 0.5) corresponds...
true
Other
mrdoob
three.js
a18dc1a8e3c88244ec4d95de0b5070d45afa4157.json
Add Texture.updateMatrix() method
src/renderers/WebGLRenderer.js
@@ -2050,12 +2050,7 @@ function WebGLRenderer( parameters ) { if ( uvScaleMap.matrixAutoUpdate === true ) { - var offset = uvScaleMap.offset; - var repeat = uvScaleMap.repeat; - var rotation = uvScaleMap.rotation; - var center = uvScaleMap.center; - - uvScaleMap.matrix.setUvTransform( offset.x, o...
true
Other
mrdoob
three.js
a18dc1a8e3c88244ec4d95de0b5070d45afa4157.json
Add Texture.updateMatrix() method
src/textures/Texture.js
@@ -70,6 +70,12 @@ Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), { isTexture: true, + updateMatrix: function () { + + this.matrix.setUvTransform( this.offset.x, this.offset.y, this.repeat.x, this.repeat.y, this.rotation, this.center.x, this.center.y ); + + }, + clone: function ...
true
Other
mrdoob
three.js
79c66a2f13b39f5663fe0ff4d523a4dc89fa3c5e.json
fix lint error
src/core/BufferGeometry.js
@@ -68,7 +68,7 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy addAttribute: function ( name, attribute ) { - if ( ! (attribute && (attribute.isBufferAttribute || attribute.isInterleavedBufferAttribute || attribute.isGLBufferAttribute) ) ) { + if ( ! ( attribute && ( attribut...
false
Other
mrdoob
three.js
f0b3212aad1f029393d99bb917556994a865fdb0.json
test absolute span
examples/js/loaders/FBXLoader.js
@@ -2692,9 +2692,11 @@ var initialValue = curve.values[ i - 1 ]; var valuesSpan = curve.values[ i ] - initialValue; - if ( valuesSpan >= 180 ) { + var absoluteSpan = Math.abs( valuesSpan ); - var numSubIntervals = Math.abs( valuesSpan / 180 ); + if ( absoluteSpan >= 180 ) { + + var numSubInterva...
false
Other
mrdoob
three.js
c52335f473eadbaac6a84b04529de3c3afa20436.json
Adjust camera in VRM loader example
examples/webgl_loader_vrm.html
@@ -61,10 +61,10 @@ document.body.appendChild( container ); camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 0.25, 20 ); - camera.position.set( 0, 0.8, - 2.2 ); + camera.position.set( 0, 1.6, - 2.2 ); controls = new THREE.OrbitControls( camera ); - controls.t...
false
Other
mrdoob
three.js
37ab2c2420f40d233756e4249a4fdf66b44c2258.json
fix Filename to RelativeFilename in parseImage() The path of "Filename" property is useless. It depends on local directory (ex. C:\somewhere\blahblah\shitty.fbx). RelativeFilename is better for URI.
examples/js/loaders/FBXLoader.js
@@ -173,7 +173,7 @@ var id = parseInt( nodeID ); - images[ id ] = videoNode.Filename; + images[ id ] = videoNode.RelativeFilename || videoNode.Filename; // raw image data is in videoNode.Content if ( 'Content' in videoNode ) {
false
Other
mrdoob
three.js
684d5d4dbd5918c429a9b75969f4490a8e730eae.json
Change variable name from cube to klein Because the object is not a cube, it's a klein bottle.
docs/api/geometries/ParametricGeometry.html
@@ -37,8 +37,8 @@ <h2>Example</h2> <code> var geometry = new THREE.ParametricGeometry( THREE.ParametricGeometries.klein, 25, 25 ); var material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } ); - var cube = new THREE.Mesh( geometry, material ); - scene.add( cube ); + var klein = new THREE.Mesh( geometry...
false
Other
mrdoob
three.js
6787bbc2af6c5b91f231d60d208c1890185bcf6e.json
fix renderOrder ReflectorRTT
examples/js/objects/ReflectorRTT.js
@@ -4,6 +4,8 @@ THREE.ReflectorRTT = function ( geometry, options ) { this.geometry.setDrawRange( 0, 0 ); // avoid rendering geometry + this.renderOrder = -Infinity; // render RTT first + }; THREE.ReflectorRTT.prototype = Object.create( THREE.Reflector.prototype );
false
Other
mrdoob
three.js
b0c0e588b2763973add1ec6aabc3d74a372fd688.json
remove console log
examples/js/loaders/FBXLoader.js
@@ -2791,8 +2791,6 @@ var innerPropFlag = props[ 3 ]; var innerPropValue = props[ 4 ]; - console.log( innerPropType1 ) - // cast values where needed, otherwise leave as strings switch ( innerPropType1 ) {
false
Other
mrdoob
three.js
c49a2071502252156c890be191af8b03b7aaf319.json
Add parsing of double sided extra effect elements Blender exports the double sided property and this change will make the Collada Loader recognise this property element.
examples/js/loaders/ColladaLoader.js
@@ -1062,6 +1062,10 @@ THREE.ColladaLoader.prototype = { case 'technique': data.technique = parseEffectTechnique( child ); break; + + case 'extra': + data.extra = parseEffectExtra( child ); + break; } @@ -1328,6 +1332,54 @@ THREE...
false
Other
mrdoob
three.js
fc38b8ca4fcd5d465b028387cd5b025be5f1bd2a.json
Add MMDAnimationHelper documentation
docs/examples/animations/MMDAnimationHelper.html
@@ -0,0 +1,162 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8" /> + <base href="../../" /> + <script src="list.js"></script> + <script src="page.js"></script> + <link type="text/css" rel="stylesheet" href="page.css" /> + </head> + <body> + <h1>[name]</h1> + + <p class="desc"> A animation h...
false
Other
mrdoob
three.js
83ed893f1ba50617cdc4db232779e89a3a11ae72.json
Add MMDLoader documentation
docs/examples/loaders/MMDLoader.html
@@ -0,0 +1,118 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8" /> + <base href="../../" /> + <script src="list.js"></script> + <script src="page.js"></script> + <link type="text/css" rel="stylesheet" href="page.css" /> + </head> + <body> + [page:Loader] &rarr; + <h1>[name]</h1> + + <p cla...
false
Other
mrdoob
three.js
21043ad1601b0d9e89558b4ec5cb36e64e234ca8.json
Update MMD examples
examples/webgl_loader_mmd.html
@@ -43,6 +43,7 @@ <script src="js/effects/OutlineEffect.js"></script> <script src="js/animation/CCDIKSolver.js"></script> <script src="js/animation/MMDPhysics.js"></script> + <script src="js/animation/MMDAnimationHelper.js"></script> <script src="js/controls/OrbitControls.js"></script> @@ -120,37 +121,...
true
Other
mrdoob
three.js
21043ad1601b0d9e89558b4ec5cb36e64e234ca8.json
Update MMD examples
examples/webgl_loader_mmd_audio.html
@@ -45,6 +45,7 @@ <script src="js/effects/OutlineEffect.js"></script> <script src="js/animation/CCDIKSolver.js"></script> <script src="js/animation/MMDPhysics.js"></script> + <script src="js/animation/MMDAnimationHelper.js"></script> <script src="js/Detector.js"></script> <script src="js/libs/stats.mi...
true
Other
mrdoob
three.js
21043ad1601b0d9e89558b4ec5cb36e64e234ca8.json
Update MMD examples
examples/webgl_loader_mmd_pose.html
@@ -43,6 +43,7 @@ <script src="js/effects/OutlineEffect.js"></script> <script src="js/animation/CCDIKSolver.js"></script> <script src="js/animation/MMDPhysics.js"></script> + <script src="js/animation/MMDAnimationHelper.js"></script> <script src="js/Detector.js"></script> <script src="js/libs/stats.mi...
true
Other
mrdoob
three.js
f2e3a813b2b533145b80be1febd5db7a41447e28.json
Use singleline if for uuid validation
src/loaders/ObjectLoader.js
@@ -456,13 +456,11 @@ Object.assign( ObjectLoader.prototype, { for ( var i = 0; i < json.length; i ++ ) { - var clip = AnimationClip.parse( json[ i ] ); + var data = json[ i ]; - if ( json[ i ].uuid !== undefined ) { + var clip = AnimationClip.parse( data ); - clip.uuid = json[ i ].uuid; - - } +...
false
Other
mrdoob
three.js
3fb9d61eb91d6fdb0e541061aede623c9b067f3a.json
fix lint error
examples/js/renderers/CSS2DRenderer.js
@@ -133,7 +133,7 @@ THREE.CSS2DRenderer = function () { return result; - } + }; var zOrder = function ( scene ) {
false
Other
mrdoob
three.js
4f780dceb7514561bd2aa43d8dc8e425a608323f.json
add an example for CSS2DRenderer
docs/examples/renderers/CSS2DRenderer.html
@@ -33,6 +33,7 @@ <h1>[name]</h1> <h2>Examples</h2> <p> + [example:css2d_label]<br> [example:webgl_loader_pdb molecules] </p>
true
Other
mrdoob
three.js
4f780dceb7514561bd2aa43d8dc8e425a608323f.json
add an example for CSS2DRenderer
examples/css2d_label.html
@@ -0,0 +1,150 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> + <title>three.js css2d - label</title> + <style> + body { + background-color: #000; + margin: 0; + overflow: hidden; ...
true
Other
mrdoob
three.js
4f780dceb7514561bd2aa43d8dc8e425a608323f.json
add an example for CSS2DRenderer
examples/files.js
@@ -358,6 +358,9 @@ var files = { "css3d_sprites", "css3d_youtube" ], + "css2d": [ + "css2d_label" + ], "canvas": [ "canvas_ascii_effect", "canvas_camera_orthographic",
true
Other
mrdoob
three.js
1b56759e45641e6cf5c635c48406435de8fd25e5.json
Prevent aspect from affecting rotate speed
examples/js/controls/OrbitControls.js
@@ -461,10 +461,8 @@ THREE.OrbitControls = function ( object, domElement ) { var element = scope.domElement === document ? scope.domElement.body : scope.domElement; - // rotating across whole screen goes 360 degrees around - rotateLeft( 2 * Math.PI * rotateDelta.x / element.clientWidth ); + rotateLeft( 2 * Ma...
false
Other
mrdoob
three.js
243e853a4f93f30a1a983575d02cac01a2727dd8.json
Remove MMD KeyframeTrackEx
examples/js/loaders/MMDLoader.js
@@ -354,7 +354,15 @@ THREE.MMDLoader.prototype.pourVmdIntoCamera = function ( camera, vmd, name ) { } - return new THREE.MMDLoader[ type ]( node, times, values, interpolations ); + var track = new THREE[ type ]( node, times, values ); + + track.createInterpolant = function InterpolantFactoryMethodCubicBez...
false
Other
mrdoob
three.js
4da3cc11407434a6ccc75d8789b2622cb02a57cb.json
Add uuid field to AnimationClip.toJSON When converting the scene to JSON all objects except animation clips have uuid fields included. This change adds the uuid to the JSON object for AnimationClips.
src/animation/AnimationClip.js
@@ -59,7 +59,8 @@ Object.assign( AnimationClip, { 'name': clip.name, 'duration': clip.duration, - 'tracks': tracks + 'tracks': tracks, + 'uuid': clip.uuid };
false
Other
mrdoob
three.js
65ea3db93aa8ea6cdff9f9dce185b936840f79af.json
add rotateOnWorldAxis method to Object3D
docs/api/core/Object3D.html
@@ -320,6 +320,15 @@ <h3>[method:Object3D rotateOnAxis]( [page:Vector3 axis], [page:Float angle] )</h Rotate an object along an axis in object space. The axis is assumed to be normalized. </div> + <h3>[method:Object3D rotateOnWorldAxis]( [page:Vector3 axis], [page:Float angle] )</h3> + <div> + axis -- A norm...
true
Other
mrdoob
three.js
65ea3db93aa8ea6cdff9f9dce185b936840f79af.json
add rotateOnWorldAxis method to Object3D
src/core/Object3D.js
@@ -170,6 +170,26 @@ Object.assign( Object3D.prototype, EventDispatcher.prototype, { }(), + rotateOnWorldAxis: function () { + + // rotate object on axis in world space + // axis is assumed to be normalized + // method assumes no rotated parent + + var q1 = new Quaternion(); + + return function rotateOnW...
true
Other
mrdoob
three.js
5408bd8978e9be03ef7ca70d8f57963bdb780878.json
Add inLineCurve3 check
src/extras/core/CurvePath.js
@@ -171,8 +171,9 @@ CurvePath.prototype = Object.assign( Object.create( Curve.prototype ), { var curve = curves[ i ]; var resolution = ( curve && curve.isEllipseCurve ) ? divisions * 2 : ( curve && curve.isLineCurve ) ? 1 - : ( curve && curve.isSplineCurve ) ? divisions * curve.points.length - : d...
false