Giter Site home page Giter Site logo

obj2gltf's Introduction

obj2gltf (English)

TODO

  • Change obj of world coordinates into obj of local coordinates obj, glb and it's world center point by json

  • Used Cesium obj2gltf

  • Change obj's coordinates system by using python module

    • this module's trasforming coords system completes quite fast even though it use's geodesic which is quite slow in performing speed because of using python's multiprocessing.
    • this performs fast especially when transforming big size of obj. It is more faster when converting small amount of models with big size more than transforming lots of models with small size.

how to use

You must prepare python environment, and then run node.

python

  • Python >=3.7, <3.8
    • Due to using of bpy 2.82.1
pip install -r requirements.txt

node

npm i 
node ${workspaceFolder}\\bin\\customObj2gltf.js convert --i=${input path} --o=${output path} --e=${coordinates}
  • it can convert multiple obj models in the input path

example

node ${workspaceFolder}\\bin\\customObj2gltf.js convert --i='F:/obj/input' --o='F:/obj/output' --e='epsg:5186'




obj2gltf (Korea)

TODO

  • 월드 좌표의 obj를 로컬 모델로 변환시킨 후 glb와 해당 모델의 월드 중심점을 json 파일로 export 함

  • Used Cesium obj2gltf

  • 해당 파이썬 모듈 내 좌표계를 변환하는 함수는 작은 용량의 obj 여러개를 변환하는 것 보다 적은 수여도 큰 모델의 obj를 변환할 때 빠른 좌표 변환 속도를 냄. 이는 파이썬의 multiprocessing 을 통해 속도 개선. (작은 용량의 많은 obj를 한번에 변환하는 좌표계 변환함수는 추후 여유로울 때 개발 예정)

how to use

You must prepare python environment, and then run node.

python

  • Python >=3.7, <3.8
    • bpy 2.82.1 버전을 사용하고 있기 때문
pip install -r requirements.txt

node

npm i 
node ${workspaceFolder}\\bin\\customObj2gltf.js convert --i=${input path} --o=${output path} --e=${coordinates}
  • input 경로 내 여러 obj모델들을 일괄적으로 변환할 수 있음

example

node ${workspaceFolder}\\bin\\customObj2gltf.js convert --i='F:/obj/input' --o='F:/obj/output' --e='epsg:5186'

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.