Welcome, Guest. Please login or register.

Author Topic: my first Amiga program  (Read 2810 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline DamageXTopic starter

  • Sr. Member
  • ****
  • Join Date: Jun 2005
  • Posts: 339
    • Show only replies by DamageX
    • http://www.hyakushiki.net/
my first Amiga program
« on: January 25, 2006, 08:02:01 AM »
If you have some free harddisk space on your Amiga and can bear the long download, grab one of these archives (I think my server is pretty fast):

http://www.hyakushiki.net/junk/koi8.lzh (27MB)
http://www.hyakushiki.net/junk/koi15.lzh (52MB)

I've made a small program that plays back some FMV with audio (about 2 minutes long). The first (smaller) file runs at 7.5fps and my A2000 can just barely keep up when using the plain 68000. The second file runs at 15fps and can be played on my A2000 with the 28MHz 68030 enabled.

I'm new to Amiga programming so watch out for glitches  :crazy:
 

Offline DamageXTopic starter

  • Sr. Member
  • ****
  • Join Date: Jun 2005
  • Posts: 339
    • Show only replies by DamageX
    • http://www.hyakushiki.net/
Re: my first Amiga program
« Reply #1 on: February 08, 2006, 07:54:44 AM »
Here is an updated executable:
http://www.hyakushiki.net/junk/hamnew.lzh
It performs better than the old one and is necessary to play different sized videos.

Two more videos:
http://www.hyakushiki.net/junk/shiki.lzh (38MB, 10fps)
http://www.hyakushiki.net/junk/zopen.lzh (32MB, 12fps)

The video has to renamed to shiki.hv now, since I haven't learned how to make the hamnew program accept arguments from the command line :p

Here is a minimal MS-DOS program for converting an AVI to my HV file:
http://www.hyakushiki.net/junk/avi2hv.zip
 

Offline InTheSand

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 1766
    • Show only replies by InTheSand
    • http://www.ali.geek.nz
Re: my first Amiga program
« Reply #2 on: February 08, 2006, 11:12:30 AM »
Hi,

What sort of format is the HV file?

 - Ali
 

Offline DamageXTopic starter

  • Sr. Member
  • ****
  • Join Date: Jun 2005
  • Posts: 339
    • Show only replies by DamageX
    • http://www.hyakushiki.net/
Re: my first Amiga program
« Reply #3 on: February 09, 2006, 04:58:45 AM »
There's a 14 byte header and then it's just a series of HAM screens (40 bytes x 6 bitplanes x number of lines), each followed by one or two chunks of audio.

I thought about trying to do some realtime decompression of video. I think it's not going to happen on an '030 though, using HAM... Better to just copy directly from harddisk to chipmem.
 

Offline justthatgood

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 579
  • Country: us
    • Show only replies by justthatgood
Re: my first Amiga program
« Reply #4 on: February 09, 2006, 05:30:04 AM »
Wow, you are actually working on stuff, and I'm selfishly working on a game.
[color=008000]Pluto[/color]:Amiga4KD- 64040/16megs/1GB WD/PAR 2150/1942/WB3.0,3.1,3.9
[color=800080]Amanda[/color]:Amiga2KHD/A2620/8MegSupraRam2k/A2091/VLab
 

Offline chris

Re: my first Amiga program
« Reply #5 on: February 09, 2006, 03:11:07 PM »
Quote

DamageX wrote:
There's a 14 byte header and then it's just a series of HAM screens (40 bytes x 6 bitplanes x number of lines), each followed by one or two chunks of audio.

I thought about trying to do some realtime decompression of video. I think it's not going to happen on an '030 though, using HAM... Better to just copy directly from harddisk to chipmem.


That's pretty cool but, erm, you do realise you've pretty much reinvented an uncompressed version of CDXL, don't you? :-)

The CD32 could cope with that in HAM8.  It was only 3/4 screen size though.

Chris
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline DamageXTopic starter

  • Sr. Member
  • ****
  • Join Date: Jun 2005
  • Posts: 339
    • Show only replies by DamageX
    • http://www.hyakushiki.net/
Re: my first Amiga program
« Reply #6 on: February 10, 2006, 05:40:13 AM »
Quote
Wow, you are actually working on stuff, and I'm selfishly working on a game.

I don't get it, you're working on a game? Or does "working" on a game mean playing?

Quote
That's pretty cool but, erm, you do realise you've pretty much reinvented an uncompressed version of CDXL, don't you?

Well, i've only implemented something, not (re)invented. I don't know what CDXL is but I'm guessing it's video that played off of CD? The speed of the CD32's drive surely would have been a limitation without some kind of compression.
 

Offline Oli_hd

  • Hero Member
  • *****
  • Join Date: Apr 2002
  • Posts: 912
    • Show only replies by Oli_hd
Re: my first Amiga program
« Reply #7 on: February 10, 2006, 09:51:50 AM »
Quote
Well, i've only implemented something, not (re)invented. I don't know what CDXL is but I'm guessing it's video that played off of CD? The speed of the CD32's drive surely would have been a limitation without some kind of compression.


It was actually for the CDTV (4096 colours, single speed CD-Rom, 68000, etc) and was upgraded for the CD32's AGA chipset and snazzy double speed CD-Rom.

It doesnt have to run off a CD-Rom though but I know my CDTV couldnt cope with a 320X240 HAM video, it got 1FPS from the harddrive.(Or maybe it just didnt like Britney)
 

Offline nasty

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 460
    • Show only replies by nasty
Re: my first Amiga program
« Reply #8 on: February 10, 2006, 12:28:33 PM »
Quote
Or maybe it just didnt like Britney


Think thats the real reason it didnt work :-)
Specs:
A1200PT, mediator c/w voodoo 3 2000, sb128, 60G HDD,OS3.9,LITEON CDR, nec 4x4 changer,External Scan Doubler,Cocolino adapter,PS2 keyboard adaptor.

Morphos 2.6, mini mac g4 @ 1.25ghz.
 

Offline justthatgood

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 579
  • Country: us
    • Show only replies by justthatgood
Re: my first Amiga program
« Reply #9 on: February 10, 2006, 12:35:47 PM »
@DamageX

By working I mean design, visual implementation, sound engineering, and coding. I love Deluxe Paint IV.  I'm also probably taking the punk way out right now because I really don't have much time to dive into every inscrutability detail of 680x0 programming.  Yes I'm prototyping in a way using BlitzBasic.  There I said it.

Well since I got that package a lot time ago, I'm trying to make some use of it. Really I've been spending most of my time looking for jobs and other more important things. Later after I see how my stuff all lays out, then i'm going to fire up SAS and start my torture up. But at least my code will be real code.
[color=008000]Pluto[/color]:Amiga4KD- 64040/16megs/1GB WD/PAR 2150/1942/WB3.0,3.1,3.9
[color=800080]Amanda[/color]:Amiga2KHD/A2620/8MegSupraRam2k/A2091/VLab