Git Product home page Git Product logo

3d-model-convert-to-gltf's Introduction

Welcome to my GitHub profile!!

👋 Hi there, I'm Jeffrey, a web full-stack developer with experience in deep learning, web3, front-end, back-end, web3d, etc...

💖 I'm passionate about exploring cutting-edge technologies and building innovative digital experiences.

📚 Check out my blog at A tower of nine stories(write by 🇨🇳).

📫 You can reach me by: ✉️ Email:[email protected]

📈 My GitHub Stats

Note: Top Languages section on my GitHub profile does not necessarily reflect my level of proficiency in each language.

Jeffrey's GitHub Stats

Jeffrey's Top Langs

🔥 My favorite open source projects

3d-model-convert-to-gltf's People

Contributors

dependabot[bot] avatar wangerzi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

3d-model-convert-to-gltf's Issues

FBX文件转换失败的原因未知?如何解决

(base) bash-5.1# conda run -n pythonocc python /opt/3d-model-convert-to-gltf/server/convert.py fbx /opt/3d-model-convert-to-gltf/assets/Samba_Dancing.fbx /opt/out_test.glb no-draco
ERROR conda.cli.main_run:execute(33): Subprocess for 'conda run ['python', '/opt/3d-model-convert-to-gltf/server/convert.py', 'fbx', '/opt/3d-model-convert-to-gltf/assets/Samba_Dancing.fbx', '/opt/out_test.glb', 'no-draco']' command failed. (See above for error)
True False

fbx2gltf: /usr/lib/libstdc++.so.6: no version information available (required by fbx2gltf)
fbx2gltf: /usr/lib/libstdc++.so.6: no version information available (required by fbx2gltf)
fbx2gltf: /usr/lib/libstdc++.so.6: no version information available (required by fbx2gltf)
fbx2gltf: /usr/lib/libstdc++.so.6: no version information available (required by fbx2gltf)
fbx2gltf: /usr/lib/libstdc++.so.6: no version information available (required by fbx2gltf)
fbx2gltf: /usr/lib/libstdc++.so.6: no version information available (required by fbx2gltf)
fbx2gltf: /usr/lib/libstdc++.so.6: no version information available (required by fbx2gltf)
fbx2gltf: /usr/lib/libstdc++.so.6: no version information available (required by fbx2gltf)
fbx2gltf: /usr/lib/libstdc++.so.6: no version information available (required by fbx2gltf)
fbx2gltf: /usr/lib/libstdc++.so.6: no version information available (required by fbx2gltf)
fbx2gltf: /usr/lib/libstdc++.so.6: no version information available (required by fbx2gltf)
Traceback (most recent call last):
File "/opt/3d-model-convert-to-gltf/server/convert.py", line 36, in
main()
File "/opt/3d-model-convert-to-gltf/server/convert.py", line 23, in main
out_convert_gltf_path = Convert.convert_by_type(sys.argv[1], os.path.abspath(sys.argv[2]), is_bin, need_draco)
File "/opt/3d-model-convert-to-gltf/server/service/Convert.py", line 220, in convert_by_type
result = model.handler(file_path, is_bin, need_draco)
File "/opt/3d-model-convert-to-gltf/server/service/Convert.py", line 186, in handler
raise ConvertException('fbx convert draco gltf fail, file:' + convert_gltf_path)
exception.ConvertException.ConvertException: fbx convert draco gltf fail, file:/opt/3d-model-convert-to-gltf/assets/Samba_Dancing.fbx.glb

Wrong rotation

When i try convert test.stl in assets directory to glb i get a model which have a different rotation (-90 degree around x). Can i get a midel with the same rotation ?

overly complicated

seriously needs to be refactored, readme should be like 2 lines something like

how to use:
2gltf stl.stl

thanks

请教

我获取了模型的树结构,怎么和gltf里面的nodes节点对应?

RPC调用返回格式问题

你好,博主,我使用您代码的例子调用RPC成功生产gltf文件,有生成glb文件的方法吗

Error when trying out the docker image or the `convert.sh` script

I just tried running the following:

./convert.sh stp ./assets/test.stp outputpath.gltf

and I get the following error:

ERROR conda.cli.main_run:execute(33): Subprocess for 'conda run ['python', '/opt/3d-model-convert-to-gltf/server/convert.py', 'stp', '/home/maxime/Downloads/step/3d-model-convert-to-gltf/assets/test.stp', '/home/maxime/Downloads/step/3d-model-convert-to-gltf/outputpath.gltf']' command failed.  (See above for error)
Traceback (most recent call last):
  File "/opt/3d-model-convert-to-gltf/server/convert.py", line 33, in <module>
    main()
  File "/opt/3d-model-convert-to-gltf/server/convert.py", line 20, in main
    out_convert_gltf_path = Convert.convert_by_type(sys.argv[1], os.path.abspath(sys.argv[2]), is_bin)
  File "/opt/3d-model-convert-to-gltf/server/service/Convert.py", line 219, in convert_by_type
    result = model.handler(file_path, is_bin)
TypeError: handler() missing 1 required positional argument: 'need_draco'

Am I missing something?

fbx format convert fail

1.GRPC Mode:

use command line to start in windows:

docker pull wj2015/3d-model-convert-to-gltf:latest
docker run -d -p 8999:8999 wj2015/3d-model-convert-to-gltf:latest

all success except fbx.

2.command line mode log:

D:\3d-model-convert-to-gltf\server\examples\python>docker run -v D:\3d-model-convert-to-gltf\assets:/assets wj2015/3d-model-convert-to-gltf:latest /bin/bash -c "cd /assets && conda run -n pythonocc python /opt/3d-model-convert-to-gltf/server/convert.py fbx Samba_Dancing.fbx test.glb"
ERROR conda.cli.main_run:execute(33): Subprocess for 'conda run ['python', '/opt/3d-model-convert-to-gltf/server/convert.py', 'fbx', 'Samba_Dancing.fbx', 'test.glb']' command failed. (See above for error)
Traceback (most recent call last):
File "/opt/3d-model-convert-to-gltf/server/convert.py", line 33, in
main()
File "/opt/3d-model-convert-to-gltf/server/convert.py", line 20, in main
out_convert_gltf_path = Convert.convert_by_type(sys.argv[1], os.path.abspath(sys.argv[2]), is_bin)
File "/opt/3d-model-convert-to-gltf/server/service/Convert.py", line 219, in convert_by_type
result = model.handler(file_path, is_bin)
TypeError: handler() missing 1 required positional argument: 'need_draco'

转换文件的原文件格式问题,跪求博主

你好,博主,我用您的方式出现了以下问题,麻烦您帮我看一下

root@ecs-94a9:/home/kent/docker/3D# ls
assets  convert.sh  input  output
root@ecs-94a9:/home/kent/docker/3D# ./convert.sh stp input/agv.stp output/agv.gltf
[Error: ENOENT: no such file or directory, open '/home/kent/docker/3D/input/agv.stp.gltf'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/home/kent/docker/3D/input/agv.stp.gltf'
}
Done! Exported to /home/kent/docker/3D/input
/home/kent/docker/3D/output/agv.gltf

这个原文件输入路径一直默认给我写成了agv.stp.gltf,多了个gltf,请问如何解决呢,跪求博主啊,博主好人!

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.