Aframe 建模最佳实践

Aframe 建模最佳实践,aframe,Aframe,我花了几天的时间研究应该与框架一起使用的模型,用blender构建,导出到.obj。一切都进行得非常顺利,因此到目前为止的经验是非常积极的 直到一个对象在对一个迄今为止运行良好的模型进行了一些小的更改之后开始抛出异常。堆栈跟踪是 aframe.js:sourcemap:27095 Uncaught TypeError: Cannot set property 'value' of undefined at initMaterial (aframe.js:sourcemap:27095)

我花了几天的时间研究应该与框架一起使用的模型,用blender构建,导出到.obj。一切都进行得非常顺利,因此到目前为止的经验是非常积极的

直到一个对象在对一个迄今为止运行良好的模型进行了一些小的更改之后开始抛出异常。堆栈跟踪是

aframe.js:sourcemap:27095 Uncaught TypeError: Cannot set property 'value' of undefined
    at initMaterial (aframe.js:sourcemap:27095)
    at setProgram (aframe.js:sourcemap:27191)
    at WebGLRenderer.renderBufferDirect (aframe.js:sourcemap:26139)
    at renderObjects (aframe.js:sourcemap:26961)
    at WebGLRenderer.render (aframe.js:sourcemap:26698)
    at THREE.VREffect.render (aframe.js:sourcemap:79772)
    at HTMLElement.value (aframe.js:sourcemap:74829)
    at bound (aframe.js:sourcemap:78097)
56aframe.js:sourcemap:27732 Uncaught TypeError: Cannot set property 'needsUpdate' of undefined
    at markUniformsLightsNeedsUpdate (aframe.js:sourcemap:27732)
    at setProgram (aframe.js:sourcemap:27325)
    at WebGLRenderer.renderBufferDirect (aframe.js:sourcemap:26139)
    at renderObjects (aframe.js:sourcemap:26961)
    at WebGLRenderer.render (aframe.js:sourcemap:26698)
    at THREE.VREffect.render (aframe.js:sourcemap:79772)
    at HTMLElement.value (aframe.js:sourcemap:74829)
    at bound (aframe.js:sourcemap:78097)
我发现了有问题的对象,所以我只是重建它,这次没什么大不了的

但是:当这个过程的后期出现这样的问题时,仅仅重建可能并不那么容易。因此,我的问题是,是否有任何一般的提示,以防止这种破坏。例如,要注意什么或要远离哪些搅拌机功能

现在重建模型很容易,但在以后的生产过程中可能会困难得多。我想在将来防止这种情况发生


对于我来说,从blender导出到gltf失败,因为已经有了非常简单的对象。

我不知道该如何处理这个错误;想分享一个坏掉的模型吗?对于glTF,如果您正在使用,请提交bug或寻求帮助,因为glTF通常是我们推荐的;想分享一个坏掉的模型吗?对于glTF,如果您正在使用,请提交bug或寻求帮助,因为glTF通常是我们推荐的。