Skip to content

YinChaoOnline/obj-cesium-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

view obj models correctly in cesium

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published