The Sentinel (1986)

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andrew Davie

#30
Here are some exemplars...


Andrew Davie

Here's a screen recording of the sentinel engine displaying static images (not 3D generated yet!) giving a good idea of how the hires-section works. It's almost like a scanner giving a better view - maybe we'll work on that.  These images are better than earlier versions with a new subsampling method and a few bugfixes here and there. Getting there.

The shimmer viewing in my browser is annoying/unwatchable. Switch to YouTube proper and watch it at 720p60 if you are seeing lots of flicker/shimmer here.


Andrew Davie

I can turn the dithering off - actually it's quite a bit brighter and nicer to my eye...
It has a certain je ne sais quoi that actually makes it uniquely 2600 feeling.


Andrew Davie

We will probably use flat-shaded polys, but in an effort to get something impressive running I implemented a simple wireframe cube and double-buffering. I have a few bugs so it flickers more than it should.


JetSetIlly

Quote from: Andrew Davie on 01 Jul 2024, 07:40 PMWe will probably use flat-shaded polys, but in an effort to get something impressive running I implemented a simple wireframe cube and double-buffering. I have a few bugs so it flickers more than it should.



Are you using the FPU for the calculations?
https://github.com/JetSetIlly/Gopher2600
@JetSetIlly@mastodon.gamedev.place
@jetsetilly.bsky.social

Andrew Davie

Quote from: JetSetIlly on 01 Jul 2024, 07:59 PMAre you using the FPU for the calculations?

No, it's plain C code.

Andrew Davie

Quote from: Andrew Davie on 01 Jul 2024, 08:17 PMNo, it's plain C code.

Actually maybe I didn't understand the question. I use floats in the calculations but it could just as well be fixed decimal if I went to a bit of effort. Just a few basic calcs and self-implemented sin/cos functions using Taylor series.

JetSetIlly

Quote from: Andrew Davie on 01 Jul 2024, 08:20 PM
Quote from: Andrew Davie on 01 Jul 2024, 08:17 PMNo, it's plain C code.

Actually maybe I didn't understand the question. I use floats in the calculations but it could just as well be fixed decimal if I went to a bit of effort. Just a few basic calcs and self-implemented sin/cos functions using Taylor series.

You can build with the compiler's FPU flag set, which means the generated code will include ARM FPU instructions. You probably don't need it but it's an option for when you develop a complete 3D engine and might give you more time.
https://github.com/JetSetIlly/Gopher2600
@JetSetIlly@mastodon.gamedev.place
@jetsetilly.bsky.social

Andrew Davie

Quote from: JetSetIlly on 01 Jul 2024, 08:55 PMYou can build with the compiler's FPU flag set, which means the generated code will include ARM FPU instructions. You probably don't need it but it's an option for when you develop a complete 3D engine and might give you more time.

Ah, good to know... TY.
I'm designing the system so it can run over multiple frames - and with this game, at least, 3D speed isn't essential. Double-buffered, and a more logic game than action. But faster is gooder.

Andrew Davie

#39
Here's the first binary! This demo will run on hardware and on the Gopher emulator, but not on the Stella emulator

This is a demo of the 40 pix iCC (interleaved chronocolour) playfield, 48 pixel iCC 6-sprite routine (with 5 positions) AND a rotating wireframe cube all at the same time. It's magic!

There's not much to do - it's just a pretty thing at the moment.

UP/DOWN changes the playfield vertical resolution - we have iCC1, iCC2 and iCC3
LEFT/RIGHT changes the position of the hires (48 pixel) window. It's quite hard to figure initially, but just look for blocky or smooth diagonals and you'll spot it.

YouTube only rendred to 480p for some reason, which makes it flicker somewhat. Wish I knew how to fix that, but it seems to have a mind of its own here.


Many thanks to @Zack who did the hard work in the 48-sprite/PF kernels and whose original scaffolding was used to get up and running so quickly. Heaps of credit to him.


JetSetIlly

Quote from: Andrew Davie on 01 Jul 2024, 09:47 PMHere's the first binary! This demo will run on hardware and on the Gopher emulator, but not on the Stella emulator

It should be noted that because of how ELF works it runs comparatively slowly on Gopher2600, which is unfortunate.

This is by far the most intense ELF binary I've seen so I'll use it to see if I can optimise the performance of the emulator.
https://github.com/JetSetIlly/Gopher2600
@JetSetIlly@mastodon.gamedev.place
@jetsetilly.bsky.social

Andrew Davie

#41
A bit of scaling happening, to. I *can* colour the lines, but they look better in white. I need to move onto the next step. MMh.... probably going to have to bite the bullet and start working on the 3D engine stuff.


Bomberman94

@Andrew: maybe you are willing to share this as a technical demo for all enthusiasts among us?

Andrew Davie

Quote from: Bomberman94 on 02 Jul 2024, 01:50 AM@Andrew: maybe you are willing to share this as a technical demo for all enthusiasts among us?

Already done (above!) but here's the latest version with edge colouring.

Andrew Davie