Thanks to http://tfc.duke.free.fr/
for his tutorial on MD2 :) and his quake II model.
Poseidon on Android is not a full JAVA application. It was built using android NDK.
There is JAVA code, but only to start a GL rendering view. All the rest is the same code (except Poseidon porting layer) as linux application.
As you can notice, bitmap loading is not yet implemented ^^. As far as I know, there is 3 ways to load a bitmap on Android platform :
- Use JNI to call JAVA functions that will load the bitmap.
- Use directly Skia library (http://android.git.kernel.org/?p=platform/external/skia.git;a=summary),
But Google developpers discourage this due to risk of compatibilty breaking. - Use my own decoder. I will check at this library http://freeimage.sourceforge.net/. It aggregates a lot of decoders (libpng,libjpeg, libtiff...) in a single source tree.
Any advice on this point is welcomed :)
For the moment, I will cheat :
- serialize the Image object to a file from PC version
- copy the file onto Android
- deserialize the image from this file on Android platform.
Here the result on another model :
As you can see there is no difference
between applications
No comments:
Post a Comment