obj-cesium-viewer

view obj models correctly in cesium

cesiumjs · nodejs · obj2gltf
入门
GitHub在线演示
Stars:6
License:MIT License
更新:2020/7/31

README

obj-cesium-viewer

view OBJ models correctly in Cesium.js

Requirements

  • node 8.0+
  • git

Install

1.install the repo

$ git clone https://github.com/YinChaoOnline/obj-cesium-viewer

2.change to obj-cesium-viewer folder, install node packages

$ cd obj-cesium-viewer
$ npm i

3.start the server

$ node server

4.play with the repo;upload a obj, and visulize the model in different locations and orientation and scales.

functions

  • upload obj model to the server
  • convert uploaded model to gltf format
  • load the gltf model in cesium with params
    • position(longitude, latitude, height or altitude)
    • scale
    • rotate model around X,Y,Z axis by adjusting models' heading(yaw), pitch, roll

project snapshots

1.project UI

2.tab1

3.tab2

  1. help dialog