Code Monkey home page Code Monkey logo

Comments (12)

pjcozzi avatar pjcozzi commented on May 30, 2024

Can you share the original OBJ model so we can debug this?

from obj2gltf.

guazipi avatar guazipi commented on May 30, 2024

pjcozzi, Thank you very much!
归档.zip

from obj2gltf.

lilleyse avatar lilleyse commented on May 30, 2024

Thanks for sending over the model. The problem was caused by the formatting of the obj file, in particular your file defines faces like f 596/596/ 688/688/ 2116/2116/ whereas the code expected f 596/596 688/688 2116/2116. I made a quick change to support that formatting, and tested that it loads without errors in Cesium.

from obj2gltf.

guazipi avatar guazipi commented on May 30, 2024

Thank you very much, I'm glad to hear that. You mean I have to change the file like f 596/596/ 688/688/ 2116/2116/ to f 596/596 688/688 2116/2116 one by one? Oh, that's a terrible news. I'll try it right now, thank you again!

from obj2gltf.

lilleyse avatar lilleyse commented on May 30, 2024

I made a change to the code to support the formatting, just download it again and test it out. You don't need to do it by hand.

from obj2gltf.

guazipi avatar guazipi commented on May 30, 2024

awesome,I've tested it and it ran in Cesium without errors, but I have another problem which is that texture isn't on his position. Is your texture on the right position when you tested it?
2015-12-24 11 37 05
It should be like this:
2015-12-24 11 39 29
Look forward to your reply!

from obj2gltf.

lilleyse avatar lilleyse commented on May 30, 2024

I'm not completely sure why this is happening, but one temporary fix is to flip the image vertically. It looks correct to me now:
capture

from obj2gltf.

guazipi avatar guazipi commented on May 30, 2024

Can you share the code to me? Thank you very much

from obj2gltf.

lilleyse avatar lilleyse commented on May 30, 2024

I just flipped the image in Paint. Once again, its a temporary fix and I hope to find the real problem.

from obj2gltf.

guazipi avatar guazipi commented on May 30, 2024

Actually, I don't understand what you said about flipped the image, how did you operate the texture of gltf model?

from obj2gltf.

guazipi avatar guazipi commented on May 30, 2024

Hi, Sean, I am here again. Sorry to disturb you again, but I still get it about 'flip the image', I just don't understand how you can operate the texture of model. I add the model as an entity on the Cesium, Please help me to figure it out and show me how to do it, thank you very much, look forward to your reply!

from obj2gltf.

lilleyse avatar lilleyse commented on May 30, 2024

Sorry for the delay. What I mean about flipping the image is doing it in some outside program, you shouldn't have to make any changes in Cesium or the glTF model. If you use this image here it should work for you as well.
tile_ 000_ 000_ 000_l18_0001_0

from obj2gltf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.