FreeOrion

Forums for the FreeOrion project
It is currently Fri Nov 17, 2017 8:53 pm

All times are UTC




Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Mon Aug 17, 2015 12:50 pm 
Offline
Krill Swarm

Joined: Mon Aug 17, 2015 9:56 am
Posts: 10
Should I expect a working build on Odroid boards that I own? (arm, Opengl ES, SDL2, Linux)

thx


Last edited by meverik on Tue Sep 08, 2015 10:52 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon Aug 17, 2015 4:50 pm 
Offline
AI Lead, Programmer
User avatar

Joined: Sat Sep 22, 2012 6:25 pm
Posts: 4374
It seems to me that the ARM architectures are specialized enough that the only way to really know will be to try compiling it (see here and here), and I haven't heard of anyone doing that yet.

Please keep us updating on your attempt.

_________________
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0


Top
 Profile  
 
PostPosted: Tue Aug 18, 2015 7:58 am 
Offline
Krill Swarm

Joined: Mon Aug 17, 2015 9:56 am
Posts: 10
I take it OpenGL is not a prerequisite then? (I could probably build a software Mesa version without a problem but I'm after Mali accelerated GLES)


Top
 Profile  
 
PostPosted: Tue Aug 18, 2015 9:28 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12012
Location: Munich
All FreeOrion rendering is done using OpenGl calls. Immediate mode and vertex buffer or array calls are used in various places. Exactly what version of OpenGL is required, I don't know, but I'd guess you'd have trouble with the immediate calls if using a mobile-targeted / limited subset of GL.


Top
 Profile  
 
PostPosted: Tue Aug 18, 2015 1:14 pm 
Offline
Krill Swarm

Joined: Mon Aug 17, 2015 9:56 am
Posts: 10
Thanks, in that case it would require porting to gles first.

Does freeorion use OpenGL directly or through SDL?


Top
 Profile  
 
PostPosted: Tue Aug 18, 2015 1:37 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12012
Location: Munich
Not sure what you mean by that.

Rendering is done with direct GL API calls.

Setup, I'm not sure, but perhaps have a look at

https://github.com/freeorion/freeorion/ ... I.cpp#L635


Top
 Profile  
 
PostPosted: Tue Aug 18, 2015 1:49 pm 
Offline
Krill Swarm

Joined: Mon Aug 17, 2015 9:56 am
Posts: 10
I meant SDL2 unlike SDL "knows" about OpenGL, GLES etc.


Top
 Profile  
 
PostPosted: Tue Aug 18, 2015 1:53 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12012
Location: Munich
That did not clarify what you want to know. You'll probably need to look at the source code yourself to check...


Top
 Profile  
 
PostPosted: Tue Aug 18, 2015 2:59 pm 
Offline
Release Manager, Design
User avatar

Joined: Wed Nov 16, 2011 12:56 pm
Posts: 4241
Location: Sol III
I guess what meverik meant was if FO only ever uses the SDL API, and never accesses the OpenGL API directly. If I assume correctly, then, meverik, AFAIK FO indeed does use OpenGL directly.


Top
 Profile  
 
PostPosted: Thu Aug 20, 2015 1:33 pm 
Offline
Space Squid

Joined: Fri Apr 19, 2013 4:10 pm
Posts: 89
meverik wrote:
Should I expect a working build on Odroid boards that I own? (arm, Opengl ES, SDL2, Linux)

thx


Yes, that is possible. FreeOrion can be built on arm64, armhf and armel. Debian does that already.

https://buildd.debian.org/status/packag ... =freeorion


Top
 Profile  
 
PostPosted: Thu Aug 20, 2015 5:35 pm 
Offline
Krill Swarm

Joined: Mon Aug 17, 2015 9:56 am
Posts: 10
I'd said as much in my second post of the thread - you'd need an accelerated OpenGL Arm platform, e.g. Nvidia Tegra to have any fun with those builds.


Top
 Profile  
 
PostPosted: Sat Aug 22, 2015 2:51 pm 
Offline
Krill Swarm

Joined: Mon Aug 17, 2015 9:56 am
Posts: 10
That's a good starting point for anybody wanting to try:

pandorawiki.org/Porting_to_GLES_from_GL

Could the devs run the script on the latest source and post how much work there'd be?


Top
 Profile  
 
PostPosted: Sun Aug 23, 2015 1:21 am 
Offline
AI Lead, Programmer
User avatar

Joined: Sat Sep 22, 2012 6:25 pm
Posts: 4374
meverik wrote:
Could the devs run the script on the latest source and post how much work there'd be?
The link is a good reference to have here, thanks, but I think whoever is going to do the actual porting needs to be able to run the script and assess the work themselves, and I don't think any of the current devs have the time/interest for it.

_________________
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0


Top
 Profile  
 
PostPosted: Sun Aug 23, 2015 1:32 am 
Offline
Creative Contributor
User avatar

Joined: Fri Jun 28, 2013 11:45 pm
Posts: 3257
Dilvish wrote:
I don't think any of the current devs have the time/interest for it.

To expand on this, meverik: Until you started this thread, I'd never heard of Odroid. We have a very small core team and a larger group of occasional contributors and testers.

When I started playing the game regularly I discovered that while it was very good, a lot of the costings internally were completely out of whack. Several existing devs were aware of this but had higher priority stuff for the project, balancing would come later. I couldn't do the higher end stuff, so I taught myself how to edit the scripts and did a lot of work balancing the game to make it better and more strategic. Two years ago I'd never even considered the idea of compiling a game from source, now I do it several times a week.

Basically, Odroid is a niche product that'll need contributions. If you're unable to do the work yourself you basically have two options, either a) learn how to do it or b) find someone with the kit, ability and time necessary in order to do it for you.

None of the current core team of devs is able to do it, for a start, to my knowledge none owns an Odroid device.

I have found over the last two years that many of the devs have been very helpful in taking me through the learning curve needed, if there's stuff we can help with or give advice, we will, but I suspect if it's going to happen, you're going to need to do it.

_________________
Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.


Top
 Profile  
 
PostPosted: Sun Aug 23, 2015 9:30 am 
Offline
Krill Swarm

Joined: Mon Aug 17, 2015 9:56 am
Posts: 10
We're talking about the arm mini computers here (Raspberry Pi, Openpandora, Cubieboard, etc) not just specifically Odroid.

It's Linux on GLES (possibly android) which is a great idea to expand the game's reach and not just my personal wish to have the game running on some exotic platform.

As for porting the renderer you don't need to own a board like this - it's possible to use the mesa versions of EGL and GLES on x86 and have a working implementation.


Last edited by meverik on Mon Aug 24, 2015 4:49 pm, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group