Skip to content

sozerodev/obj2gltf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

custom obj2gltf

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors