English Amiga Board


Go Back   English Amiga Board > Other Projects > project.Amiga Game Factory

 
 
Thread Tools
Old 19 April 2013, 20:41   #21
arti
Registered User
 
Join Date: Jul 2008
Location: Poland
Posts: 662
Good work mate !
Can I try it with NetSurf?

Last edited by arti; 19 April 2013 at 22:13.
arti is offline  
Old 19 April 2013, 22:48   #22
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
Quote:
Originally Posted by arti View Post
Good work mate !
Can I try it with NetSurf?
Hiya,

I don't think it would help with Net surf as it's it's only 8bit and only full screen.
NovaCoder is offline  
Old 20 April 2013, 06:54   #23
arti
Registered User
 
Join Date: Jul 2008
Location: Poland
Posts: 662
Why not try?

Look, here is NetSurf in 256 colours

Some extra work would be needed for os3 but it's possible.
NS has 8bit plotters.
arti is offline  
Old 20 April 2013, 10:26   #24
mihcael
Zone Friend
 
mihcael's Avatar
 
Join Date: Jan 2006
Location: Aussie
Posts: 1,144
Sorry for off topic, but in one of your threads you appeared to invite suggestions for future ports, how about Unreal Tournament. Doom and Quake2 predate my interests in PC's, UT is right on the money. Took a minute to google it and appears to be open source and not requiring 3d hardware.
mihcael is offline  
Old 20 April 2013, 11:47   #25
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
I think I'll take a break after I've finished porting Descent 1 & 2 to AGA, then if I have the energy maybe I'll look at porting DukeNukem 3D (which would be my 2nd attempt).

I think UT would be too much for AGA, even Quake 2 is a bit of a struggle to be honest.

Last edited by NovaCoder; 20 April 2013 at 12:09.
NovaCoder is offline  
Old 20 April 2013, 18:05   #26
arti
Registered User
 
Join Date: Jul 2008
Location: Poland
Posts: 662
But at least it will work on AGA
arti is offline  
Old 24 April 2013, 07:55   #27
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
Post

Project updated:

Been pulling my hair out recently, I couldn't get the colors to render correctly in 8bit mode. The port uses SDL and has an 8 bit back buffer and a 32 bit display, when you set the display to 8bit you get those nasty colors (see my attachments above).

I was getting the same kind of display with both my hacked AGA SDL and with the original 68k SDL, I asked about it on the Rebirth forums but I don't think they knew what I was on about.

Anyway it's all a bit bizarre (I find the whole SDL library very bizarre in fact) but I managed to get it working right by doing this:

Code:
void gr_flip()
{
     SDL_Rect src, dest;
     int i;



     dest.x = src.x = dest.y = src.y = 0;
     dest.w = src.w = canvas->w;
     dest.h = src.h = canvas->h;




    SDL_BlitSurface(canvas, &src, screen, &dest);

    // nova - update palette.
    SDL_SetColors(screen, canvas->format->palette->colors, 0, 256);

    SDL_Flip(screen);
}
What extra line of code does is take the 'current' palette that is in the canvas (kind of like a back buffer) and sets it to the display palette, this now gives the correct colors at last

Obviously I don't want to do this each frame (too expensive), I'll just have to mark the palette as dirty in the Descent code and then just update the colors that have changed (that's what I also did in my ScummVM port).

I'll attach a new screen shot, looking much more like it now

Last edited by NovaCoder; 14 December 2021 at 00:15.
NovaCoder is offline  
Old 30 April 2013, 08:57   #28
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
Another little update:

Got the SDL keyboard and mouse handling working now (not done the joystick yet).

I've noticed that it doesn't seem to be saving my config changes, not sure what is going on there yet as I thought my file handling code was 100% complete.

Got some funny colors with the palette still at the start screens but it comes good for the game itself (again, not sure why yet).

Next up will be to look at maybe adding the AHI sound to my SDL AGA hack, I can also feel a video of it running on my 1200 coming soon

I'd say we are getting there, I think my SDL library is probably at about 60% complete now and the game must be at least 90% there.

I hope the Descent 2 is very similar to this code (and from what I can see, it does look pretty much the same), that means I'll be able to do a double port (Descent 1 & 2 to AGA).

I'm also going to send my AGA SDL lib to Arti to see if he can use it to create a quick and dirty port of NetSurf 3 for AGA.

NovaCoder is offline  
Old 30 April 2013, 12:17   #29
squidbass
Registered User
 
squidbass's Avatar
 
Join Date: Sep 2007
Location: Southport The Last Resort
Posts: 202
That's great news NovaCoder! I used to love Descent - it was the first game I played after I got bored with Doom hehe
squidbass is offline  
Old 01 May 2013, 15:24   #30
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
Ok I've done a quick video to show it running on my 1260.

[ Show youtube player ]

Obviously lots of work still to do on this puppy but at least it's running, that's a good start
NovaCoder is offline  
Old 03 May 2013, 18:06   #31
tolkien
AmigaMan
 
tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
Want to play it nooooow!
tolkien is offline  
Old 07 May 2013, 11:35   #32
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
[ Show youtube player ]
NovaCoder is offline  
Old 07 May 2013, 11:48   #33
Big-Byte
Long time member
 
Big-Byte's Avatar
 
Join Date: Jul 2001
Location: UK
Posts: 754
This is pretty amazing really! Its such a shame you didnt get into Amiga's until after you had moved away. We could have had a lot of fun swapping tutorials on assembler programming and 3d techniques.
Big-Byte is offline  
Old 07 May 2013, 12:00   #34
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
Yep, that's right John, you're meant to be the Amiga coder....not me!



Check out my AGA Quake 2 port, now that is pretty cool
NovaCoder is offline  
Old 09 May 2013, 15:39   #35
Reido
Registered User
 
Join Date: Feb 2013
Location: Dublin/Ireland
Posts: 403
Quote:
Originally Posted by NovaCoder View Post
[ Show youtube player ]
Very cool!
Reido is offline  
Old 13 May 2013, 11:49   #36
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
Another update, getting somewhere but still lots do do yet :P


[ Show youtube player ]


TODO: Get sound working, fix up bugs, make faster, drink beer.
NovaCoder is offline  
Old 21 May 2013, 02:27   #37
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
Ok well I've been drinking lots of beer but not doing much else

Actually I did manage to get AHI sound working (copied over from the existing RTG 68k SDL). I did intend to make it a bit faster by using an interrupt based sound engine but the SDL library is not designed for it and it would take lots of work

In theory I could write my own external sound engine using Quake 2 AGA as a basis but to be honest I just don't have the time so this SDL based sound engine will have to do. The performance difference wouldn't be that big anyway (< 5%).

TODO:

1) Still a bit slow, it looks like it's performing way too many palette changes so if I can stop it doing that it will help
2) There's still a couple of little bugs (like recoverable crashes) with the demo system so that will need to be looked at
3) I need to add joystick support (which I'll just copy from the RTG SDL)


Update:

I think I've found what's slowing it down, it's the same kind of thing you see a lot with these modern ports. As they are targeted at really powerful computers the authors don't really care about wasted CPU cycles. I can see that this port is sending pointless window redraw events all over the place which are triggering the palette updates (even though the palette hasn't actually changed!).

Last edited by NovaCoder; 22 May 2013 at 02:55.
NovaCoder is offline  
Old 06 June 2013, 15:00   #38
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
BETA 4 video now online, as an added bonus we now have sound!

[ Show youtube player ]

It's still performing too many screen updates, I'll need to fix that to increase the speed.

I should probably look into including Vorbis support for the music playback and I still haven't added joystick support.

It will either take me 2 more weeks to finish this or 2 more years, not sure which.
NovaCoder is offline  
Old 06 June 2013, 18:28   #39
tolkien
AmigaMan
 
tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
It sounds good. Let's drink some beer!
tolkien is offline  
Old 07 June 2013, 01:24   #40
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
Quote:
Originally Posted by tolkien View Post
it sounds good. Let's drink some beer!
NovaCoder is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
[ongoing] DosBox AGA (v0.74) NovaCoder project.Amiga Game Factory 182 14 January 2022 03:26
My A1200 rebirth! fatboy Retrogaming General Discussion 5 17 June 2013 20:18
Rebirth of the C64? Amiga next? Oscar Castillo Nostalgia & memories 11 02 September 2010 13:48
Pirates! Rebirth on AMIGA too Haystack Amiga scene 2 19 June 2003 01:13
Descent dido support.Games 19 23 July 2002 19:58

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


All times are GMT +2. The time now is 15:35.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10220 seconds with 14 queries