Hi All, I know it has been a while this thread, but it has been really useful for me the whole of this weekend, but I'm stuck and wonder if anybody could help please?
I downloaded DBear's sample file, I feel I know every inch of this file inside out now and have been back and forth from the ThreeJS website resources and back.
I'm not a coder, but can hack away like doing a crossword, see familiar patterns change variables etc, what I have managed to do is:
- Add another OBJ file
- Change camera position, lighting, Alpha for the background, set contious rotation.
What I can't do and am really struggling with, so thought I'd ask;
I can't get a different materials image to attach. The OBJ always shows untextured no matter what I do. Futher to this any changes to the texture code from the ThreeJS resources results in the OBJ itself being removed from view completely. How do I add another JPG image, even if it is just a blank colour square to colour the model a single colour.
Ideally though what I do want to be able to do more than using a JPG image is to attach a MTL texture. I've tried everything, hours and hours all weekend swapping code, checking, double checking, testing but any changes here just results in nothing at all showing. Any ideas how to do this?
I've attached my project showing what I have done and the new textures (I can't add) in the resources as JPG and MTL. Sorry I'm not a coder, just good at getting the jist of what is going on in the code but then get really stuck.
Any help would be massively appreciated, thanksThreeJS_OBJandJPG.zip (247.8 KB)