open All Channels
seplocked EVE Technology Lab
blankseplocked Android EveLiveWallpaper - First steps...
 
This thread is older than 90 days and has been locked due to inactivity.


 
Pages: [1] 2

Author Topic

Andares Sol
Posted - 2010.11.22 21:07:00 - [1]
 

Edited by: Andares Sol on 17/04/2011 10:49:01
Hi Guys!

As my Xperia X10 Mini Pro finally got the long overdue Android 2.1 Update i immediately fell in love with the so called Live Wallpapers.

So i did a quick & very dirty proof of concept.

I thought you might be interested to see a few snapshots:

Vexor - Android Live Wallpaper
Raven - Android Live Wallpaper
RavenTransparent - Android Live Wallpaper
RavenLightNoTexture - Android Live Wallpaper

The model is rotating slowly in the background.

This is really completely alpha stage. 2weeks ago i didn't even know jack all about OpenGL and now i am just a few NeHe's Turorials further.

So far i managed these steps:

1) Export Shipmodel and Texture with TriExporter2009.
(No idea if i found the latest greatest version btw. v0.4.1.5 says the *.exe)

2) Extraxt the Texture from the *.dss file with XnView, Removed the Alpha Channel and
scaled it down to 512x512pixels and saved it as *.bmp

3) Load exported *.obj in Blender and replace Texture Map from *.dss with smaller texture bitmap

4) Exported *.obj with Options "Selection Only, Rotate X90, Triangulate, Materials, UV, Normals, Keep Vert Order"

5) Shoehorned together an Android Wallpaper application manly based on this code snippet GLSurfaceView adapted for 3D Live Wallpapers and a few bit's and bobs from NeHe's OpenGL tutorials and two or three more sites which did adaptions / explanations for Android. On top of that some example code to read the *.obj mesh and the texture.

Overall a real nasty piece of work, but the result still looks pretty good i think.
I have no clue if one can improve this a bit more with more maps e.g. bumpmap or a map for reflections. As i said my OpenGL ES knowledge is 2weeks old/new and i have no idea which fancy effects are available on Android 2.1 and which are not. But a few lights and a spherical map with the universe in the background would be nice :)

So what do you think?

Bests,
Andares Sol

---

Please see the follow up here: [Android EveLiveWallpaper].


Lykouleon
Wildly Inappropriate
Goonswarm Federation
Posted - 2010.11.22 21:34:00 - [2]
 

Excellent job so far. I barely know anything about applying the correct meshes when it comes to stuff coming out of triexporter. You're doing better than me :P

If you want to see how the wallpapers work on other phones, hit me up in game and I'll gladly test them out on mine.

Looks cool and can't wait to see the "final" versions Razz

Andares Sol
Posted - 2010.11.27 19:52:00 - [3]
 

Hm, looks like not a lot of people are interested in this.
Ah well, learning OpenGL by reading tutorials and cut & pasting dodgycode will anyhow take some time. Smile

I managed to "borrow" the background routines from the EarthLiveWallpaper sourcecode.
It is not a propper cubemap, nor a spherical map, just a plain flat background image:
Vexor #2 - Android Live Wallpaper

Also the lighting is improved a bit. Mind you gettig the glowing bits and some blinking lights in would be nice. No idea if OpenGL ES 1.1 supports that. All the tutorials on the internet for Android are pretty basic.

Biggest problem is the size of the *.obj data. I guess i need a conversion routine to store it in binary format. Parsing a 600kb raw textfile with the mesh data when starting the wallpaper takes about 25 seconds, though i already optimized it a bit to reduce memory allocation. ugh

Bests,
Andares Sol

Acenda Seijin
Posted - 2010.11.30 15:18:00 - [4]
 

Edited by: Acenda Seijin on 30/11/2010 15:18:53
Hey!

I'd love to have an Eve related live wallpaper. Definitely going to follow your work! Looks good so far.
I just bought the HTC Desire Z and it really needs moar eve in it. :D

Lykouleon
Wildly Inappropriate
Goonswarm Federation
Posted - 2010.11.30 18:36:00 - [5]
 

Originally by: Andares Sol
Hm, looks like not a lot of people are interested in this.



Build it and they will come (with ISK) Very Happy

MacKael
Posted - 2010.12.01 03:12:00 - [6]
 

Looks good, any chance you could get a Myrm in there?

Andares Sol
Posted - 2010.12.01 23:35:00 - [7]
 

FYI:
After days of fruitless fiddling i finally managed to sort out the model loading problem. Ah well, at least i just had a little breakthrough.

The trick is to:

1) Use a custom Blender export script which writes a proprietary binary file, which is no more than a Vertex Buffer Object with a small header.

2) To read the data with a custom file parser on the Android side. And forget all the overhead with string parsing strings.

Result:
Loading the high quality Vexor Mesh with old Object loader takes about 40-45seconds
Loading the high quality Vexor Mesh with the binary file takes about 5seconds

Further improvement possible:
Write the file already in Big Endian when exporting and get rid of the Little Endian DataStream conversion class.

Unfortunately i didn't make progress on the "look" of the models. I want to get the basics sorted and the code cleaned up first.

(Alas time to go to bed *yawn*, it's really unhealthy to go to bed at 2:00am during the week and getting up for the normal job in the morning. Especially with all the winter killer germs flying around in public trasport. 0:30am sounds like a good idea YARRRR!!)

Bests,
Andares Sol

P.S.: In theory anything which can be loaded/created with Blender can be made into a rotating LiveWallPaper Model. The device memory, display size plus used graphics processor determines what makes sense and what doesn't.

Ultim8Evil
Ministry Of Eternal Disorder
Posted - 2010.12.02 12:51:00 - [8]
 

Feel free to make me some Amarrian live wallpapers for my HTC Desire.

No pressure.

P.S. Do it!

Andares Sol
Posted - 2010.12.04 11:34:00 - [9]
 

I created an In-Game-Channel called EveLiveWallPaper (surprise).

You can join me there, if you are a willing to test what i got so far and do not mind high memory consumption and potential memory leaks. Twisted Evil
Also if you want to extract your favourite ship: I spent an hour or so to write a document how to get the files out via TriExporter, GIMP + DSS Plugin, Blender and my Python Export script.

I still haven't decided on Model-Size and Texture size. The low-poly-count models look pretty crap without Bump-Mapping (and i didn't get that running yet), and the normal models eat up 1MB of memory easiely, but look pretty neat. Also not sure about the maximum texture size. EVE uses 1024x1024. I downscaled to 512x512, but probably 256x256 is also good enough. On my Xperia X10 Mini Pro with 320x240 it doesn't really matter, but on an HTC Desire it probably will Laughing.

Cheers,
Andares Sol

Andares Sol
Posted - 2010.12.07 20:43:00 - [10]
 

FYI: Found the worlds most inefficient way to do the lights on the model:

-Disable Lighting
-Bind plain 1x1 pixel color texture
-Render Model
-Enable Lighting
-Bind model texture with alpha channel set to let first texture shine through
-Render Model

Bests,
Andares Sol

Andares Sol
Posted - 2010.12.11 10:10:00 - [11]
 

Some real Fotos, so you see it's not just in my head :>

Vexor - EveLiveWallpaper Foto
Damnation - EveLiveWallpaper Foto
Myrmidon - EveLiveWallpaper Foto

This is taken from an 240x320 pixel device.

Andares Sol

Drexit
Posted - 2010.12.13 15:50:00 - [12]
 

Nice, is this in the market yet?

I'd like to see some cool effects, lasers / missiles / whatever when you tap the screen.

Great job!

Andares Sol
Posted - 2010.12.14 21:42:00 - [13]
 

Nope, not yet. Initial subscription to post anything on the Android Market is 25$.
I haven't done that yet, plus my Google-Paranoia might kick in :>.
And most important of all: I need to get official approval from CCP to use the extracted modeldata.

Bests,
Andares Sol

JanoMark
ANZAC ALLIANCE
IT Alliance
Posted - 2010.12.14 23:43:00 - [14]
 

looking forward to this. Hopefully the Rokh makes it in ;D

DELTA301
Gallente
Stone Haven Inc.
The Castle Alliance
Posted - 2010.12.18 11:48:00 - [15]
 

Edited by: DELTA301 on 18/12/2010 11:58:19
Like what you have done so far, if you need a beta tester for the droid x let me know...

Requests
MEGATHRON
ORCA


Serene Python
Posted - 2010.12.18 19:03:00 - [16]
 

Requesting maelstrom and tempest please :)

Andares Sol
Posted - 2010.12.19 10:10:00 - [17]
 

FYI: No answer to my petition about using model and texture data yet.

Regarding all your model wishes:
This is a matter of filesize. I don't think the LiveWallpaper App should be 30MB big,
just to contain a huge selection of models and you can anyhow view only one at a time.
So i thought about 4 selectable backgrounds and 4 shipmodels - one per race as a start.
This will result in an ~4MB size of the *.apk.

Also note that this runs on a mobile phone, so most likely a vertical screen orientation with limited resolution.
The Damnation and Vexor model seem to work quite well. Myrmidon is not so great and Raven looks terrible.
(Generally i seem to have a problem with the Caldary lights.)

Furthermore we are talking more or less about a pretty simple app at themoment:
-One flat background image in 2D projection. No SkyBox / CubeMap.
-The high resolution model mesh
-A plain color to simulate the (emissive) light of the ship defined by the alpha channel of the texture
-Plain diffuse texture drawn on top of the light.

So that means:
-No transparency
-No blinking or "torch" lights (If somebody provides some OpenGL 1.1 code i am happy to give it a try.)
-No bumpmapping
-No specular lighting

Some of the things can probably be added, but it will increase CPU Usage / Battery drain. At the moment the app seems pretty efficient CPU whise. Yes you use quite a bit of memory, but CPU usage is around 35% @ 245 MHz which means the GPU is doing most
of the work :>.

If you are desperate and want me to try a certain shipmodel, send me an EMail to evelivewallpaperNO@SPAMarcor.de and i can share a document how to create the input data for the application. You will need time, TriExporter, Gimp, DSS Plugin for Gimp, Blender and my Blender export script. (Remove NO and SPAM from the EMail-Address.)

Bests,
Andares Sol

Andares Sol
Posted - 2010.12.29 08:51:00 - [18]
 

FYI: No reply to petition so far. Checked the status after 2weeks and it was set to closed. Send another request what's going on.

Personally i have no problem sharing a testbinary, but as extracting data via TriExporter and using it in a program is a bit different to just using official EVE APIs, I really really want to make sure CCP is fine with that.

My apologies,
Andares Sol

Andares Sol
Posted - 2011.01.06 11:59:00 - [19]
 

Ok slow and steady: The 2nd petition earned me an e-mail adress for the request.
So now that i got the right contact, let's hope for a positive response.

Bests,
Andares Sol

Serene Python
Posted - 2011.01.07 03:57:00 - [20]
 

Do you have any we could use? If the png files you gave are what we can use would you mind explaining how to use them? Just got my first android phone so I could be missing something obvious. If you haven't released any yet, that's alright as well. Class to see you're still keeping this thread updated

Andares Sol
Posted - 2011.01.11 20:57:00 - [21]
 

I can't release an application before CCP has said yay or nay. So the snapshots are just snapshots. No response from info@ccpgames.com yet by the way. Guess a one man hobby project is not top priority Wink.

Here are 4 more snapshots pulled from the real device:
EveLiveWallpaper - Snapshot 1
EveLiveWallpaper - Snapshot 2
EveLiveWallpaper - Snapshot 3
EveLiveWallpaper - Snapshot 4

Bests,
Andares Sol

Xornicon Altair
Woopatang
Primary.
Posted - 2011.01.12 02:43:00 - [22]
 

Having recently gotten a Nexus S, I look forward to putting this on my phone. Additionally, you were talking about one ship per race as your initial release. Have you considered the Pirate ships? I would LOVE to get a Bhaalgorn background.

Andares Sol
Posted - 2011.01.17 20:38:00 - [23]
 

No reply from CCP. And I probably will never get one, so I guess it looks pretty bad for ever distributing the application Sad.
I am really sorry!

Due to lack of any reply i used the fan site copyright notice for now from here in my Demo application. But as i do not know if i violate point 10. License -> C. Specific Restrictions of the EULA by extracting model and textures via TriExporter and putting them in an Android binary, I can't really take the risk to distribute it without an official statement.

Well maybe one of you can try contacting CCP. I am obviously incapable of doing so and actually quite fed up with all this sh*t. Mad

Andares Sol <- Stops programming and goes back to playing the game now.

SerialTurd
APEX ARDENT COALITION
C0NVICTED
Posted - 2011.01.18 21:06:00 - [24]
 

CCP needs to see this and say soemthing about it. I've been dieing for an eve live wallpaper to see on my android phone. Maybe they are just really busy with the expansion. Keep trying to get in touch with them!

iP0D
Posted - 2011.01.19 01:10:00 - [25]
 

Originally by: Andares Sol
I can't release an application before CCP has said yay or nay. So the snapshots are just snapshots. No response from info@ccpgames.com yet by the way. Guess a one man hobby project is not top priority Wink.

Here are 4 more snapshots pulled from the real device:
EveLiveWallpaper - Snapshot 1
EveLiveWallpaper - Snapshot 2
EveLiveWallpaper - Snapshot 3
EveLiveWallpaper - Snapshot 4

Bests,
Andares Sol



try via petition, community management I think. Alternatively they do hang in #eve-dev and #eve-pub on irc.coldfront.net. Ask one there whether he knows who to ask.

Andares Sol
Posted - 2011.01.24 21:11:00 - [26]
 

FYI:
There is hope. The petition to community management earned me an answer from CCP. Thanks for the hint iP0D!

Bests,
Andares Sol

Trigo
Caldari
Ordo Dark Star
Posted - 2011.01.25 11:44:00 - [27]
 

Nice work shame they won't fit on my dell streak as it more landscape based.

Selvin
Gallente
Galactic Fighters Organization
Posted - 2011.01.26 10:27:00 - [28]
 

Edited by: Selvin on 26/01/2011 10:31:10
just gimi specification and i'll give triexporter option to export model to your format

in your program give an option to load models from catalog on sd card

and than every one can extract model of his own choice and put it on sd card then select it from your program

Selvin - Samsung Galaxy S owner :)

Andares Sol
Posted - 2011.01.26 20:06:00 - [29]
 

Hi!

Got an thumbs up from CCP Zymurgist regarding the application and copyright notices.
Woohoo... Laughing
I wonder if i spent more time filing petitions and emailing than actually programming.
No - Probably not - I hope Wink.

Account registration to Android Market is 25$. I consider it after i got some feedback from your guys (and lots of ISK donnations Wink). I am working on a version which can be shared and will post a download link here as soon as i am ready.

Bests,
Andares Sol

Andares Sol
Posted - 2011.01.26 22:21:00 - [30]
 

Edited by: Andares Sol on 17/03/2011 21:54:26
Ok here is the very first version of ArrowEveLiveWallpaper.
Let's see if we blow the 1GB Traffic Limit on that free webspace.

Username: ********
Passwort: ************

[17th March 2011]: Download link temporarily disabled and removed.


Tested on Samsung Galaxy S and Xperia X10 Mini Pro so far. I am not responsible for any possible data-loss or damage caused, either directly (hardware, software e.t.c.) or indirectly (time, money e.t.c.), by using this software.

Share & Enjoy,
Andares Sol

P.S.: Yes i know you can easiely reverse engineer my full name plus adress, but i anyhow have to put some meaningful package name in so... Alas... Hope you are all nice pals. I did never have any problems with regard to that with my other hobby SW projects so far. Shocked


Pages: [1] 2

This thread is older than 90 days and has been locked due to inactivity.


 


The new forums are live

Please adjust your bookmarks to https://forums.eveonline.com

These forums are archived and read-only