Amiga.org

The "Not Quite Amiga but still computer related category" => Amiga Emulation => Topic started by: Vairn on January 13, 2011, 10:11:03 PM

Title: Amiga Emulator for iPhone in development
Post by: Vairn on January 13, 2011, 10:11:03 PM
Hey Guys, Girls.
I posted this other at EAB, a few days ago, but I shall share the love here too.
for the past few months I have been working on my own amiga emu for the iphone/ipad. Based on the winuae source tree. (which is slower then uae4all), but I have the fame_c core as well.

It is getting closer to a alpha beta release which I am planning for End of Jan, Early Feb.

Here are a couple of Video's I made of it the other day, (both show frontier), one is of the iphone/ipod
http://www.youtube.com/watch?v=pz09SK-NHQ8
The other is on the ipad.
http://www.youtube.com/watch?v=WFSVq9amdrw

I know there are sound issues.

Unlike the iAmiga emu, this one wont be locked to specific games. It will be available via Cydia, or if you aren't Jailbroken I will have a limitied amount available.
More details about that once the beta is out though.
Thanks Adam T.
Title: Re: Amiga Emulator for iPhone in development
Post by: Matt_H on January 13, 2011, 11:42:26 PM
Nicely done!
Title: Re: Amiga Emulator for iPhone in development
Post by: nicholas on January 13, 2011, 11:47:23 PM
iAmiga uses GPL source code illegally as the DRM in the Apple Appstore is incompatible with the GPL licence.

See the recent issues with VLC.
Title: Re: Amiga Emulator for iPhone in development
Post by: kickstart on January 14, 2011, 12:21:39 AM
iAmiga? =(
Title: Re: Amiga Emulator for iPhone in development
Post by: persia on January 14, 2011, 12:31:16 AM
(http://farm6.static.flickr.com/5126/5260897408_8485b5a453.jpg)
Title: Re: Amiga Emulator for iPhone in development
Post by: AmigaEd on January 14, 2011, 03:26:57 AM
I was at the mall checking out some phones this evening. Mostly, looking over the android selection. I also looked over the iPhone 4 and of course I just had to use the browser to surf over to Amiga.org. I noticed this thread on the front page, so I did humanity a favor and made sure I left this thread on visible on the iPhone display.

Gotta, say I feel pretty good about myself right now!:biglaugh:

The emulator looks quite good, if I keep seeing this kind of stuff, I'll end up buying one of these new fangled smart phones yet!
Title: Re: Amiga Emulator for iPhone in development
Post by: fishy_fiz on January 14, 2011, 04:22:58 AM
Each to thier own, but I couldnt use an amiga emulator on a phone. Half of the appeal of the amiga is the creative side, which is completely quashed by using it on a phone or similar device.
Title: Re: Amiga Emulator for iPhone in development
Post by: motorollin on January 14, 2011, 07:11:32 AM
This is great news! Would you be willing to share the XCode project? I haven't jailbroken my iPhone but have an Apple developer account so with the XCode project I can compile it myself and provision my phone to run it :)

--
moto
Title: Re: Amiga Emulator for iPhone in development
Post by: Vairn on January 14, 2011, 07:18:32 AM
@Amiga Ed:
Haha, awesome. I remember people going around and jailbreaking them when jailbreak.me came out too.

@fishy_fiz:
yup, and the half that is me playing games on my ipad on the train ride home from work (takes 1 hour) ;)
if anyone else gets any joy from it, it is a bonus

@motorollin:
I will release the source code, so other people can make use of it.
Maybe not with the first beta though, depends on how neat the code is. :)
Via git or some other code repo.
Title: Re: Amiga Emulator for iPhone in development
Post by: fishy_fiz on January 14, 2011, 07:36:06 AM
Quote from: Vairn;606572
@fishy_fiz:
yup, and the half that is me playing games on my ipad on the train ride home from work (takes 1 hour) ;)
if anyone else gets any joy from it, it is a bonus


Ah, I see you're in Melbourne (Im just outside, in Ballarat). Them sounds like fighting words to me, come on then fisticuffs all the way, we'll settle this like men  ;)
Hehe, nah, seriously, it's kinda cool. Not really for me though.
Title: Re: Amiga Emulator for iPhone in development
Post by: motorollin on January 14, 2011, 07:36:20 AM
That's great news, thanks Vairn! Will there be higher resolution iPad and retina versions?

--
moto
Title: Re: Amiga Emulator for iPhone in development
Post by: ChaosLord on January 14, 2011, 07:38:32 AM
I hope you will add JIT
Title: Re: Amiga Emulator for iPhone in development
Post by: Vairn on January 14, 2011, 10:27:36 AM
@Fishy_fiz:
Cool, I shall meet you half way, that would be hmm, Melton right?

@Motorollin:
Yea, it scales it up on the Ipad/retina.
I may implement an OpenGLES shader for it, depends on the overhead, atm.
Since I am not going via appstore, I can use the forbidden CoreSurface API ;) woo.
So the emu writes straight to the video buffer. Take that Apple, which then it nicely scales to fit the window.
atm it runs at 640x480.

I am working on getting p96 working, so you can have a nice 1024x768 wb.


@ChaosLord:
I have plans to write a ARM asm version of the CPU core, maybe not JiT though.
But that will be after the beta.
Title: Re: Amiga Emulator for iPhone in development
Post by: motorollin on January 14, 2011, 10:45:45 AM
@Vairn
Sounds out of this world!!!!! Do you needs any beta testers? I have an iPhone 4 and an iPad I would be more than happy to test on :)
Title: Re: Amiga Emulator for iPhone in development
Post by: jj on January 14, 2011, 11:33:29 AM
http://www.bbc.co.uk/news/magazine-12182714
 
Think sheeple applys to you moto :)
Title: Re: Amiga Emulator for iPhone in development
Post by: coldfish on January 14, 2011, 11:33:43 AM
Amiga gaming on a handheld is sublime.  I have UAE4all on my GP2X.
Title: Re: Amiga Emulator for iPhone in development
Post by: motorollin on January 14, 2011, 01:10:59 PM
@JJ
Not really, I bought iOS devices because they work ;)
Title: Re: Amiga Emulator for iPhone in development
Post by: nicholas on January 14, 2011, 01:21:58 PM
Quote from: motorollin;606619
@JJ
Not really, I bought iOS devices because they work ;)


"Work" is subjective mate.

I don't buy iSaviour devices because they don't work.
Title: Re: Amiga Emulator for iPhone in development
Post by: motorollin on January 14, 2011, 01:29:35 PM
Quote from: nicholas;606623
"Work" is subjective mate.

I don't buy iSaviour devices because they don't work.


Fair point. I should have said "they work for me". Integration with the Mac is the deal maker for me.
Title: Re: Amiga Emulator for iPhone in development
Post by: jj on January 14, 2011, 01:31:10 PM
Quote from: motorollin;606619
@JJ
Not really, I bought iOS devices because they work ;)

 
They do work well at what your allowed to do with them and if that matches what you want from the devices then fair enough.
 
i would keep my N900 over an iphone or android device any day
Title: Re: Amiga Emulator for iPhone in development
Post by: motorollin on January 14, 2011, 01:44:57 PM
Quote from: JJ;606626
They do work well at what your allowed to do with them and if that matches what you want from the devices then fair enough.

It just so happens that it does :) I'm not really sure what people are doing with their phones beyond phoning, texting, surfing, emailing, playing games, using other apps and listening to music, but you can be sure that if I suddenly decided that iPhone no longer met my needs then I'd ditch it for something else.
Title: Re: Amiga Emulator for iPhone in development
Post by: motorollin on January 14, 2011, 01:47:38 PM
Quote from: coldfish;606596
Amiga gaming on a handheld is sublime.  I have UAE4all on my GP2X.


I missed this post. I totally agree that UAE4All is amazing on the GP2X. Unfortunately I had to sell my GP2X, and I really miss it :(
Title: Re: Amiga Emulator for iPhone in development
Post by: Duce on January 14, 2011, 03:28:42 PM
Super news, and finally a reason for me to jailbreak my apple handheld/portable devices.  I sure love the devices, but the lockdown factor Apple crams down the customers neck is offputting, to put it mildly.  Looking forward to trying this, especially on my iPad.

For all those whining about the lockdown methods of Apple in regards to "i" devices, it's preaching to the choir, even to us that own said devices, locked or unlocked.  We know Apple's regime for controlling apps, and some jailbreak to get around it.  End result is I've used every smartphone on the market and I've found the iPhone to be the one device that comes closer than any other for an all in one/carry one only device.  I'm far from an Apple fanboy, I simply use what works for me.  The iPad on the other hand is mostly just eyecandy and a timesink "read a book in bed" device, and an expensive one at that.
Title: Re: Amiga Emulator for iPhone in development
Post by: scarnie on January 16, 2011, 04:59:09 AM
Quote from: nicholas;606499
iAmiga uses GPL source code illegally as the DRM in the Apple Appstore is incompatible with the GPL licence.

See the recent issues with VLC.

That has a lot of other political issues surrounding it, such as the lead developer working for Nokia...  Why would you make an issue out of that here?  Aren't we all supposed to just be sharing our experiences and having fun with Amiga?  If the source code for all of iAmiga is released so anyone can freely use it, isn't it truly in the spirit of GPL?  I plan on doing this (as with all my other projects) on to github.

I've spent literally 100's of hours building my own ARM/C optimized 68K CPU, so I've done my time in this code base and earned my stars.

Cheers,

Stu
Title: Re: Amiga Emulator for iPhone in development
Post by: tribz on January 16, 2011, 09:48:36 AM
Quote from: Duce;606658
Super news, and finally a reason for me to jailbreak my apple  The iPad on the other hand is mostly just eyecandy and a timesink "read a book in bed" device, and an expensive one at that.


Have to disagree with that. It may be to you but to me its a very useful tool. Using RDP I can access all my servers. Using TeamViewer, I can support my userbase. All my technical manuals are on mine.

The instant on means I can be supporting someone within a few seconds of taking their call wherever I happen to be. I can use the email client to respond to my clients wherever I am. I can almost touch type on the screen. Mine has paid for itself many times over and without wishing to sound like a fanboy, I'm really interested to see what they do with iPad2.
Title: Re: Amiga Emulator for iPhone in development
Post by: TheBilgeRat on January 16, 2011, 07:33:01 PM
Quote from: tribz;606995
Have to disagree with that. It may be to you but to me its a very useful tool. Using RDP I can access all my servers. Using TeamViewer, I can support my userbase. All my technical manuals are on mine.

The instant on means I can be supporting someone within a few seconds of taking their call wherever I happen to be. I can use the email client to respond to my clients wherever I am. I can almost touch type on the screen. Mine has paid for itself many times over and without wishing to sound like a fanboy, I'm really interested to see what they do with iPad2.

While I don't own one yet, I have to agree with this, considering I use my iPhone in much the same way.  I will be very interested though in the many Android offerings in a "pad" that are hitting the market as well, so I'm not quite ready to jump to one yet :) .
Title: Re: Amiga Emulator for iPhone in development
Post by: Vairn on January 16, 2011, 09:56:43 PM
I have alot of respect for Stu, and his iAmiga emulator, I wish I was able to spend my full time job working on mine.

I have spoken to him a couple of times, and he is a cool dude, and I wish him the best of luck :D
Title: Re: Amiga Emulator for iPhone in development
Post by: scarnie on January 18, 2011, 07:20:50 AM
Quote from: Vairn;607118
I have alot of respect for Stu, and his iAmiga emulator, I wish I was able to spend my full time job working on mine.

I have spoken to him a couple of times, and he is a cool dude, and I wish him the best of luck :D


Cheers mate - likewise.  I see us being able to collaborate on this in the future too :)

BTW, this is my part time hobby (I have a full time day job as a software architect).  I do all this at night and on weekends, in between being a husband and dad of 2 ;-)

Cheers,

Stu
Title: Re: Amiga Emulator for iPhone in development
Post by: scarnie on January 18, 2011, 07:28:17 AM
Incidentally, I ended up getting my OGL code working with glTexSubImage2d, and it's a lot faster than CALayer (using image in RGB5551, which is fast path in CG).  I now get a consistent 60fps in full screen 2x scaling on i4 (960x640).

Using shader effects has been interesting.  It doesn't take much to drop below 60fps, and dependent texture reads totally annihilate perf on the retina display.  Dropped to as low as 23fps with a simple 2-pixel multi-texture shader to create a scanline effect (actually pretty consistent no matter how big the effect texture is.  If you calculate tex-coords inside shader, perf goes out the window.

Implemented a native scanline shader effect (see below), and fps is consistently 60fps again, so it's definitely texture reads.

Code: [Select]

varying mediump vec2 TextureCoordOut;
uniform sampler2D DisplayTexture;
uniform lowp float EffectAmount;

void main(void)
{
gl_FragColor = texture2D(DisplayTexture, TextureCoordOut);
gl_FragColor.a = mod(gl_FragCoord.y, 2.0) + EffectAmount;
}


Cheers,

Stu
Title: Re: Amiga Emulator for iPhone in development
Post by: Vairn on January 18, 2011, 10:12:17 AM
Yeah, 565 is always going to be faster, make sure you setup your EAGL context to be the same format, for a little perf and mem boostie.

If you can get away with it, do all texture coord's calculations on the Vertex shader, it is what apple recommend, supposedly it doesn't get the dependent texture reads. I haven't tested it at work, back in PC land atm. Might have a looksie later, now that my daughter is in bed. (11 months old in 2 days :D).
Title: Re: Amiga Emulator for iPhone in development
Post by: scarnie on January 18, 2011, 03:35:07 PM
Quote from: Vairn;607388
Yeah, 565 is always going to be faster, make sure you setup your EAGL context to be the same format, for a little perf and mem boostie.

If you can get away with it, do all texture coord's calculations on the Vertex shader, it is what apple recommend, supposedly it doesn't get the dependent texture reads. I haven't tested it at work, back in PC land atm. Might have a looksie later, now that my daughter is in bed. (11 months old in 2 days :D).


Absolutely - my EAGL context is 16-bit.  I've tested removing the dependent read and perf jumps right back to 60fps.  Unfortunately, can't calculate the 'effect' texture in vertex shader, but I've got some alternatives I want to try.  GL_REPEAT might do the job for me :)

Congrats on the little one too, mate!  Good stuff.
Title: Re: Amiga Emulator for iPhone in development
Post by: djnick on January 18, 2011, 03:53:09 PM
Quote from: se which I am planning for End of Jan, Early Feb.

...
[url
http://www.youtube.com/watch?v=pz09SK-NHQ8[/url]
The other is on the ipad.
http://www.youtube.com/watch?v=WFSVq9amdrw

I know there are sound issues.



Amazing! I installed last week Mame emulator with over 150 great games on my 3gs and I am more than happy to see how fast it is working! Can't wait to try iAmiga :)
Title: Re: Amiga Emulator for iPhone in development
Post by: scarnie on January 20, 2011, 06:49:47 AM
Quote from: Vairn;607388
Yeah, 565 is always going to be faster, make sure you setup your EAGL context to be the same format, for a little perf and mem boostie.

If you can get away with it, do all texture coord's calculations on the Vertex shader, it is what apple recommend, supposedly it doesn't get the dependent texture reads. I haven't tested it at work, back in PC land atm. Might have a looksie later, now that my daughter is in bed. (11 months old in 2 days :D).


By eliminating the dependent texture reads, I now maintain a consistent 60fps with effects enabled in full screen (960x640)!

Cheers,

Stu
Title: Re: Amiga Emulator for iPhone in development
Post by: theweeone on January 21, 2011, 05:19:34 PM
Quote from: Vairn;606482
Hey Guys, Girls.
I posted this other at EAB, a few days ago, but I shall share the love here too.
for the past few months I have been working on my own amiga emu for the iphone/ipad. Based on the winuae source tree. (which is slower then uae4all), but I have the fame_c core as well.

It is getting closer to a alpha beta release which I am planning for End of Jan, Early Feb.

Here are a couple of Video's I made of it the other day, (both show frontier), one is of the iphone/ipod
http://www.youtube.com/watch?v=pz09SK-NHQ8
The other is on the ipad.
http://www.youtube.com/watch?v=WFSVq9amdrw

I know there are sound issues.

Unlike the iAmiga emu, this one wont be locked to specific games. It will be available via Cydia, or if you aren't Jailbroken I will have a limitied amount available.
More details about that once the beta is out though.
Thanks Adam T.
Nice idea. Only question is how would someone control a game an an Iphone. Incidentally I just bought an Iphone 2 days ago. It would be nice to have some sort of Amiga emulator on it,that is if Apple would ever approve it. If not then why not? It's not as if it would harm the company in any way.
Title: Re: Amiga Emulator for iPhone in development
Post by: slaapliedje on January 21, 2011, 08:29:13 PM
Quote from: JJ;606626
They do work well at what your allowed to do with them and if that matches what you want from the devices then fair enough.
 
i would keep my N900 over an iphone or android device any day

I have an N900 as well, and I love it.

What we need is a proper PUAE port though.  Then again, I have a hard time getting a build to work on my desktop machine at this point.

I also haven't had much luck in using the e-UAE port or the UAE4ALL port.  The first doesn't get much further than the configuration UI for anything I've tried, and the other I haven't been able to do much, but play a choppy sounding game.

slaapliedje
Title: Re: Amiga Emulator for iPhone in development
Post by: bsauvage on August 13, 2011, 01:01:44 PM
Stuart, congrats on launching Defender of the Crown. Great effort, it works flawlessly! Very well optimised, you deserve it to be a success.
 
Vairn, any news about your open source project?
Title: Re: Amiga Emulator for iPhone in development
Post by: Karlos on August 13, 2011, 01:44:29 PM
Quote from: nicholas;606623
"Work" is subjective mate.

I don't buy iSaviour devices because they don't work.


Hang on, I've seen your apple notebook :lol:

From what I recall, it looks like it needs a saviour itself!
Title: Re: Amiga Emulator for iPhone in development
Post by: nicholas on August 13, 2011, 03:06:36 PM
Quote from: Karlos;654474
Hang on, I've seen your apple notebook :lol:

From what I recall, it looks like it needs a saviour itself!


It's got worse!
Title: Re: Amiga Emulator for iPhone in development
Post by: scarnie on August 17, 2011, 05:10:29 PM
Quote from: bsauvage;654468
Stuart, congrats on launching Defender of the Crown. Great effort, it works flawlessly! Very well optimised, you deserve it to be a success.
 
Vairn, any news about your open source project?


Thanks much, mate.  Lot of work, but worth the effort.  On to the next title now.  We've got a lot of interest to publish more Amiga titles!
Title: Re: Amiga Emulator for iPhone in development
Post by: martin.demsky on August 18, 2011, 08:29:07 PM
http://www.martindemsky.com/iphone.jpg

i have these iP apps, including Amiga titles, but i deleted many free because 16 gig wasn't enough :)
Title: Re: Amiga Emulator for iPhone in development
Post by: lugduweb on August 25, 2011, 07:47:35 PM
Look here :
http://iuae.dragotech.net/?m=201108

iUAE is an Amiga Emulator for Apple iOS and Android in development by Vairn !
Looks like a release is coming soon...
Don't know if iUAE is only for iPhone or also for iPad.
Title: Re: Amiga Emulator for iPhone in development
Post by: ddniUK on August 26, 2011, 12:35:52 PM
Has this been used by Cinemaware for their Amiga emulated Defender of the Crown IoS offering?
http://itunes.apple.com/app/defender-of-the-crown/id447552008?mt=8
Title: Re: Amiga Emulator for iPhone in development
Post by: Piru on August 26, 2011, 01:34:12 PM
Quote from: lugduweb;656124
Look here :
http://iuae.dragotech.net/?m=201108

iUAE is an Amiga Emulator for Apple iOS and Android in development by Vairn !
Looks like a release is coming soon...
Don't know if iUAE is only for iPhone or also for iPad.

Too bad that you need to jailbreak your iPhone/iPad in order to use this thing. Apple won't allow full blown emulation to app store.

Quote
3.3.2 An Application may not itself install or launch other executable code by any means, including without limitation through the use of a plug-in architecture, calling other frameworks, other APIs or otherwise. No interpreted code may be downloaded and used in an Application except for code that is interpreted and run by Appleā€™s Published APIs and built-in interpreter(s).
Title: Re: Amiga Emulator for iPhone in development
Post by: Calen on August 26, 2011, 02:58:57 PM
Quote from: lugduweb;656124
Look here :
http://iuae.dragotech.net/?m=201108
iUAE is an Amiga Emulator for Apple iOS and Android in development by Vairn !
Looks like a release is coming soon...
Don't know if iUAE is only for iPhone or also for iPad.
I had run into this site only a few days, His PUAE port seems quite interesting for Android.
Early days with it as no sound yet. First release expected soon.

Just got a Galaxy S2 the past week, so quite looking forward to trying it.

http://droidpuae.blogspot.com/
Title: Re: Amiga Emulator for iPhone in development
Post by: bloodline on August 26, 2011, 03:55:34 PM
Quote from: Piru;656188
Too bad that you need to jailbreak your iPhone/iPad in order to use this thing. Apple won't allow full blown emulation to app store.
Or have a developer licence... Then you can compile your own :)