Java 8 on Raspberry Pi

Yay! New Raspberry Pi today and Java 8 installed successfully (Linux ARM v6/v7 Hard Float ABI). Now just to figure out what the hell I’m going to do with it ;D.
I have Netbeans set up to build and send the jar to the Raspberry Pi and then run it. I usually use LWJGL for opengl rendering, does it work on the Raspberry Pi? Or is there a similar alternative?

Julien said JOGL runs on the R.Pi. - as for LWJGL: unlikely, but maybe I missed it in the release notes.

Cheers Riven I’ll give JOGL a look.

Yay I now have my own OpenGL ES2 library working on Raspberry Pi and Java 8. I made a very simple wrapper using jni, to give a full screen context with EGL and then I can use the GL code freely. Now just to work out how to make an Input library and sound…

The Display class only has 5 methods so far but it gets the job done.

createDisplay();
swapBuffers();
destroyDisplay();
getDisplayWidth();
getDisplayHeight();

Did you try LWJGL on the pi? I hope it can work, that would be cool.

That would be ridiculously slow…

Is the pi that bad?

It’s essentially a £20 computer…it was not designed to use accelerated graphics.

So mainly its purpose is just to make python scripters feel cool? XD

Um no. Its actually useful to distribute them in third world countries in schools. Its a useful little machine that can do the basics and its good for learning programming. I had one before I sold it because I had no projects to do with it.

It’s useful for setting up a webserver ment for not-too-much traffic :slight_smile:

Programming is so awesome.

Actually you’re quite wrong… it runs Quake 3 at 60fps without any problem. You don’t realise just how colossally powerful todays modern desktops actually are! The Pi is still a kick-ass bit of kit for the money.

Just a thought… LWJGL-ES… can it use any context passed to it from some other library? I’ve never looked at the ES stuff.

Cas :slight_smile:

Opiop,

http://www.raspberrypi.org/help/faqs/#performanceSpeed

[quote=“princec,post:13,topic:47544”]
Untested, but yes, it should be able to.

Also don’t forget that you can overclock these little beasts (in fact, overclocking IS officially supported for the Pi, you just have to modify a text file) for better CPU/GPU performance.
I will probably pick up a raspberry pi model B soon, and I’m sure as hell that I’ll write some low poly 3D games for it. Matthew, if I would be you I would give LWJGL a spin on the Raspberry Pi. :wink:

Stop.

  • Jev

@PandaMoniumHUN I would give LWJGL a go on the Raspberry Pi if there was a tutorial to show me how to use it. As far as I know there is the source code for OpenGL ES2 but I don’t know what to do with it.
My library doesn’t use the x window system just the hdmi full screen surface that you can use without booting up the desktop. I’m hoping it will be a performance boost. I’m not sure yet how to do input, which might require a window. Unless I can find a library that lets me use the keyboard, mouse or joypad without making a window first.

As to the performance of the Raspberry Pi… I started programming on the ZX81 when I was about 12 a long time ago so anything with more then 16k RAM, feels like an upgrade! :wink: When you don’t have to wait half an hour for a tape drive to load the game… after crashing 3 times…

Anyhoo… The raspberry pi is a lot of fun. I’m not sure how much of a serious games system it could be. But with quotes about xbox1 level graphics ect… and some pretty nifty demos I’ve seen on youtube. Its good for learning on. I might have to buy a couple or more RPIs and make a game engine that spreads its processing across more then one. Graphics on one, sound on another, ai another…etc

As I said… it’s plenty powerful enough to run Q3. Some guy at Q-Con last year had made a 3d-printed “server rack” for 8 Pis (I think it was 8), cooled by a little fan (which they didn’t need in the end), and he’d set up this little LAN gaming corner running a tournament.

If you can create a context using your little native library, then it should in theory be possible to “just use” LWJGL-ES with that context. Over to Spasi who knows about the details.

Cas :slight_smile:

Cas[quote] “just use” LWJGL-ES with that context.
[/quote]
That would be handy. Definite time saver. ;D