Doom on z80

Page 3/26
1 | 2 | | 4 | 5 | 6 | 7 | 8

Par ARTRAG

Enlighted (6866)

Portrait de ARTRAG

08-09-2011, 21:47

Raycasting involves one single math computation for visibility and distance for each column of the screen
Raytracing involves math computations for visibility and distance for each pixel in the screen

Wolfenstein and Doom both use raycasting
One use a squared map the other a complex data structure able to represent polygonal rooms non squared corners

using this tutorial
http://lodev.org/cgtutor/raycasting.html

I started this project
https://sites.google.com/site/testmsx/msx2-doom

Par retrocanada76

Hero (538)

Portrait de retrocanada76

08-09-2011, 21:51

Raycasts are used for testing collisions in the world, line of sight etc. But for a MSX this is impossible. A single integer division takes several instructions. The world collision need to be a 2d map or something else.

Using multicolor (screen 3) that would be possible to make some texture mapping polygons, but I don't know about the speed, because every texel is interpolated.

Par ARTRAG

Enlighted (6866)

Portrait de ARTRAG

08-09-2011, 21:59

see e.g. the file here
https://sites.google.com/site/testmsx/msx2-doom/D%7BSCC%7D.rom?attredirects=0&d=1
Try it on OpenMSX (not in blue, vdp emulation is buggy there) and use space and arrows to see what it does
Emulate an msxTR

This file is even better
https://sites.google.com/site/testmsx/msx2-doom/maze3d_20110315.rar?attredirects=0&d=1

Rename the M3D.BIN to M3D.ROM, use bulemsx here
Use shift and arrows this time

Par Alex

Master (205)

Portrait de Alex

08-09-2011, 22:24

@Artrag: Very nice doom clone. I'm impressed that the turbo R can handle this!

Nevertheless, the framerate is currently too low to make it into a playable game. And that is even before the player character and all enemies have been added. Probably in order to have an acceptable framerate, you would need to limit it to only a quarter of the screen or so.

Cheers,
Alex

Par ARTRAG

Enlighted (6866)

Portrait de ARTRAG

08-09-2011, 22:31

@Artrag: Very nice doom clone. I'm impressed that the turbo R can handle this!

Nevertheless, the framerate is currently too low to make it into a playable game. And that is even before the player character and all enemies have been added. Probably in order to have an acceptable framerate, you would need to limit it to only a quarter of the screen or so.

Cheers,
Alex

It can improve a lot:
- Rotation is not pre-computed (try the other file, M3D.BIN, to see what I mean)
- Textures can be coded and plotted using a totally different strategy (RLE encoding)
- Clipping of columns taller than the screen have to be implemented (now it plots under the border)
- The code can be done in ASM (now it is in C)

From early tests, I think the speed of M3D.BIN can be safely achieved using textures

Par Alex

Master (205)

Portrait de Alex

08-09-2011, 22:38

It can improve a lot:
- Rotation is not pre-computed (try the other file, M3D.BIN, to see what I mean)
- Textures can be coded and plotted using a totally different strategy (RLE encoding)
- Clipping of columns taller than the screen have to be implemented (now it plots under the border)
- The code can be done in ASM (now it is in C)

From early tests, I think the speed of M3D.BIN can be safely achieved using textures

I have meanwhile downloaded the maze and played the first level. It is indeed already much smoother. I'm looking forward to your further improvements.

Keep up the good work. Really cool to see some nice new stuff for MSX turbo R. I'll have to figure out how to play the rom images on the real hardware.

Cheers,
Alex

Par Paulbrk

Hero (611)

Portrait de Paulbrk

08-09-2011, 23:17

MSX has good 3D games:

http://www.generation-msx.nl/msxdb/softwareinfo/3303

I will see some of yours make a better game for MSX1 or MSX2.

Par ARTRAG

Enlighted (6866)

Portrait de ARTRAG

09-09-2011, 08:44

I totally missed the latest version of Wolfenstein for ZX

http://www.youtube.com/watch?v=s2EO57BI0SY&feature=watch_response

The author tells of more than 10fps on plain ZX

Par cax

Prophet (3738)

Portrait de cax

09-09-2011, 09:56

Cool ! The demo in the beginning of the game shows Shtirlitz, a spy hero from the cult soviet movie 17 Moments of Spring

Par Maggoo

Paragon (1216)

Portrait de Maggoo

10-09-2011, 20:57

this is still one of the neatest 3d thing I saw on a MSX.

http://www.youtube.com/watch?v=-yNNS69r_8E

I'd be curious to see how the code works, it's really fast and smooth even if it lacks details. Good potential for making a game tho.

Page 3/26
1 | 2 | | 4 | 5 | 6 | 7 | 8