News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Devilmarkus

JavaCPC Desktop available as BETA!

Started by Devilmarkus, 22:46, 25 December 09

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Devilmarkus

Thanks for your feedback, chrd.

Version 6.7 is already very old & outdated.
Since I applied a complete desktop system and many new features, the emulator is not longer hosted on Sourceforge.

Also the actual version is meant to be used on Windows systems only, because it uses a few command line based Windows-Tools.
(It could work also on Mac OS when you start the .jar file! but will not support the features like DSKUtil, CDT/DSK transfer tools etc...)
You should also make sure, that you launch it with -xms set.
e.g. java -Xms768m -jar javacpc.jar

You can download and test the actual beta here:
Download 2011-07-14 beta
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

chrd

#301
Quote from: Devilmarkus on 21:55, 22 July 11
Thanks for your feedback, chrd.

Version 6.7 is already very old & outdated.
Since I applied a complete desktop system and many new features, the emulator is not longer hosted on Sourceforge.

Also the actual version is meant to be used on Windows systems only, because it uses a few command line based Windows-Tools.
(It could work also on Mac OS when you start the .jar file! but will not support the features like DSKUtil, CDT/DSK transfer tools etc...)
You should also make sure, that you launch it with -xms set.
e.g. java -Xms768m -jar javacpc.jar

You can download and test the actual beta here:
Download 2011-07-14 beta

Thanks!
I can confirm that this JavaCPC version is working perfectly fine (apart from the missing features) on OS X 10.6.8.
java -version:

java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)

MiguelSky

Quote from: Devilmarkus on 20:45, 13 July 11
No... Until I can't extract the files from a CDT its not possible ;)
Some applications as Spectrum Taper can do it. Perhaps you could start to seek there ;)

Devilmarkus

Quote from: MiguelSky on 01:19, 23 July 11
Some applications as Spectrum Taper can do it. Perhaps you could start to seek there ;)

I already searched there.
But no tool is good for my requirements...
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

mahlemiut

Update on running Java CPC under Linux...

Uninstalled Pulseaudio, now it will run at 51(?) FPS.  But only if it is to 44100Hz.  Any other setting goes back to 5FPS.  Also, there is no AY output.  Drive noises, SP0256 output, and so on do work well.

When running slow, either with or without Pulseaudio, the console output shows constant "resync: start = 0" messages.
- Barry Rodewald

Devilmarkus

A few people have shown me a link to an emulator, which has a "screen lens effect" (Forgot the link, sorry...)
Well I tried to code that, too, but with only 1-2fps it's not really fun!

When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Gryzor

Mmmm...not very realistic I'm afraid... Maybe the lack of scanlines?

MaV

#307
You lack the border, and the screen lens effect is not as big on a monitor as shown in your example.

I also don't think that such an effect is justified as it adds little value to the retro quality of the CPC image, especially since such algorithms are quite costly on the java platform. The OS X terminal emulation in the other thread is compiled natively for sure.
Black Mesa Transit Announcement System:
"Work safe, work smart. Your future depends on it."

Gryzor

Well, give him a break, it was a first effort :)

Devilmarkus

Don't need a break because I already abandoned this crap...
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Devilmarkus

But the CTM-phosphor emulation I like:


Of course it's not the closest result but it's coded in pure java without any accelerators!
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Morn

Yes, good phosphor emulation is definitely more important. By default the CPC screen has such wide borders that the curvature effect is fairly minimal anyway.


And I suspect Cathode uses a textured OpenGL surface for the curved screen, so of course its frame rate is much better--the "screen bending" effect is not done by the CPU but the GPU. And yet the program is still a total CPU hog according to the YouTube comments.




MaV

Quote from: Morn on 23:04, 20 August 11
And I suspect Cathode uses a textured OpenGL surface for the curved screen, so of course its frame rate is much better--the "screen bending" effect is not done by the CPU but the GPU. And yet the program is still a total CPU hog according to the YouTube comments.

I can imagine that. It expects a better graphics chip in the Mac, so the Intel-chips and even some better ones won't work.

The effect looks very nice, but I need a responsive system.
Black Mesa Transit Announcement System:
"Work safe, work smart. Your future depends on it."

mahlemiut

You could try fiddling with the HLSL effects in MESS, you can get some nice output from that, provided you have a reasonably powerful video card (Pixel Shaders 3.0 or later recommended, Windows only, but runs well under Wine).
- Barry Rodewald

Morn

Those HLSL-based CRT effects look pretty nice indeed! Here's an example with MAME, not MESS. Could really have fooled me into thinking this was filmed off an arcade CRT.


This is also good news for arcade enthusiasts, because finding replacement CRTs is becoming more and more problematic for them apparently.





Devilmarkus

#315
The biggest problem to realize such effects is:
The emulated systems have a screen resolution of 320x240 (or so) so it's easy to resize this screen to a triple size.
There you can add easily new rendered dots, lines etc...
But the CPC uses at least 768x272 pixels.
There it's much harder to add additional pixels.
I am doing the same method as its used in DosBox.
I also use just 384x272 pixels, and stretch them to double (768x544)
So I can re-render each pixel to a new 2x2 dot.
{R}{G}
{B}{L}

This demonstrates a single CPC dot in MODE 1.

I split this pixel into R,G, B and also L (RGB as its by default)

Thus, a MODE 2 screen looks more weird of course.I also can't use any hardware accelerators (jogl, or similar) to improve the speed, so really just some tricky algorithms can do the effects I made in JavaCPC.

WinApe for example:

I am sure, the PAL effect is done with usage of Direct-X accelerated routines...
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Gryzor

Unfortunately that MAME filter doesn't come near the real stuff... I hope my arcade cab's CRT lasts for many years to come!

Devilmarkus

Thanks to Antonio Villena, JavaCPC will be able soon, to playback a modified .TAP format as tape image:



I will also add a converter which can convert CDT images to .TAP format.
Sadly the .TAP work only with unprotected CDTs...
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Gryzor

Quote from: Devilmarkus© on 10:48, 02 September 11
Thanks to Antonio Villena, JavaCPC will be able soon, to playback a modified .TAP format as tape image:



I will also add a converter which can convert CDT images to .TAP format.
Sadly the .TAP work only with unprotected CDTs...


Maybe a silly question and maybe it's been answered before (did a short search), but: how were tapes protected? It *was* just sound after all... No damaged sectors, no weird layouts, no strange disk formats...

Devilmarkus

They can be protected by binary routines.
Speedlock for example resets your CPC when the tape speed it a few µS too slow or too fast.

But there are several protection methods...

When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Gryzor

So, for instance, if you got a really hi-end double-decker you can copy a Speedlock protection theoretically?

Devilmarkus

When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Gryzor

Ok, I see. I realised MacDeath has put together a nice category (http://cpcwiki.eu/index.php/Category:Copy_Protection) but there's not much info... maybe an interesting topic!

Executioner

Quote from: Devilmarkus© on 18:01, 21 August 11
WinApe for example:

I am sure, the PAL effect is done with usage of Direct-X accelerated routines...

Nah, just RGB averaging with alternate half-bright for scan lines.

Devilmarkus

Quote from: Executioner on 04:24, 05 September 11
Nah, just RGB averaging with alternate half-bright for scan lines.

Humm yes...
It's a quite fast rendering method.
Thanks to demoniak, who told me how this can be done, I adapted it:
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Powered by SMFPacks Menu Editor Mod