I check on react we have one concept call the error boundaries that help to show an user friendly error message but i need some functionality in three js any help.
Means i see that when my three js code fails to my screen turn out to be blank i dont need that please if some one suggest me something to achieve my task
Any form of error handling has to be handled on app level. three.js does not provide any form of UI elements to communicate an error situation. So you what you have to do is ordinary JavaScript error handling e.g. via try/catch.
@Mugen87 i know that three js is simply javascript i only post the ticket to see if some thing is available
There is one more query for you if you can help so please
For my dxf terrain the raycasting is not working i am not able to get the intersects
let intersects = raycaster.intersectObjects([object], true);
even i set the layers too any specific reason
and i got one ticket for advance tutorial is it from the three js team ?
let raycaster = new THREE.Raycaster(point, projectionVector)
if you are using react, and if you drive threejs in jsx via react-three-fiber, react error boundaries work as usual. as well as suspense. i would definitively recommend it. threejs doesn’t have any means to handle errors, you’ll be trycatching. not that it should.