Orx - Portable Game Engine
Welcome, Guest
Please Login or Register.    Lost Password?
Does orx one day support android platform?
(1 viewing) 1 Guest
Go to bottom
TOPIC: Does orx one day support android platform?
#958
bobdos
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Does orx one day support android platform? 7 Years, 4 Months ago Karma: 0
Does orx one day support android platform?
 
Logged Logged
  The administrator has disabled public write access.
#959
iarwain
Administrator
Posts: 3129
graph
User Offline Click here to see the profile of this user
Gender: Male Orx - Portable Game Engine Location: Montreal
Re:Does orx one day support android platform? 7 Years, 4 Months ago Karma: 71
I'd like to support it at some point, but I have no plan for it in the immediate future.

Using the recent iPhone & GLFW plugins, I'm sure making plugins for Android would be pretty easy and probably very fast for someone familiar with the platform (which I'm not).

If someone would like to give it a try I'd give him as much support as I can.
 
Logged Logged
 
Last Edit: 2010/07/31 22:44 By iarwain.
 
Want to follow orx's development? Check our Trello board: http://trello.com/b/g4jMS6jc/orx-tasks
  The administrator has disabled public write access.
#962
jtianling
Expert Boarder
Posts: 140
graphgraph
User Offline Click here to see the profile of this user
Re:Does orx one day support android platform? 7 Years, 4 Months ago Karma: 0
That's another problem.................iarwain, You didn't explain the core more, so looking into need cost more time.And less people know the source well,less people could give it a try to do more about it.

lol, just a complaint.....I'm watch the source of orx as well.
 
Logged Logged
  The administrator has disabled public write access.
#963
jtianling
Expert Boarder
Posts: 140
graphgraph
User Offline Click here to see the profile of this user
Re:Does orx one day support android platform? 7 Years, 4 Months ago Karma: 0
BTW, as I know, the best language used in Android is JAVA, android support it better. If Orx want to port to android, it could be used the C/C++, it have some problem till now.
There are a lot of failure as GL release the port of game on android with C/C++.
 
Logged Logged
  The administrator has disabled public write access.
#964
bobdos
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Re:Does orx one day support android platform? 7 Years, 4 Months ago Karma: 0
And I think using NDK is the key solution

jtianling wrote:
BTW, as I know, the best language used in Android is JAVA, android support it better. If Orx want to port to android, it could be used the C/C++, it have some problem till now.
There are a lot of failure as GL release the port of game on android with C/C++.
 
Logged Logged
  The administrator has disabled public write access.
#967
jtianling
Expert Boarder
Posts: 140
graphgraph
User Offline Click here to see the profile of this user
Re:Does orx one day support android platform? 7 Years, 4 Months ago Karma: 0
I knew the NDK and knew it still have some problems....especially the problems between different phones.
 
Logged Logged
  The administrator has disabled public write access.
#970
iarwain
Administrator
Posts: 3129
graph
User Offline Click here to see the profile of this user
Gender: Male Orx - Portable Game Engine Location: Montreal
Re:Does orx one day support android platform? 7 Years, 4 Months ago Karma: 71
jtianling wrote:
lol, just a complaint.....I'm watch the source of orx as well.

I saw that on your blog. Interestingly you began with almost all the files I didn't write! =)
I didn't write the memory and bank modules, the file/filesystem ones, the params and the hashtable.

If I trust google translation, you were wondering why certain choices were made and I'd be happy to answer those questions if you want me to, but I've already hijack this thread too much! =)
 
Logged Logged
 
Last Edit: 2010/08/04 23:26 By iarwain.
 
Want to follow orx's development? Check our Trello board: http://trello.com/b/g4jMS6jc/orx-tasks
  The administrator has disabled public write access.
#972
jtianling
Expert Boarder
Posts: 140
graphgraph
User Offline Click here to see the profile of this user
Re:Does orx one day support android platform? 7 Years, 4 Months ago Karma: 0
It looks like interesting, you almost build the orx by yourself alone.But it build on the unsteady base which wasn't writen by yourself.

When I look into the hashTable,list,tree,I found I'm luky for using C++, so I could forgot all the things like it.
But when using C, I suggest the base container in GLib,which looks like more steady and better for common use.
 
Logged Logged
  The administrator has disabled public write access.
#973
iarwain
Administrator
Posts: 3129
graph
User Offline Click here to see the profile of this user
Gender: Male Orx - Portable Game Engine Location: Montreal
Re:Does orx one day support android platform? 7 Years, 4 Months ago Karma: 71
NB: I wrote the tree and the linked list.

They are not containers as they usually are implemented most of the time. They are simple ordering structures so as to be as cache friendly as possible.
We can talk about that somewhere else if you feel like it as it's still a thread about Android. =)
 
Logged Logged
 
Want to follow orx's development? Check our Trello board: http://trello.com/b/g4jMS6jc/orx-tasks
  The administrator has disabled public write access.
#983
jtianling
Expert Boarder
Posts: 140
graphgraph
User Offline Click here to see the profile of this user
Re:Does orx one day support android platform? 7 Years, 4 Months ago Karma: 0
OK
 
Logged Logged
  The administrator has disabled public write access.
#1144
laschweinski
Expert Boarder
Posts: 128
graphgraph
User Offline Click here to see the profile of this user
Re:Does orx one day support android platform? 7 Years, 2 Months ago Karma: 2
I am new to here.
a question about it, does orx have the plan to develop a version of android.
 
Logged Logged
  The administrator has disabled public write access.
#1145
iarwain
Administrator
Posts: 3129
graph
User Offline Click here to see the profile of this user
Gender: Male Orx - Portable Game Engine Location: Montreal
Re:Does orx one day support android platform? 7 Years, 2 Months ago Karma: 71
Hi laschweinski!

As told earlier in this thread, I'd like to see an Android version of orx but I don't have plan on working myself on it in the short term.

I'd be happy to bring as much support as I can to whoever would like to bring it to Android though. =)
 
Logged Logged
 
Want to follow orx's development? Check our Trello board: http://trello.com/b/g4jMS6jc/orx-tasks
  The administrator has disabled public write access.
#1147
laschweinski
Expert Boarder
Posts: 128
graphgraph
User Offline Click here to see the profile of this user
Re:Does orx one day support android platform? 7 Years, 2 Months ago Karma: 2
I would like to try, if I have time.
and as soon as I have any progress, I will share the source.
 
Logged Logged
  The administrator has disabled public write access.
#1150
iarwain
Administrator
Posts: 3129
graph
User Offline Click here to see the profile of this user
Gender: Male Orx - Portable Game Engine Location: Montreal
Re:Does orx one day support android platform? 7 Years, 2 Months ago Karma: 71
Let me know if you have any question or if I can help with anything!
 
Logged Logged
 
Want to follow orx's development? Check our Trello board: http://trello.com/b/g4jMS6jc/orx-tasks
  The administrator has disabled public write access.
#1154
laschweinski
Expert Boarder
Posts: 128
graphgraph
User Offline Click here to see the profile of this user
Re:Does orx one day support android platform? 7 Years, 2 Months ago Karma: 2
I try to find a way to remedy the difference between iphoneos and android, and I hope the engine can play normally on windows and linux. Such, we can use the same source and debug on PC rather than simulator,cause the logic part of the game is always the same.
I used to port sdl on iphone and android. but sdl do not support scale and rotate in opengl way, and the license of sdl is lgpl, which will give us some trouble. I give up.
that's why I try to port orx into android ndk.
besides, I find the source of orx is much more clear and clean than sdl.
 
Logged Logged
  The administrator has disabled public write access.
#1159
iarwain
Administrator
Posts: 3129
graph
User Offline Click here to see the profile of this user
Gender: Male Orx - Portable Game Engine Location: Montreal
Re:Does orx one day support android platform? 7 Years, 2 Months ago Karma: 71
I'm afraid I don't know much about Android and its available APIs.

However the iPhone and the GLFW plugins might be helpful. If Android support OpenGL/OpenGL ES it shouldn't be too hard I guess.
So far for a given game code, you should have the same result on all the platforms (win, linux, mac and iPhone), I'm trying to keep orx as platform-independent as possible, even for the shaders.

Thanks for your comment about the sources! If you have any questions about orx, I'll be happy to help as much as I can!
 
Logged Logged
 
Want to follow orx's development? Check our Trello board: http://trello.com/b/g4jMS6jc/orx-tasks
  The administrator has disabled public write access.
#1161
laschweinski
Expert Boarder
Posts: 128
graphgraph
User Offline Click here to see the profile of this user
Re:Does orx one day support android platform? 7 Years, 2 Months ago Karma: 2
what format of audio file does orx support when we use openal and vorbis.
only ogg? I am not familiar with vorbis.

it is ok to port openal to android, but no one have ported vorbis.Big library as vorbis is it difficult to port.
 
Logged Logged
  The administrator has disabled public write access.
#1164
laschweinski
Expert Boarder
Posts: 128
graphgraph
User Offline Click here to see the profile of this user
Re:Does orx one day support android platform? 7 Years, 2 Months ago Karma: 2
Besides, for the decoding some image like *.png and *.jpeg, I decide to decode them in java part and handle the pixels the bitmap contain in jni part (or ndk). But I lack of knowledge about whether it will decrease the painting efficiency. I hope not, otherwise I have to decode them by using libpng and libjpeg directly, which will give me trouble.
 
Logged Logged
  The administrator has disabled public write access.
#1166
iarwain
Administrator
Posts: 3129
graph
User Offline Click here to see the profile of this user
Gender: Male Orx - Portable Game Engine Location: Montreal
Re:Does orx one day support android platform? 7 Years, 2 Months ago Karma: 71
laschweinski wrote:
what format of audio file does orx support when we use openal and vorbis.
only ogg? I am not familiar with vorbis.

it is ok to port openal to android, but no one have ported vorbis.Big library as vorbis is it difficult to port.


Hi!

OpenAL doesn't handle file formats/decoding: all it does it handle mixing and send sound buffers to the hardware.

The encoder of .ogg sound files is called vorbis.
Instead of using the official vorbis library orx is using stb_vorbis which is in the public domain and handles the most common versions of .ogg files. Porting this shouldn't be too hard as it's only a single file and doesn't seem to contain any hardware-dependent code. However it only handles .ogg files.

Orx is also using libsndfile to handle other file formats (.wav, etc, except .mp3). This library is only available with LGPL and is a bit tricky to compile out of a POSIX environment. I had to made some modifications to be able to compile it directly on windows for windows. The author is compiling it from linux for windows. He doesn't want any help to maintain a version that compiles directly under windows and only wants to officially support a POSIX version. Maybe it can be compiled for android if there's nothing else available?

However, android probably has some sound decoding libraries? For the iPhone version, I'm using the iPhone SDK to decode .mp3, .caf and other file formats directly. Maybe something like this is available for android? Sorry about my lack of knowledge about this!
 
Logged Logged
 
Want to follow orx's development? Check our Trello board: http://trello.com/b/g4jMS6jc/orx-tasks
  The administrator has disabled public write access.
#1167
iarwain
Administrator
Posts: 3129
graph
User Offline Click here to see the profile of this user
Gender: Male Orx - Portable Game Engine Location: Montreal
Re:Does orx one day support android platform? 7 Years, 2 Months ago Karma: 71
laschweinski wrote:
Besides, for the decoding some image like *.png and *.jpeg, I decide to decode them in java part and handle the pixels the bitmap contain in jni part (or ndk). But I lack of knowledge about whether it will decrease the painting efficiency. I hope not, otherwise I have to decode them by using libpng and libjpeg directly, which will give me trouble.

That sounds perfect to me! =)

As long as you delete the bitmap from memory after having created the OpenGL texture everything will be just fine. There shouldn't be any performance impact doing this.

The same could be done for sound files if the android SDK is able to handle sound file decoding.
It doesn't matter what you use for file decoding as long as you don't keep them in memory after feeding them to OpenAL/OpenGL who keep their own copies.

The only "tricky" part would be streaming music as you have to be able to feed OpenAL small part of decoded files upon request. You can look at how it's done in the already existing SoundSystem plugins, but it's nothing extraordinary. =)

Let me know if you have any other questions or if my explanations weren't clear.

Btw, we just bought an android phone but I won't be able to work with it till at least early next year. However if you get into a dead end, if it helps, I might be able to do some debugging on my side when I get my PC back before the end of the month. =)
 
Logged Logged
 
Want to follow orx's development? Check our Trello board: http://trello.com/b/g4jMS6jc/orx-tasks
  The administrator has disabled public write access.
Go to top