@Pravin_Poudel As you said, it is working fine in fiddle, so I cannot figure out what causing this issue from your fiddle and provided code. Please provide fiddle with code in which you are getting error or relative code
If you setup correctly, I think it should not problem due to orbit controller.
and still you think orbit controller creating issue, try disabling it for testing purpose
The first issue I found, and I stop there, is that you don’t have a model named scene.gltf in the ./dist/client/models/drawing_room/ folder.
Look much more closely at my examples. Nothing is hidden from you.
There is a working JavaScript example, where you can view the complete un-obfuscated source code in one browser window. Press the <>
There is github repo. Instructions on the web page I linked already.
The examples I show, absolutely work. Whatever extra you do, is your responsibility. When you write code, change one thing at a time. If it breaks, then fix it before continuing onto the next change.
believe me i am totally following your code only !!!
That error is because there was no model in github repo because i included that in gitignore but now i have uploaded that in repo !!
You’ve made quite a lot of additions to my example, and restructured it quite a lot, I don’t understand where your problems started.
But you can start again.
Do one thing at a time. And check it works, before continuing onto the next.
git clone https://github.com/Sean-Bradley/Three.js-TypeScript-Boilerplate.git
cd Three.js-TypeScript-Boilerplate
git checkout annotations
npm install
npm run dev
I still think you need to go back and start from the beginning again. Your problems were self-inflicted by not checking your changes. And you seem to have some extra code in there that is trying to solve your problems. Like band-aids on band-aids.