question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FBXLoader: Invalid material indices break raycasting.

See original GitHub issue

Describe the bug

I’m not sure if it was the model that caused the mistake

fbxLoader.load(
                '/All.fbx',
                (object) => {
                    this.scene.add(object)

                    object.traverse(( child ) => {
                        if ( child.type == 'Group' && ['NAME'].includes(child.name) ) {
//used three.interactive
                            this.interactionManager.add(child)
                            child.addEventListener('click', () => {
                                 console.log('click')
                            })
                        }
                    })
                },

              ....

Screenshots

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
jonnywangcommented, Jul 19, 2022

thanks @Mugen87

I will communicate with the designer and verify later

Read more comments on GitHub >

github_iconTop Results From Across the Web

[r139 BUG?] `raycaster.intersectObject` fails because ...
I imported an FBX model, then when I try to run raycaster.intersectObject on it ... fbx-loader ... materialIndex is -1 which is an...
Read more >
Cannon Debug Renderer - Three.js Tutorials - sbcode.net
Trimesh(vertices, indices) } public static CreateConvexPolyhedron( geometry: THREE.BufferGeometry ): CANNON.ConvexPolyhedron { const position ...
Read more >
FBX Import Errors - Unreal Engine Documentation
Face Material index is not valid. Either it is mapped to the wrong index or the material is not available. The importer forces...
Read more >
How to change my scene background by creating a post ...
jsm/postprocessing/UnrealBloomPass.js'; import { FBXLoader } from '. ... then render bloom scene on top finalComposer.render(); break; } ...
Read more >
RizomUV CHANGELOG - Rizom-Lab
fix: can't load FBX using channel indexes in some cases ... new: FBX loader dialog now detect and display UV set naming ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found