Installing OpenMW on a Raspberry Pi 2

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
User avatar
sandstranger
Posts: 438
Joined: 19 May 2014, 19:53
Location: Oblivion

Re: Installing OpenMW on a Raspberry Pi 2

Post by sandstranger »

Why not just use etc1 for non alpha textures, and for alpha textures use rgba format?
User avatar
psi29a
Posts: 5361
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Installing OpenMW on a Raspberry Pi 2

Post by psi29a »

sandstranger wrote:Why not just use etc1 for non alpha textures, and for alpha textures use rgba format?
Easier said than done. ;) I tested this yesterday, OSG doesn't support ETC1 in their DDS plugin. I've opened a topic about it on the OSG forums yesterday, but it is still waiting for approval.

The good news is that it is there already in their PVR plugin and Image calls, so I'll try my hand at adding it to the DDS plugin and send upstream.

However, something else we can do is use the KTX container instead of DDS. This is future-proof, however the problem here is that OpenMW still hardcodes some of it's assets and only looks for the one specific file, for example: tx_stars.dds

It doesn't matter if you have tx_stars.tga or whatever, OpenMW will currently not look for it which is a drag.
User avatar
psi29a
Posts: 5361
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Installing OpenMW on a Raspberry Pi 2

Post by psi29a »

Did some tests with the KTX container using ETC1 compression, using the night_sky.nif telling it to use the tx_stars.ktx instead of tx_stars.dds.

Good news is that it worked on nvidia binary blob. Bad news is that is seems to not work with intel gpu.

This is what I get from OpenMW (OSG) using Intel GPU::
Warning: detected OpenGL error 'invalid enumerant' at after RenderBin::draw(..
User avatar
psi29a
Posts: 5361
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Installing OpenMW on a Raspberry Pi 2

Post by psi29a »

I've converted the OpenMW-Template to uncompressed dds files, which thankfully hasn't made too much of an impact on overall file size. Uncompressed we're at 30MiB, but this is the bare minimal to get OpenMW up and running with something others can build on.

Now that all the warnings are gone, textures are loaded... we get about 7 FPS in exterior with the current VC4 driver on the RPi2.
2015-08-17-142018_1920x1080_scrot.png
2015-08-17-142114_1920x1080_scrot.png
screenshot005.png
screenshot006.png
I did get a crash when right clicking to pulling up inventory. I hope someone can have a look to see if it is OpenMW related, OSG, MyGUI or something VC4 related.
http://pastebin.com/8cKUk2VE
maqifrnswa
Posts: 180
Joined: 14 Jan 2013, 03:57

Re: Installing OpenMW on a Raspberry Pi 2

Post by maqifrnswa »

psi29a wrote:I've converted the OpenMW-Template to uncompressed dds files, which thankfully hasn't made too much of an impact on overall file size. Uncompressed we're at 30MiB, but this is the bare minimal to get OpenMW up and running with something others can build on.
Wow! Nice work! I actually know how to set up a Raspbian PPA -- you build on your machine using qemu-user-static and just make your own repo. If you want to distribute, that can be a way.

About the crash - what OS/Distro/version are you using?
User avatar
psi29a
Posts: 5361
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Installing OpenMW on a Raspberry Pi 2

Post by psi29a »

Using Raspbian, but with a VC4 overlay provided by a buildbot someone has kindly setup:
http://sukzessiv.net/~gohai/vc4-buildbot/build/

https://github.com/gohai/vc4-buildbot

No need for a PPA, this OpenMW-Template will be the default release so it should work on ALL platforms... including sandstranger's Android. He can finally feel free to make videos and screenshots of his work with 1) pink mess 2) Bethesda lawyers. :P

I'm going wrap up some stuff in the next few days, and make a new release.
User avatar
raevol
Posts: 3093
Joined: 07 Aug 2011, 01:12
Location: Caldera

Re: Installing OpenMW on a Raspberry Pi 2

Post by raevol »

Great work man. :D This is awesome!
maqifrnswa
Posts: 180
Joined: 14 Jan 2013, 03:57

Re: Installing OpenMW on a Raspberry Pi 2

Post by maqifrnswa »

psi29a wrote:No need for a PPA, this OpenMW-Template will be the default release so it should work on ALL platforms...
I meant an openmw PPA for Raspbian ;-)
User avatar
psi29a
Posts: 5361
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Installing OpenMW on a Raspberry Pi 2

Post by psi29a »

Ohhhhhh.... yes please. ;)

Isn't the Debian armhf good enough, or do you mean more like nightlies? :)
maqifrnswa
Posts: 180
Joined: 14 Jan 2013, 03:57

Re: Installing OpenMW on a Raspberry Pi 2

Post by maqifrnswa »

psi29a wrote:Ohhhhhh.... yes please. ;)

Isn't the Debian armhf good enough, or do you mean more like nightlies? :)
Debian armhf is good enough for the raspberry pi 2, but that is different than raspbian

Debian armhf:
http://sjoerd.luon.net/posts/2015/02/de ... e-on-rpi2/

you can't mix debian armhf and raspbian armhf. but you're right, just tell people to use the debian (instead of raspbian) one since it's already set up.
Locked