examples/FBXLoader.js
function () {

			var images = {};
			var blobs = {};

			if ( 'Video' in fbxTree.Objects ) {

				var videoNodes = fbxTree.Objects.Video;

				for ( var nodeID in videoNodes ) {

					var videoNode = videoNodes[ nodeID ];

					var id = parseInt( nodeID );

					images[ id ] = videoNode.RelativeFilename || videoNode.Filename;

					// raw image data is in videoNode.Content
					if ( 'Content' in videoNode ) {

						var arrayBufferContent = ( videoNode.Content instanceof ArrayBuffer ) && ( videoNode.Content.byteLength > 0 );
						var base64Content = ( typeof videoNode.Content === 'string' ) && ( videoNode.Content !== '' );

						if ( arrayBufferContent || base64Content ) {

							var image = this.parseImage( videoNodes[ nodeID ] );

							blobs[ videoNode.RelativeFilename || videoNode.Filename ] = image;

						}

					}

				}

			}

			for ( var id in images ) {

				var filename = images[ id ];

				if ( blobs[ filename ] !== undefined ) images[ id ] = blobs[ filename ];
				else images[ id ] = images[ id ].split( '\\' ).pop();

			}

			return images;

		}
function () {

			var images = {};
			var blobs = {};

			if ( 'Video' in fbxTree.Objects ) {

				var videoNodes = fbxTree.Objects.Video;

				for ( var nodeID in videoNodes ) {

					var videoNode = videoNodes[ nodeID ];

					var id = parseInt( nodeID );

					images[ id ] = videoNode.RelativeFilename || videoNode.Filename;

					// raw image data is in videoNode.Content
					if ( 'Content' in videoNode ) {

						var arrayBufferContent = ( videoNode.Content instanceof ArrayBuffer ) && ( videoNode.Content.byteLength > 0 );
						var base64Content = ( typeof videoNode.Content === 'string' ) && ( videoNode.Content !== '' );

						if ( arrayBufferContent || base64Content ) {

							var image = this.parseImage( videoNodes[ nodeID ] );

							blobs[ videoNode.RelativeFilename || videoNode.Filename ] = image;

						}

					}

				}

			}

			for ( var id in images ) {

				var filename = images[ id ];

				if ( blobs[ filename ] !== undefined ) images[ id ] = blobs[ filename ];
				else images[ id ] = images[ id ].split( '\\' ).pop();

			}

			return images;

		}
function ( ) { var images = { } ; var blobs = { } ; if ( 'Video' in fbxTree . Objects ) { var videoNodes = fbxTree . Objects . Video ; for ( var nodeID in videoNodes ) { var videoNode = videoNodes [ nodeID ] ; var id = parseInt ( nodeID ) ; images [ id ] = videoNode . RelativeFilename || videoNode . Filename ; // raw image data is in videoNode.Content if ( 'Content' in videoNode ) { var arrayBufferContent = ( videoNode . Content instanceof ArrayBuffer ) && ( videoNode . Content . byteLength > 0 ) ; var base64Content = ( typeof videoNode . Content === 'string' ) && ( videoNode . Content !== '' ) ; if ( arrayBufferContent || base64Content ) { var image = this . parseImage ( videoNodes [ nodeID ] ) ; blobs [ videoNode . RelativeFilename || videoNode . Filename ] = image ; } } } } for ( var id in images ) { var filename = images [ id ] ; if ( blobs [ filename ] !== undefined ) images [ id ] = blobs [ filename ] ; else images [ id ] = images [ id ] . split ( '\\' ) . pop ( ) ; } return images ; }
Parse FBXTree.Objects.Video for embedded image data These images are connected to textures in FBXTree.Objects.Textures via FBXTree.Connections.
Parse FBXTree . Objects . Video for embedded image data These images are connected to textures in FBXTree . Objects . Textures via FBXTree . Connections .