Comments (7)
I'm preparing a PR that I think will solve this issue as part of its changes. (It's quite a large PR so maybe will take a week or two to finish it)
from three.js.
I now think you can solve the issue just by changing attribute( 'color' )
in the line
attribute( 'color', 'vec3' )
. If this works, feel free to file a PR with this change.from three.js.
Yes, this change worked correctly! Thank you. I can make a PR with this change now.
from three.js.
The error message is about the variable DiffuseColor, and that there is some exception assigning this variable.
DiffuseColor is for example mentioned here in the Three.js source code:
https://github.com/mrdoob/three.js/blob/master/examples/jsm/nodes/core/PropertyNode.js#L40
from three.js.
@LeviPesin Excellent. Do you understand what causes the error in this case? Is there some work-around quick-fix I can try? Thank you!
from three.js.
Possibly your geometry has a color
attribute (i.e. storing vertex colors), which is of type vec4
, not vec3
(it should be auto-converted to vec3
, but if not, that's a bug)? So as a workaround I would suggest changing it to vec3
.
from three.js.
How can I modify the code to get a more accurate error message? How can I get a stacktrace from this? Can I find out which geometry is causing this? There are many models loaded from glTF, so possibly some of these models have color attributes?
from three.js.
Related Issues (20)
- InstancedMesh: Proposal to support sorting, frustum culling HOT 24
- Adopt (or simply promote) a new true HDR file format leveraging JPEG/WEBP compression. Potentially alleviates HDR and EXR file size issues HOT 19
- Third Party Code causing extension rejection
- ImageLoader ignores credentials HOT 1
- Expand KTX2Loader to support RGB formats HOT 2
- [Bug] Invalid handling bufferSubData after grown source array size HOT 6
- webgpu rtt(clear bug)
- Semi-transparent textures are rendered differently with postprocessing HOT 3
- THREE.JS not working on Android 11 HOT 10
- THREE.JS not working on Android 14 Webview HOT 7
- Can materials support customizing their own toneMappingExposure strength and toneMapping type? Instead of forcing the use of global HOT 1
- THREE.Box3 compute has animation GLTF.It causes the model to be messed up HOT 7
- Adding a model using THREE InstancedMesh in mapboxgl, losing vertices after modifying and scaling HOT 3
- High gpu usage with WebGPURenderer returned with video textures HOT 7
- BatchedMesh: Provide approach for sharing geometry and transforms between BatchedMesh HOT 3
- setPositions on LineGeometry doesn't delete _maxInstanceCount, required when adding more points. HOT 2
- WebGPU: BufferGeometry position attribute not updating in WebGPU renderer HOT 6
- Using WebGPURenderer, putting the loaded GLB model into the scene will result in an error "TypeError: Cannot read properties of undefined (reading 'isInterleavedBufferAttribute') HOT 9
- Object3D: getObjectsByProperty improvement HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from three.js.