Comments (12)
Can you share the original OBJ model so we can debug this?
from obj2gltf.
pjcozzi, Thank you very much!
归档.zip
from obj2gltf.
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.
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.
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.
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?
It should be like this:
Look forward to your reply!
from obj2gltf.
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:
from obj2gltf.
Can you share the code to me? Thank you very much
from obj2gltf.
I just flipped the image in Paint. Once again, its a temporary fix and I hope to find the real problem.
from obj2gltf.
Actually, I don't understand what you said about flipped the image, how did you operate the texture of gltf model?
from obj2gltf.
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.
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.
from obj2gltf.
Related Issues (20)
- Blob is not defined at configureWebWorker HOT 5
- Loss of precision due to 32 bit floating point numbers
- Unlock cesium npm package from 1.84.0 HOT 2
- textures not loaded via mtl file HOT 2
- How can i use in Core PHP or LARAVEL?
- How to use obj2gltf at vite2?
- SyntaxError: Unexpected token '.' HOT 1
- losing colors when converting Obj->Glb/glTF HOT 1
- Install Error HOT 1
- include .mtl and textures in node js? HOT 1
- Add network path support
- JavaScript heap out of memory HOT 3
- Normal index 303 is out of bounds -causing socket hung and memory issue HOT 1
- Override texture flags not having any effect
- [suggestion] In obj2gltf, create a flag --doubleSidedMaterial to allow materials to be doubleSided regardless of transparency
- SyntaxError: Unexpected token '.' HOT 1
- glib? HOT 1
- Unpin mime and update to v4 or latest
- Emissive and base colors are incorrectly converted HOT 2
- Lines keep processing after Normal index 2412 is out of bounds Error causing Socket hanging
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obj2gltf.