Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (555)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Java 8 on Raspberry Pi  (Read 1540 times)
0 Members and 1 Guest are viewing this topic.
Offline MatthewNicholls

Junior Member


Medals: 1
Exp: 6 years



« Posted 2014-03-19 19:12:53 »

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  Grin.
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?

my blog
"...Muahahhah.ahahah... pull the lever Egor!" ..."Yesh mashter"..click... click...click..buzzzzz".......Its Alive!"
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 783
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1 - Posted 2014-03-19 21:26:30 »

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

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline MatthewNicholls

Junior Member


Medals: 1
Exp: 6 years



« Reply #2 - Posted 2014-03-20 09:09:11 »

Cheers Riven I'll give JOGL a look.

my blog
"...Muahahhah.ahahah... pull the lever Egor!" ..."Yesh mashter"..click... click...click..buzzzzz".......Its Alive!"
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline MatthewNicholls

Junior Member


Medals: 1
Exp: 6 years



« Reply #3 - Posted 2014-06-18 17:42:19 »

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();

my blog
"...Muahahhah.ahahah... pull the lever Egor!" ..."Yesh mashter"..click... click...click..buzzzzz".......Its Alive!"
Offline AppleSauce
« Reply #4 - Posted 2014-06-18 18:28:35 »

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

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #5 - Posted 2014-06-18 18:40:04 »

That would be ridiculously slow...

Offline AppleSauce
« Reply #6 - Posted 2014-06-18 18:46:48 »

That would be ridiculously slow...

Is the pi that bad?
Offline Gibbo3771
« Reply #7 - Posted 2014-06-18 18:57:23 »


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

"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Offline AppleSauce
« Reply #8 - Posted 2014-06-18 19:15:51 »

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

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #9 - Posted 2014-06-18 19:21:37 »

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.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #10 - Posted 2014-06-18 19:26:44 »

It's useful for setting up a webserver ment for not-too-much traffic Smiley

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline AppleSauce
« Reply #11 - Posted 2014-06-18 19:28:41 »

Programming is so awesome.
Offline princec

JGO Kernel


Medals: 369
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #12 - Posted 2014-06-18 19:52:13 »


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 Smiley

Offline The Lion King
« Reply #13 - Posted 2014-06-18 21:01:57 »

Opiop,

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

Quote
This means that graphics capabilities are roughly equivalent to the original Xbox’s level of performance.

"You have to want it more than you want to breath, then you will be successful"
Offline Spasi
« Reply #14 - Posted 2014-06-18 21:16:57 »

Just a thought... LWJGL-ES... can it use any context passed to it from some other library?

Untested, but yes, it should be able to.
Offline PandaMoniumHUN

JGO Coder


Medals: 31
Exp: 3 years


White-bearded OGL wizard


« Reply #15 - Posted 2014-06-18 22:47:46 »

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

My Blog | Jumpbutton Studio - INOP Programmer
Can't stress enough: Don't start game development until you haven't got the basics of programming down! Pointing
Offline kpars

JGO Wizard


Medals: 77
Projects: 4
Exp: 3 years


Extreme Typist.


« Reply #16 - Posted 2014-06-18 22:59:38 »

Is the pi that bad?

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

Stop.

- Jev

Offline MatthewNicholls

Junior Member


Medals: 1
Exp: 6 years



« Reply #17 - Posted 2014-06-19 12:39:42 »

@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

my blog
"...Muahahhah.ahahah... pull the lever Egor!" ..."Yesh mashter"..click... click...click..buzzzzz".......Its Alive!"
Offline princec

JGO Kernel


Medals: 369
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #18 - Posted 2014-06-19 12:51:00 »

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 Cool, 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 Smiley

Offline MatthewNicholls

Junior Member


Medals: 1
Exp: 6 years



« Reply #19 - Posted 2014-06-19 15:19:07 »

Cas
Quote
"just use" LWJGL-ES with that context.

That would be handy. Definite time saver. Grin

my blog
"...Muahahhah.ahahah... pull the lever Egor!" ..."Yesh mashter"..click... click...click..buzzzzz".......Its Alive!"
Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #20 - Posted 2014-06-19 17:16:48 »

Opiop,

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

Quote
This means that graphics capabilities are roughly equivalent to the original Xbox’s level of performance.
Huh, alright my bad! I never delved too far into the PI, I sold mine because I needed the money...

But it was a cool little piece of technology. Certainly useful for learning low level programming.

Online cylab

JGO Ninja


Medals: 44



« Reply #21 - Posted 2014-06-19 18:11:13 »

Actually there seems to be working lwjgl and even libgdx ports for the PI.  At least you get that impression by simply googling for it  Shocked

Mathias - I Know What [you] Did Last Summer!
Offline MatthewNicholls

Junior Member


Medals: 1
Exp: 6 years



« Reply #22 - Posted 2014-06-19 22:46:22 »

Thank you cylab for your helpful suggestion. Roll Eyes  l will have to try out this new fangled 'google'

my blog
"...Muahahhah.ahahah... pull the lever Egor!" ..."Yesh mashter"..click... click...click..buzzzzz".......Its Alive!"
Offline MatthewNicholls

Junior Member


Medals: 1
Exp: 6 years



« Reply #23 - Posted 2014-07-14 13:28:40 »

 Grin Yay I got the xbox 360 controller working on the Raspberry pi using Jinput. Next is to get my game pad library to work on Android, so it is the same across Windows/ Linux /android /raspberry pi. I already have my rendering code running on each of these. It is great when things work!

my blog
"...Muahahhah.ahahah... pull the lever Egor!" ..."Yesh mashter"..click... click...click..buzzzzz".......Its Alive!"
Pages: [1]
  ignore  |  Print  
 
 

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Nickropheliac (15 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (29 views)
2014-08-22 19:31:30

atombrot (41 views)
2014-08-19 09:29:53

Tekkerue (38 views)
2014-08-16 06:45:27

Tekkerue (35 views)
2014-08-16 06:22:17

Tekkerue (25 views)
2014-08-16 06:20:21

Tekkerue (34 views)
2014-08-16 06:12:11

Rayexar (72 views)
2014-08-11 02:49:23

BurntPizza (48 views)
2014-08-09 21:09:32
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!