我用three的objload报这个错哎,
VM88:1 thirdScriptError THREE.OBJLoader is not a constructor;at SelectorQuery callback function TypeError: THREE.OBJLoader is not a constructor at ye.loadmodule (http://127.0.0.1:17823/appservice/index/index.js:80:5) at ye.initScene (http://127.0.0.1:17823/appservice/index/index.js:65:10) at n.
(http://127.0.0.1:17823/appservice/index/index.js:100:13) at Function.(WAService.js:1:731430) at WAService.js:1:102353 at WAService.js:1:731549 at Array.forEach () at WAService.js:1:731522
请问大佬怎么处理。
用three.js载入模型然后将摄像头画面传入datatexture就行了
我用three的objload报这个错哎, VM88:1 thirdScriptError THREE.OBJLoader is not a constructor;at SelectorQuery callback function TypeError: THREE.OBJLoader is not a constructor at ye.loadmodule (http://127.0.0.1:17823/appservice/index/index.js:80:5) at ye.initScene (http://127.0.0.1:17823/appservice/index/index.js:65:10) at n.
我添加进工程里了,
new THREE.OBJLoader()
.setMaterials( materials )
.setPath( 'url' )
.load( 'name', function ( object ) {
console.log(object);
object.position.z = - 10;
object.rotation.x = Math.PI*0.5;
object.scale.set(0.1,0.1,0.1);
scene.add( object );
}, onProgress, onError );
然后就会报上面的错误。
1、加个z-index可以满足
2、请具体描述问题,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
3、canvas同层之后就不会遮挡vconsole,camera是原生组件,这个暂时没有办法解决。
https://developers.weixin.qq.com/s/RC1o2Lmy7F9m
这个也不能透明显示后面的camera的画面么?
提供的代码片段有误
这是真机上跑的么?
我想用的是webgl的canvas
求回答。