amiga.org
     
iconAll times are GMT -6. The time now is 07:11 PM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » The "Not Quite Amiga but still computer related category" » Alternative Operating Systems » Amiga Boing ball for Raspberry PI

Alternative Operating Systems This forum is dedicated to discussions of alternatives to the Commodore Amiga Platform, such as Linux distributions, FreeBSD, OpenBSD, and others.

Reply
 
Thread Tools Display Modes
Old 11-01-2012, 06:08 PM   #1
bbond007
Defender of the Faith
Points: 8,797, Level: 63 Points: 8,797, Level: 63 Points: 8,797, Level: 63
Activity: 26% Activity: 26% Activity: 26%
 
bbond007's Avatar
 
Join Date: Mar 2009
Posts: 1,266
Default Amiga Boing ball for Raspberry PI

I don't know if anyone is interested in this or not...

The classic "Boing Ball" for the Raspberry PI!

Like the original, it takes advantage of the hardware

It uses direct hardware acclerated ELGS and the OMX sound API so it only works on Rapberry PI.

default sound is headphone jack..

RaspPIBoing.bin HDMI

or

RaspPIBoing.bin NONE
Attached Images
File Type: jpg RaspPIBoing.JPG (73.4 KB, 74 views)
Attached Files
File Type: zip RaspPIBoing.bin.zip (39.4 KB, 13 views)

Last edited by bbond007; 11-01-2012 at 08:58 PM..
bbond007 is offline   Reply With Quote
Old 11-01-2012, 10:14 PM   #2
bbond007
Defender of the Faith
Points: 8,797, Level: 63 Points: 8,797, Level: 63 Points: 8,797, Level: 63
Activity: 26% Activity: 26% Activity: 26%
 
bbond007's Avatar
 
Join Date: Mar 2009
Posts: 1,266
Default Re: Amiga Boing ball for Raspberry PI

I updated the EXE to try and clean up the sound when using the heaphone option.

It did not seem to help, however, I did make the audio a little more efficient.

The HDMI sounds great so it may be down to a buggy driver. I noticed the same issue with other programs. I could try different sample rates to see if it makes a difference but if i go too high the EXE won't fit on the forum.

Actually, this is like my "Hello World" type program on the PI, so I will probably just move on to something more interesting

Last edited by bbond007; 11-01-2012 at 10:17 PM..
bbond007 is offline   Reply With Quote
Old 11-01-2012, 10:55 PM   #3
som99
Lifetime Member
Points: 8,593, Level: 62 Points: 8,593, Level: 62 Points: 8,593, Level: 62
Activity: 59% Activity: 59% Activity: 59%
 
som99's Avatar
 
Join Date: Sep 2005
Location: Sweden, Fort Independence
Posts: 872
Send a message via MSN to som99
Default Re: Amiga Boing ball for Raspberry PI

I will try this out later today Thanks
__________________
I feel like a big can of unluck that's just about to open up on someone.
som99 is offline   Reply With Quote
Old 11-02-2012, 02:48 AM   #4
bloodline
Master Sock Abuser
Points: 37,111, Level: 100 Points: 37,111, Level: 100 Points: 37,111, Level: 100
Activity: 10% Activity: 10% Activity: 10%
 
bloodline's Avatar
 
Join Date: Mar 2002
Location: London, UK
Posts: 11,656
Blog Entries: 3
Default Re: Amiga Boing ball for Raspberry PI

You should publish the source x
__________________
My iPhone Game: Puny Humans -
http://itunes.apple.com/gb/app/puny-...362230281?mt=8
bloodline is offline   Reply With Quote
Old 11-02-2012, 03:17 AM   #5
takemehomegrandma
Kindred of Babble-on
Points: 16,121, Level: 81 Points: 16,121, Level: 81 Points: 16,121, Level: 81
Activity: 5% Activity: 5% Activity: 5%
 
takemehomegrandma's Avatar
 
Join Date: Oct 2002
Posts: 2,583
Default Re: Amiga Boing ball for Raspberry PI

Cool!

__________________
djnick (a struggling OS4 user): "AmigaOS really needs update. Basic stuff we all used to work with like Watching movies, Youtube, Painting, Word typing, DropBox... are extremly hard to achieve on Amiga."

Well djnick, the update has been out for more than a decade. It is called MorphOS. It will solve your problems and do everything you asks for in that thread, and a lot more!

MorphOS is Amiga done right!
takemehomegrandma is offline   Reply With Quote
Old 11-02-2012, 04:10 AM   #6
gaula92
Technoid
Points: 6,163, Level: 51 Points: 6,163, Level: 51 Points: 6,163, Level: 51
Activity: 11% Activity: 11% Activity: 11%
 
gaula92's Avatar
 
Join Date: Dec 2007
Posts: 323
Default Re: Amiga Boing ball for Raspberry PI

Very interesting!
Of course, I also would like to peek at the sources, as I'm experimenting with Pi myself and accelerated 2D without X is just what I'm looking at
gaula92 is offline   Reply With Quote
Old 11-02-2012, 06:18 AM   #7
som99
Lifetime Member
Points: 8,593, Level: 62 Points: 8,593, Level: 62 Points: 8,593, Level: 62
Activity: 59% Activity: 59% Activity: 59%
 
som99's Avatar
 
Join Date: Sep 2005
Location: Sweden, Fort Independence
Posts: 872
Send a message via MSN to som99
Default Re: Amiga Boing ball for Raspberry PI

Quote:
Originally Posted by bloodline View Post
You should publish the source x
Quote:
Originally Posted by gaula92 View Post
Very interesting!
Of course, I also would like to peek at the sources, as I'm experimenting with Pi myself and accelerated 2D without X is just what I'm looking at
I agree, the source would be fun to look at
__________________
I feel like a big can of unluck that's just about to open up on someone.
som99 is offline   Reply With Quote
Old 11-02-2012, 06:54 AM   #8
bloodline
Master Sock Abuser
Points: 37,111, Level: 100 Points: 37,111, Level: 100 Points: 37,111, Level: 100
Activity: 10% Activity: 10% Activity: 10%
 
bloodline's Avatar
 
Join Date: Mar 2002
Location: London, UK
Posts: 11,656
Blog Entries: 3
Default Re: Amiga Boing ball for Raspberry PI

Quote:
Originally Posted by gaula92 View Post
Very interesting!
Of course, I also would like to peek at the sources, as I'm experimenting with Pi myself and accelerated 2D without X is just what I'm looking at
I have written a basic raspberry Pi Graphics library based on OpenVG (with mouse input) for use without the abortion that is X... It's very crude at the moment, and I intend to improve it (by moving it to OpenGL)... But you might like to try it... I'm hoping to build a set of audio classes using OpenMAX... Hence, why I want to see the sources here
__________________
My iPhone Game: Puny Humans -
http://itunes.apple.com/gb/app/puny-...362230281?mt=8
bloodline is offline   Reply With Quote
Old 11-02-2012, 07:09 AM   #9
gaula92
Technoid
Points: 6,163, Level: 51 Points: 6,163, Level: 51 Points: 6,163, Level: 51
Activity: 11% Activity: 11% Activity: 11%
 
gaula92's Avatar
 
Join Date: Dec 2007
Posts: 323
Default Re: Amiga Boing ball for Raspberry PI

Quote:
for use without the abortion that is X
hahaha! True. It has many advocates and I don't get why: it's causing most of the graphics jerkyness in Linux and is one of the main culprits of this OS's weight.
Good thing we already got wayland almost ready for desktop-addicts (I'm a terminal guy anyway, so I don't really mind desktop systems).

I'd like to take a peak into that OpenVG library too: I'm currently finishing a nice dispmanx backend for libSDL. I already have nice double-buffered graphics with zero tearing, thus having examples running smooth as Amiga scrolls.
Does OpenVG implement buffer and vsync control? As I understand it, it's just for vector graiphics plotting so it needs an underlaying system to render into... correct me if I'm wrong.
gaula92 is offline   Reply With Quote
Old 11-02-2012, 08:48 AM   #10
bloodline
Master Sock Abuser
Points: 37,111, Level: 100 Points: 37,111, Level: 100 Points: 37,111, Level: 100
Activity: 10% Activity: 10% Activity: 10%
 
bloodline's Avatar
 
Join Date: Mar 2002
Location: London, UK
Posts: 11,656
Blog Entries: 3
Default Re: Amiga Boing ball for Raspberry PI

Quote:
Originally Posted by gaula92 View Post
hahaha! True. It has many advocates and I don't get why: it's causing most of the graphics jerkyness in Linux and is one of the main culprits of this OS's weight.
Good thing we already got wayland almost ready for desktop-addicts (I'm a terminal guy anyway, so I don't really mind desktop systems).

I'd like to take a peak into that OpenVG library too: I'm currently finishing a nice dispmanx backend for libSDL. I already have nice double-buffered graphics with zero tearing, thus having examples running smooth as Amiga scrolls.
Does OpenVG implement buffer and vsync control? As I understand it, it's just for vector graiphics plotting so it needs an underlaying system to render into... correct me if I'm wrong.
OpenVG is just accelerated vector drawing, it's not really for highspeed graphics... It sits on OpenGL. But it is useful for fast primitive drawing.

I use it to develop my library, then I will reimplement it using OpenGL surfaces. The API shouldn't need to change... But I should get a massive performance boost
__________________
My iPhone Game: Puny Humans -
http://itunes.apple.com/gb/app/puny-...362230281?mt=8
bloodline is offline   Reply With Quote
Old 11-02-2012, 09:08 AM   #11
bbond007
Defender of the Faith
Points: 8,797, Level: 63 Points: 8,797, Level: 63 Points: 8,797, Level: 63
Activity: 26% Activity: 26% Activity: 26%
 
bbond007's Avatar
 
Join Date: Mar 2009
Posts: 1,266
Default Re: Amiga Boing ball for Raspberry PI

Quote:
Originally Posted by som99 View Post
I agree, the source would be fun to look at
I was going to put the sources in the tar.gz, but it would not fit ithe size limit, I converted the wav to c array which really bloats the source.. maybe i can put it on github or something when i get home from work...

the ball is drawn with as one GL_TRIANGLE_STRIP array which is no big deal, but I also did the same thing with the grid this time using surface culling in such a way that the lines of the grid are not conencted...

I took the bouncing logic from another boing ball thing I found on the internet. Wish I still had that original source.

EDIT: found it, here is the original project that I borrowed a lot of the logic from.

http://www.jimbrooks.org/web/opengl/boing/

Last edited by bbond007; 11-02-2012 at 10:37 AM..
bbond007 is offline   Reply With Quote
Old 11-02-2012, 09:38 AM   #12
bbond007
Defender of the Faith
Points: 8,797, Level: 63 Points: 8,797, Level: 63 Points: 8,797, Level: 63
Activity: 26% Activity: 26% Activity: 26%
 
bbond007's Avatar
 
Join Date: Mar 2009
Posts: 1,266
Default Re: Amiga Boing ball for Raspberry PI

Quote:
Originally Posted by som99 View Post
I agree, the source would be fun to look at
ok. here is what I did in order to make the source under the 97.7k file size limit:

I got rid of soundraw.c which can be recreated by running the included script "convertwav16.sh"

you'll need mplayer installed.
Attached Files
File Type: zip RaspPIBoingSource.ZIP (82.9 KB, 2 views)

Last edited by bbond007; 11-05-2012 at 04:05 PM..
bbond007 is offline   Reply With Quote
Old 11-02-2012, 09:45 AM   #13
som99
Lifetime Member
Points: 8,593, Level: 62 Points: 8,593, Level: 62 Points: 8,593, Level: 62
Activity: 59% Activity: 59% Activity: 59%
 
som99's Avatar
 
Join Date: Sep 2005
Location: Sweden, Fort Independence
Posts: 872
Send a message via MSN to som99
Default Re: Amiga Boing ball for Raspberry PI

Quote:
Originally Posted by bbond007 View Post
ok. here is what I did in order to make the source under the 97.7k file size limit:

I got rid of soundraw.c which can be recreated by running the included script "convertwav16.sh"

you'll need mplayer installed.
Thanks for taking time to give us the source, appreciated
Might be time for me to put together a free file hosting service for Amiga forums to share files unrestricted with other users and with web interface, hmmm
__________________
I feel like a big can of unluck that's just about to open up on someone.

Last edited by som99; 11-02-2012 at 09:47 AM..
som99 is offline   Reply With Quote
Old 11-02-2012, 10:30 AM   #14
bbond007
Defender of the Faith
Points: 8,797, Level: 63 Points: 8,797, Level: 63 Points: 8,797, Level: 63
Activity: 26% Activity: 26% Activity: 26%
 
bbond007's Avatar
 
Join Date: Mar 2009
Posts: 1,266
Default Re: Amiga Boing ball for Raspberry PI

Quote:
Originally Posted by gaula92 View Post
Very interesting!
Of course, I also would like to peek at the sources, as I'm experimenting with Pi myself and accelerated 2D without X is just what I'm looking at
maybe look at the sprite example in ths
gles2framework

https://github.com/chriscamacho/gles2framework


the phystest one is really cool. i'm going to try and replace the spheres with boing balls
bbond007 is offline   Reply With Quote
Old 11-05-2012, 11:00 AM   #15
bbond007
Defender of the Faith
Points: 8,797, Level: 63 Points: 8,797, Level: 63 Points: 8,797, Level: 63
Activity: 26% Activity: 26% Activity: 26%
 
bbond007's Avatar
 
Join Date: Mar 2009
Posts: 1,266
Default Re: Amiga Boing ball for Raspberry PI

I have updated the Raspberry PI Boing demo to optionally run on the desktop.

the technique uses eglCreatePixmapSurface() to render the view off-screen.

there is a bottleneck with how it currently works because the X11 server runs 16bpp and the rendering is done in 32bpp. You can read more about that on this thread:

http://www.raspberrypi.org/phpBB3/vi...hp?f=63&t=6488

Anyway the parameters for the sound remain the same (none/hdmi)

I have added a parameter for X11 (x/X)

X = 640 * 480

x = 320 * 240

EDIT: (new home for this project)

https://github.com/bbond007/RaspPIBoing
Attached Images
File Type: jpg RaspPIBoingX.jpg (30.7 KB, 4 views)
Attached Files
File Type: zip RaspPIBoing.bin.ZIP (41.2 KB, 1 views)
File Type: zip RaspPIBoingSource.ZIP (82.9 KB, 0 views)

Last edited by bbond007; 11-05-2012 at 04:10 PM..
bbond007 is offline   Reply With Quote
Reply

Bookmarks

Tags
amiga , ball , boing , raspberry

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump