python webviewer_wenjiangtao

OpenWebGlobe WebViewer

With OpenWebGlobe you can create your own virtual globe applications.

The WebViewer is a port of the OpenWebGlobe SDK to Javascript/WebGL.

OpenWebGlobe is created by the Geomatics Engineering departement at the

University of Applied Sciences Northwestern Switzerland.

Getting started

WebViewer requires a modern web browser that supports WebGL. You can check if your browser supports WebGL here:

https://get.webgl.org/

Once you have a suitable browser, visit source/demos/02_WorldDemo/demo.html to

see a demonstration.

Building WebViewer

WebViewer is compiled with Google's Closure

Compiler and uses Google's Closure

Library. The compiler produces an

optimized, minified Javascript file containing all the WebViewer code.

Windows

Install Python if you don't have it already. You can get python at http://www.python.org/

You also need Java installed for the closure compiler.

On windows you may have to adjust the Python Path in "scripts/setup.bat".

Go into the scripts directory and start

"download_external.py". This will download all required external files.

Linux, MacOS X

Development under Linux and MacOS is quite easy:

Just go into the "scripts" directory and start make. This builds the latest version and downloads all dependencies.

CORS - Cross Origin Resource Sharing

For security reasons CORS must be used when downloading textures. During development this can be annoying.

When using Firefox you can disable "security.fileuri.strict_origin_policy" in about:config and you can install the addon "Force CORS" from here: Force CORS AddOn

License

OpenWebGlobe is

Copyright (c) 2010-2015 University of Applied Sciences Northwestern Switzerland.

Institute of Geomatics Engineering.

See the file LICENSE for details.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值