wolfenstein demo for sega genesis

Announce (tech) demos or games releases

Moderator: Mask of Destiny

gasega68k
Very interested
Posts: 133
Joined: Thu Aug 22, 2013 3:47 am
Location: Venezuela - Caracas

Re: wolfenstein demo for sega genesis

Post by gasega68k » Sat Apr 15, 2017 3:42 am

Hello all, I wanted to post a new "enanced" version of Wolf3d. :)

Although the game is complete (that is, it has all levels, music, sfx, etc), there are some things I want to add such as automap, I also increased the resolution of the game to 256x144 in the area of vision (before was 256x128), still works with a framerate slightly higher than the previous one since I used a code to draw columns of walls faster, but to make this change I had to modify many things.

In the version with the resolution of 256x128 (the one you know), I only needed a 16KB buffer in Vram, since the entire framebufer (which is in Ram) could be transferred to Vram in a frame, during the "Extended Vblank" of 86 scanlines.
In Vram are present all the frames of all the weapons and all the frames of the face of BJ and still there is a little of free space.

In the case of the version of 256x144 (which requires 18KB for the framebuffer in Ram), it is necessary to double buffer in Vram (well, not exact 2 buffer is required, I explain below), since 2 frames are needed to transfer the framebuffer To Vram, because now it is not possible to do it in one frame due to the increase of the resolution.
Since it requires double buffering in Vram (to avoid tearing), it really does not require 36KB of Vram, only half of the image requires double buffering, because one half (let's call it "L1") is transferred in one frame and the other half (we call it "L2") is seen on the screen, in the next frame the second half of the image (call it "R") is transferred to Vram and the first two halves are exchanged ("L1", "L2"), So only 27KB of Vram is required.
In this version only the weapons and all their frames are in Vram, the faces of BJ is only present the ones that is currently needed.
There are also some minor bug fixes.

Here are some pictures comparing the two versions. :)

BEFORE.......................................AFTER

Image Image

Image Image

Image Image

Image Image

Image Image

Image Image


And here is the rom, is a "demo version"(only first episode, sorry) with increased resolution.


Because there are some big changes I wanted to post this version, so everyone can test this on real hardware and/or on diferent versions of Genesis/MD. Enjoy. :D

User avatar
BigEvilCorporation
Very interested
Posts: 194
Joined: Sat Sep 08, 2012 10:41 am
Contact:

Re: wolfenstein demo for sega genesis

Post by BigEvilCorporation » Sat Apr 15, 2017 9:17 am

This is EXCEPTIONAL stuff!

Are the enemies/weapons/items drawn with the same raycasting method as the environment? The style is consistent, they don't stand out as "sprites" like in other versions.
A blog of my Megadrive programming adventures: http://www.bigevilcorporation.co.uk

User avatar
SegaTim
Very interested
Posts: 68
Joined: Thu Nov 19, 2015 1:59 pm
Location: East Prussia
Contact:

Re: wolfenstein demo for sega genesis

Post by SegaTim » Sat Apr 15, 2017 9:46 am

WOW, very fast moving!

User avatar
Sik
Very interested
Posts: 612
Joined: Thu Apr 10, 2008 3:03 pm
Contact:

Re: wolfenstein demo for sega genesis

Post by Sik » Sat Apr 15, 2017 5:25 pm

BigEvilCorporation wrote:Are the enemies/weapons/items drawn with the same raycasting method as the environment? The style is consistent, they don't stand out as "sprites" like in other versions.
That was always the case as far as I know @_@

What I did notice is that it seems a lot of sprites may have been reconverted (the lack of greens is hurting it, but again, 16 colors isn't helping). But I may just be misremembering. That would certainly explain this though.
Sik is pronounced as "seek", not as "sick".

Kabuto
Interested
Posts: 27
Joined: Sun Aug 25, 2013 6:56 pm

Re: wolfenstein demo for sega genesis

Post by Kabuto » Sun Apr 23, 2017 4:15 pm

Awesome progress!

Just wanted to point out the byte granularity DMA trick as explained in here, it might or might not give you a speed boost, depending on how your rendering works. All mega drives support it in one way or another, and some emulators already emulate it as well. MD1 and MD2 do as described in there (byte granularity), not 100% sure about Genesis 3 but it looks like it behaves like ordinary DMA with a huge speed boost.

User avatar
SegaTim
Very interested
Posts: 68
Joined: Thu Nov 19, 2015 1:59 pm
Location: East Prussia
Contact:

Re: wolfenstein demo for sega genesis

Post by SegaTim » Mon Jul 24, 2017 12:46 pm

Commercial application of a engine:

https://www.youtube.com/watch?v=VQmHwAEOXl0

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest