Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: uvScaleMap.updateMatrix is not a function #2

Open
hopepdm opened this issue May 21, 2018 · 15 comments
Open

TypeError: uvScaleMap.updateMatrix is not a function #2

hopepdm opened this issue May 21, 2018 · 15 comments

Comments

@hopepdm
Copy link

hopepdm commented May 21, 2018

when i use this package in react-project, throw TypeError: uvScaleMap.updateMatrix is not a function,make me confuse.

part of code:

import './ThreeMap.css';
import React, { Component } from 'react';
import * as THREE from '../../node_modules/three/build/three.module';

import * as FBXLoader from 'three-fbx-loader';
import Orbitcontrols from 'three-orbitcontrols';
import Stats from '../common/threejslibs/stats.min.js';
...
let loader = new FBXLoader();
let fbxUrl = require('./B013.FBX');
loader.load(fbxUrl, function(obj) {
            group.add(obj);
            console.log('123');
     },function(){} , function(error){
                console.log(error);
})
...
@JaccoGoris
Copy link

I have the same issue, testing with three r93 and the xsi_man_skinning.fbx example

@sarahannnicholson
Copy link

I've gotten this issue as well. These are my console errors

Failed to load resource: the server responded with a status of 400 (103: Field 'time' on type 'Envelope' is older than the allowed min date. Expected: now - 172800000ms, Actual: now - 225692280ms)
mnt/d/my_site/node_modules/three/build/three.module.js:24438 Uncaught TypeError: uvScaleMap.updateMatrix is not a function
    at refreshUniformsCommon (mnt/d/my_site/node_modules/three/build/three.module.js:24438)
    at setProgram (mnt/d/my_site/node_modules/three/build/three.module.js:24223)
    at WebGLRenderer.renderBufferDirect (mnt/d/my_site/node_modules/three/build/three.module.js:23086)
    at renderObject (mnt/d/my_site/node_modules/three/build/three.module.js:23824)
    at renderObjects (mnt/d/my_site/node_modules/three/build/three.module.js:23794)
    at WebGLRenderer.render (mnt/d/my_site/node_modules/three/build/three.module.js:23548)
    at renderObj (mnt/d/my_site/src/components/threeJs/myThreeJsComponent.js:151)
    at animate (mnt/d/my_site/src/components/threeJs/myThreeJsComponent.js:147)

I was trying to follow the same code as this .fbx ThreeJs example

@jak2030
Copy link

jak2030 commented Aug 24, 2018

I have run into the same issue :)

@denniscual
Copy link

Mine too!

@davidessayan
Copy link

Same here ! Any solution ? :-/

@dotku
Copy link

dotku commented Oct 2, 2018

Follow up

@fzorzi
Copy link

fzorzi commented Dec 21, 2018

Did someone find a solution for this problem? Thanks

@arg0navt
Copy link

Approve, I have this problem too.

@gkalligeros
Copy link

same here any update?

@suphler
Copy link

suphler commented Feb 27, 2019

Also I have same issue

@fzorzi
Copy link

fzorzi commented Feb 27, 2019

Unfortunately I had to change approach. I put all thereejs code directly inside the index.html page (using JavaScript library). The communication between react classes and html page is solved by using websocket (easily managed by electron) .

@umurcg
Copy link

umurcg commented Feb 28, 2019

I've encountred with same issue. Solved with using official fbx loader.

@neoRiley
Copy link

neoRiley commented Mar 14, 2019

I've encountred with same issue. Solved with using official fbx loader.

Can you expand on that? What official loader? I installed this via npm and have this error. I installed after seeing it wasn't apart of THREE's npm install etc.

Thanks for any help

PS> using webpack/es6/babel setup with imports.

import * as THREE from 'three'; import * as FBXLoader from 'three-fbx-loader';

@umurcg
Copy link

umurcg commented Mar 15, 2019

https://www.npmjs.com/package/three-fbxloader-offical

@milkiq
Copy link

milkiq commented Apr 16, 2020

https://www.npmjs.com/package/three-fbxloader-offical

Thanks for solving my problem!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests