jPCT is a 3D engine for desktop Java and Google's Android. It will work on Windows, Linux, Mac OS X, Solaris x86...and on your mobile phone or your Android tablet. It supports OpenGL via LWJGL and JOGL and uses OpenGL ES 1.x and ES 2.0 on Android. jPCT supports Android 1.5 and higher and can be used with OpenGL ES 1.x as well as with OpenGL ES 2.0. It offers shader support for ES 2.0 and uses a set of default shaders that mimic the behaviour of 1.x in a 2.0 context. So you can use 2.0 without being forced to write your own shaders.
jPCT-AE - a mobile 3D engine for Google's Android
An overview of some 3D Java and Android projects using the jPCT and jPCT-AE framework.
This's full wrapper of the engine, plus addon classes which are not part of the engine, such as glsurfaceview wrapper with rendring implementation, multitouch/gestures/scale implementation, 5 Interfaces implementation ..etc.
The wrapper contains about 47 classes, the javadoc of the 3d engine is embedded inside the wrapper, so it will show as tool-tip when you type in basic4android.
Using this 3D library requires you have basic understanding of 3D. I have created 6 examples to help understand the engine (the above image is taken from these examples), you should take a look at 'HelloWorld' example which's a convert of the Java 'helloworld', it also has enough comments to get you started, all the other examples assume you've understood the 'hello world' example. The examples run on OpenGL 1, The engine is capable of running on OpenGL 2 provided you know how write Shaders.
The examples don't show the perfect way of using this engine, nor show a good programming practice in b4a, rather they show my own understanding and practice.
Since i don't have time/energy to maintain this project, the full source code of the wrapper is available as an (eclipse project). If there's bugs, errors .. you have the source, so you get to fix it. note, that i didn't test all the engine's features.
How to use:
- Extract "JPCT-AE (Lib+Wrapper).zip".
- Copy the 3 files into your basic4android library's folder.
- Open 'HelloWorld' example.
- Make sure the engine is loaded from within Libs tab, the name of the engine will be "JPCT-AE (alhowiriny)" before loading, and "JPCT-AE (version 1.0)" after loading.
I've tested the engine/examples with basic4android version 2.52, on 2 devices, both have mali400GPU. works fine for me.
JPCT-AE B4a Wrapper
JPCT-AE Wrapper Source (Eclipse Project)
jPCT-AE Wrapper(Eclipse Project).zip
81.3 KB Views: 1,538