MatthewNicholls
|
 |
«
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  . 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 My YouTube "...Muahahhah... pull the lever Egor!" ..."Yesh mashter"..click... click...click..buzzzzz".......Its Alive!
|
|
|
Riven
|
 |
«
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!
|
|
|
MatthewNicholls
|
 |
«
Reply #2 - Posted
2014-03-20 09:09:11 » |
|
Cheers Riven I'll give JOGL a look.
|
my blog My YouTube "...Muahahhah... pull the lever Egor!" ..."Yesh mashter"..click... click...click..buzzzzz".......Its Alive!
|
|
|
Games published by our own members! Check 'em out!
|
|
MatthewNicholls
|
 |
«
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 My YouTube "...Muahahhah... pull the lever Egor!" ..."Yesh mashter"..click... click...click..buzzzzz".......Its Alive!
|
|
|
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.
|
|
|
|
Opiop
|
 |
«
Reply #5 - Posted
2014-06-18 18:40:04 » |
|
That would be ridiculously slow...
|
|
|
|
AppleSauce
|
 |
«
Reply #6 - Posted
2014-06-18 18:46:48 » |
|
That would be ridiculously slow...
Is the pi that bad?
|
|
|
|
Gibbo3771
|
 |
«
Reply #7 - Posted
2014-06-18 18:57:23 » |
|
That would be ridiculously slow...
Is the pi that bad? 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
|
|
|
AppleSauce
|
 |
«
Reply #8 - Posted
2014-06-18 19:15:51 » |
|
So mainly its purpose is just to make python scripters feel cool? XD
|
|
|
|
Opiop
|
 |
«
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!
|
|
matheus23
|
 |
«
Reply #10 - Posted
2014-06-18 19:26:44 » |
|
It's useful for setting up a webserver ment for not-too-much traffic 
|
|
|
|
AppleSauce
|
 |
«
Reply #11 - Posted
2014-06-18 19:28:41 » |
|
Programming is so awesome.
|
|
|
|
princec
|
 |
«
Reply #12 - Posted
2014-06-18 19:52:13 » |
|
That would be ridiculously slow...
Is the pi that bad? It's essentially a £20 computer...it was not designed to use accelerated graphics. 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 
|
|
|
|
|
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.
|
|
|
|
PandaMoniumHUN
|
 |
«
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. 
|
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! 
|
|
|
kpars
|
 |
«
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
|
|
|
|
MatthewNicholls
|
 |
«
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!  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 My YouTube "...Muahahhah... pull the lever Egor!" ..."Yesh mashter"..click... click...click..buzzzzz".......Its Alive!
|
|
|
princec
|
 |
«
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  , 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 
|
|
|
|
MatthewNicholls
|
 |
«
Reply #19 - Posted
2014-06-19 15:19:07 » |
|
Cas "just use" LWJGL-ES with that context. That would be handy. Definite time saver. 
|
my blog My YouTube "...Muahahhah... pull the lever Egor!" ..."Yesh mashter"..click... click...click..buzzzzz".......Its Alive!
|
|
|
Opiop
|
 |
«
Reply #20 - Posted
2014-06-19 17:16:48 » |
|
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.
|
|
|
|
cylab
|
 |
«
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 
|
Mathias - I Know What [you] Did Last Summer!
|
|
|
MatthewNicholls
|
 |
«
Reply #22 - Posted
2014-06-19 22:46:22 » |
|
Thank you cylab for your helpful suggestion.  l will have to try out this new fangled 'google'
|
my blog My YouTube "...Muahahhah... pull the lever Egor!" ..."Yesh mashter"..click... click...click..buzzzzz".......Its Alive!
|
|
|
MatthewNicholls
|
 |
«
Reply #23 - Posted
2014-07-14 13:28:40 » |
|
 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 My YouTube "...Muahahhah... pull the lever Egor!" ..."Yesh mashter"..click... click...click..buzzzzz".......Its Alive!
|
|
|
|