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

about texture #13

Open
JentXiezzz opened this issue May 26, 2017 · 4 comments
Open

about texture #13

JentXiezzz opened this issue May 26, 2017 · 4 comments

Comments

@JentXiezzz
Copy link

Hello,Ovilia,actually,your document is very useful,for beginner at least.as you said in your document,there are some parts whitch are different from the newest three.js.for example,when I use 'THREE.ImageUtils.loadTexture',it doesn't work,it reminds me to use 'THREE.TextureLoader' instead,however when I use 'THREE.TextureLoader' ,it reminds me that THREE.Material: 'map' parameter is undefined. I checked out in the three.js file,I don't understand the source code.Therefore ,I want to know if there is some way that could avoid the situation like this.

@Ovilia
Copy link
Owner

Ovilia commented May 26, 2017

@JentXiezzz
Copy link
Author

hello,Ovilia,thanks for your reply.I tried to include lib/MTLLoader.js as you said,but it didn't work as well,by the way,I use the 85 version of three.js.It reminded me of 'DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': Tainted canvases may not be loaded.'

@JentXiezzz
Copy link
Author

I saw that lib/MTLLoader.js is not included in your examples https://github.com/Ovilia/ThreeExample.js/blob/master/Chapter4/4.5.1.html

@JentXiezzz
Copy link
Author

actually,i use the same code with yours,maybe there are some changes in the 85 version of three.js.

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

2 participants