PanoramaGL Library
==================
Version 0.2 beta (September/2013)
Copyright (c) 2010 Javier Baez <javbaezga@gmail.com>
1. Features
===========
- SDK 2.0 to 4.2.2.
- Architectures ARM, x86 and MIPS.
- OpenGL ES 1.0 and 1.1.
- Support for spherical, cubic and cylindrical panoramic images.
- Scrolling and continuous scrolling.
- Inertia to stop continuous scrolling.
- Zoom in and zoom out (moving two fingers on the screen).
- Reset (placing three fingers on the screen or shaking the device).
- Scrolling left to right and from top to bottom using the accelerometer.
- Sensorial rotation (Only compatible for devices with Gyroscope or Accelerometer and Magnetometer).
- Full control of camera including field of view, zoom, rotation, rotation range, animations, etc.
- Hotspots with commands.
- Simple JSON protocol.
- Creation of virtual tours using the JSON protocol or with programming.
- Transitions between panoramas.
- Support for events.
2. Licensing
============
* PanoramaGL is open source licensed under the Apache License version 2.0.
* Please, do not forget to put the credits in your application :).
2.1. Third-party code used by PanoramaGL
========================================
* glues: OpenGL ES 1.0 CM port of part of GLU by Mike Gorchak <mike@malva.ua>. Copyright (c) 1991-2000 Silicon Graphics, licensed under SGI FREE SOFTWARE LICENSE B version 2.0.
* Matrix, MatrixGrabber, MatrixStack and MatrixTrackingGL classes: Copyright (c) 2007 The Android Open Source Project, licensed under Apache License version 2.0.
* HttpClient 3.1: Copyright (c) Apache Software Foundation, licensed under Apache License version 2.0.
* EasySSLSocketFactory and EasyX509TrustManager classes: Copyright (c) Apache Software Foundation, licensed under Apache License version 2.0.
* PLVector3 and PLIntersection classes: Port from C++ to Java of "Demonstration of a line mesh intersection test" example by Jonathan Kreuzer.
* PLTokenizer class: Class based in the article "Writing a Parser in Java: The Tokenizer" by Cogito Learning.
2.2. Panoramic images used by HelloPanoramaGL example
=====================================================
* quito1, quito2 and quito3 images: Copyright (c) 2013 Geovanny Raura <georaura@gmail.com>.
3. Requirements
===============
* Android 2.0 or higher.
* OpenGL 1.0 or higher.
* Some functionalities need the Accelerometer, Magnetometer and/or Gyroscope.
4. How to import PanoramaGL library?
====================================
4.1. From source code
=====================
a. Download PanoramaGL_0.2-beta.zip or download the source code from repository.
b. If you download the zip file then decompress the file.
c. Import PanoramaGL project with Eclipse:
- Go to File->Import menu.
- Select "Existing Projects into Workspace" and click on "Next" button.
- Click on "Browse" button and select PanoramaGL project folder.
- Click on "Finish" button.
d. Right click on your project and select "Properties" option.
e. Select on left panel "Android" option.
f. In right panel go to "Library" section and click on "Add..." button.
g. Select "PanoramaGL" library and click on "OK" button.
h. Accept the changes selecting the "OK" button on right bottom corner in properties window.
4.2. From the compiled files
============================
a. Download libglues_0.2-beta.zip.
b. Decompress the zip file and copy "libs" folder in your project.
c. Download PanoramaGL_0.2-beta.jar.
d. Copy jar file in "libs" folder in your project.
e. Import jar file in your project:
- Right click on your project and select "Properties" option.
- Select on left panel "Java Build Path" option.
- Select "Libraries" tabulator.
- Click on "Add JARs..." button.
- Select "libs/PanoramaGL_0.2-beta.jar" file from your project.
- Click on "OK" button.
- Accept the changes selecting the "OK" button on right bottom corner in properties window.
5. How to use PanoramaGL in your application?
=============================================
a. Import the library as described on previous literal.
b. Import a spherical image (e.g. spherical_pano.jpg) in "res/raw" folder.
c. In the Activity class that you need to make a panoramic viewer, do the next changes:
- Inherit from PLView class
public class YourActivity extends PLView
- Within the onCreate method, load the panoramic image
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
PLSpherical2Panorama panorama = new PLSpherical2Panorama();
panorama.setImage(new PLImage(PLUtils.getBitmap(this, R.raw.spherical_pano), false));
this.setPanorama(panorama);
}
Note: You can load panoramic images from other methods or events if you need it.
6. Simple JSON Protocol
=======================
You can use JSON protocol to load panoramas and to create virtual tours.
6.1. Source code
================
6.1.1. From the resources
=========================
this.load(new PLJSONLoader("res://raw/json_spherical"));
Note: For this code, you need to have a file named "json_spherical.data" in "res/raw" folder in your application.
6.1.2. From the file system
===========================
this.load(new PLJSONLoader("file:///sdcard/files/json_spherical.data"));
Note: For this code, you need to have a file named "json_spherical.data" in "/sdcard/files" folder on the Android device or emulator.
6.1.3. From a Web server
========================
this.load(new PLJSONLoader("http://mydomain/files/json_spherical.data"));
Note: For this code, you need to have a file named "json_spherical.data" in "http://mydomain/files" Web server path.
6.2. JSON Protocol
==================
{
"urlBase": "file:///sdcard/files", //URL base where the files are
//The options are: http://, https://, res:// for application resources and file:// for the file system
"type": "spherical", //Panorama type: [spherical, spherical2, cubic, cylindrical]
"keep": "none", //Keeps the current settings [none, reset, scrolling, inertia, accelerometer, sensorialRotation, all] <Optional>
//By default the value is none and you can use the options like a mask e.g. all|~scrolling that meaning keep all except the scrolling options
"imageColorFormat": "RGBA8888", //Color format to be used for all images [RGBA8888, RGB565, RGBA4444] <Optional>
"height": 3.0, //Sets the panorama's height only for cylindrical panorama <Optional>
"divisions": //Divisions section only for spherical, spherical2 and cylindrical panoramas <Optional>
{
"preview": 50, //Number of divisions for the preview panorama <Optional>
"panorama": 50 //Number of divisions for the panorama <Optional>
},
"reset": //Reset section <Optional>
{
"enabled": true, //Enable reset feature [true, false] <Optional>
"numberOfTouches": 3, //Number of touches to reset <Optional>
"shake": //Shake reset section <Optional>
{
"enabled": true, //Enable shake reset [true, false] <Optional>
"threshold": 1300 //Shake threshold <Optional>
}
},
"scrolling": //Scrolling section <Optional>
{
"enabled": true, //Enable scrolling feature [true, false] <Optional>
"minDistanceToEnableScrolling": 30 //Minimum distance to enable scrolling in pixels <Optional>
},
"inertia": //Inertia section <Optional>
{
"enabled": false, //Enable inertia feature [true, false] <Optional>
"interval": 3 //Inertia's interval in seconds <Optional>
},
"accelerometer": //Accelerometer section <Optional>
{
"enabled": false, //Enable the accelerometer feature [true, false] <Optional>
"interval": 0.033, //Update interval of acceler
没有合适的资源?快使用搜索试试~ 我知道了~
实现360度全景图像的Android类库--PanoramaGL
共667个文件
svn-base:280个
java:123个
all-wcprops:77个
5星 · 超过95%的资源 需积分: 34 60 下载量 161 浏览量
2016-08-29
12:04:50
上传
评论
收藏 15.16MB ZIP 举报
温馨提示
PanoramaGL是世界上第一个开源的实现360度全景图像的Android类库。支持球,立方体,圆柱。有重力加速等。
资源推荐
资源详情
资源评论
收起资源包目录
实现360度全景图像的Android类库--PanoramaGL (667个子文件)
all-wcprops 6KB
all-wcprops 5KB
all-wcprops 3KB
all-wcprops 2KB
all-wcprops 2KB
all-wcprops 2KB
all-wcprops 2KB
all-wcprops 1KB
all-wcprops 1KB
all-wcprops 1KB
all-wcprops 866B
all-wcprops 773B
all-wcprops 747B
all-wcprops 735B
all-wcprops 643B
all-wcprops 635B
all-wcprops 591B
all-wcprops 562B
all-wcprops 490B
all-wcprops 484B
all-wcprops 483B
all-wcprops 439B
all-wcprops 425B
all-wcprops 408B
all-wcprops 400B
all-wcprops 297B
all-wcprops 289B
all-wcprops 268B
all-wcprops 266B
all-wcprops 266B
all-wcprops 264B
all-wcprops 264B
all-wcprops 264B
all-wcprops 258B
all-wcprops 256B
all-wcprops 256B
all-wcprops 256B
all-wcprops 254B
all-wcprops 254B
all-wcprops 254B
all-wcprops 250B
all-wcprops 248B
all-wcprops 248B
all-wcprops 246B
all-wcprops 244B
all-wcprops 244B
all-wcprops 240B
all-wcprops 238B
all-wcprops 238B
all-wcprops 236B
all-wcprops 230B
all-wcprops 228B
all-wcprops 205B
all-wcprops 154B
all-wcprops 117B
all-wcprops 116B
all-wcprops 114B
all-wcprops 114B
all-wcprops 112B
all-wcprops 111B
all-wcprops 106B
all-wcprops 106B
all-wcprops 105B
all-wcprops 103B
all-wcprops 102B
all-wcprops 102B
all-wcprops 102B
all-wcprops 101B
all-wcprops 101B
all-wcprops 100B
all-wcprops 97B
all-wcprops 97B
all-wcprops 97B
all-wcprops 82B
all-wcprops 65B
all-wcprops 63B
all-wcprops 61B
glues_quad.c 98KB
glues_mipmap.c 69KB
glues_project.c 11KB
com_panoramagl_opengl_GLUES.c 6KB
glues_error.c 6KB
glues_registry.c 3KB
.classpath 475B
.classpath 475B
json_cubic.data 1KB
json_cubic_quito2.data 841B
json_cylindrical_quito2.data 716B
json_spherical2_quito2.data 714B
json_spherical_quito2.data 710B
json_spherical.data 691B
json_cylindrical.data 641B
json_spherical2.data 624B
json_cubic_quito3.data 617B
json_cylindrical_quito3.data 486B
json_spherical2_quito3.data 485B
json_spherical_quito3.data 482B
entries 8KB
entries 6KB
entries 3KB
共 667 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
- 淘跑的小鸡2018-09-27还好吧 不过跟自己的要求还差点
- seven27292017-06-16完全是骗人的啊!是源码。源码。还不如下http://download.csdn.net/detail/lijiamu421294020/8389291。骗分的
- m0_374759322018-01-03完全是骗人的啊!是源码。源码。还不如下http://download.csdn.net/detail/lijiamu421294020/8389291。骗分的
大漠孤烟qjc
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- IMG_20240425_120538.jpg
- My Complete Genome_6k Base-Pairs of Phenotype SNPs_Complete Raw Data.zip
- qt 的mqtt测试demo
- 移动应用开发教程-zip.zip
- mosquitto-2.018-install-windows-x64
- FTPServer FTP 服务器,绿色免安装,单文件
- 梦畅语音点名软件,上课点名
- 利用ADNI数据集和标签,在tensorflow框架上使用tensorlayer接口,通过架构u-net实现海马体的分割
- Kutools for Word v9.0 office word 插件
- 修复Windows 10 LTSC 2021资源占用率高
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功