android-gl-streaming
android-gl-streaming copied to clipboard
streaming opengl commands over network
gl-streaming

Streaming opengl commands over network
A fast, simple, lightweight and low latency framework suitable for embedded systems.
- Original image
-
gl_client : client framework and sample program
The client system may not need to have any GPU. Even without GPU, opengl programs can be run on any system !
(X Server is now required by client).
Some codes are from @mittorn fork for base methods, @tinmaniac for base Android port and do my attempt on implement all stub methods to run on GL4ES.
-
gl_server : server framework
gl_server is optimized for Android for now. Therefore, the client system can use opengl es 2.0.
-
android_gl_server : Android demo port app.
Demo Video (RPi original video)
Demo Video (Android port)
TODO implement
- [x] glGetActiveUniform
- [x] glGetError
- [x] glGetIntegerv
- [x] glGetFloatv
- [x] glReadPixels (experimental)
- [x] glGetProgramiv
- [x] glGetShaderiv
- [x] glGetString
- [x] glTexSubImage2D
Current status
es2_info,es2gearsandes2triwill work.- GL4ES apps/games may work but in blank textures (will see in
glxdemoandglxheads).
Notes
- Current minimum SDK level is set to 21 (Android 5) but it may work on older Android devices by some modifies.
- Default port of server: 18145, client: 18146.
Known issue (Android)
- Some old devices: put app to background will make app lost EGL context (not show anything).
Quick start
- See USAGE.md for more instruction.
Server
- Build android_gl_server use Android Studio or other similar to.
- Install android_gl_server apk to Android device or AVD.
- Run it.
Client
- copy the gl_client directory to any computer.
cd gl_client
make
./sample1 -s 192.168.0.2:18145 -c 192.168.0.3:18146 -j /dev/input/js0
./sample2 -s 192.168.0.2:18145 -c 192.168.0.3:18146 -j /dev/input/js0
(Usage: ./sampleX [-c my_ip_address:port] [-s server_ip_address:port] [-j joystick_device])
License
BSD 3-Clause license (except other's source code)
about sample2 camel model: original model from http://opengameart.org/content/camel License:CC0 author: noway, sandsound (Thanks for sharing!)
Bookmarks
Special Thanks
Thank you very much for your interest and advices.
- noway @opengameart.org /
- sandsound @opengameart.org /
- GClements @OpenGL forum /
- The Little Body @OpenGL forum /
- Stephen A @OpenGL forum /
- over9000 @Parallella forum /
- LamsonNguyen @Parallella forum /
- Gravis @Parallella forum /
- svartalf @Parallella forum /
- Raspberry Pi Foundation /
- Adapteva /
(c) Shodruky Rhyammer
since Oct 21, 2013
