The Sentinel (1986)

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Andrew Davie

Back in the very early '90s I did actually do a 3D game - MechWarrior for the SNES was totally sprite-based for the mechanoids, so everything was pre-rendered - 16 rotations and 8 distances, IIRC, and the mechs were built up of various parts all cobbled together in real time. Anyway, back then I didn't have the interweb and so I figured out the 3D calculations from first principles. It worked, so I guess I have the capabilities. No matrix multiplications - I didn't know that stuff then, and barely do now.

The 3D sequence is about a minute in...




Andrew Davie

#61
I've now completed the rewrite of triangle filling. This new version traces the edges of the triangles using the Bresenham line algorithm, then fills between points on each scanline. Then it draws the Bresenham edges in black. The advantages of this are that the same algorithm is used for line drawing, and for edge calculation on triangles - so there's no pixel overlap/overflow and basically it looks 'cleaner'.  A nice side effect here is that area outside the 'hires window' (which is resampled to half resolution) actually has decent representations of the thin black outlines (when near horizontal anyway) which actually improves the overall visuals.  Sometimes it's not entirely clear there's a hires middle-section, which says really that the lores outer areas are actually doing a good job of showing what's there.



Bomberman94

Looks very cool - i think your next game should be Starfox or so 😅

Andrew Davie

Here's another mockup/view of a 3D render - this is demonstrating what the graphics/display engine is capable of; good enough for gameplay? Absolutely!  These are screenshots of the emulator running the engine. Here I'm once again going through a bunch of random palettes just to see what sort of visuals work and don't work. There are a wide range of colour schemes that work quite well, actually.

Andrew Davie


Andrew Davie

#65
In this binary there's now a cursor (+) that you move around. The focus of the "hires window" is moved to keep the cursor within. Essentially you can move around and put the cursor over objects such as the sentinel and trees. Those objects should appear hires. Interestingly, the location of the hires window is reasonably effectively masked by the similar graphics in hires/lores area -- you just get the perception that what you're looking at is resolved better.


Note: Does not work on Stella - use Gopher!


Andrew Davie



I was working on the selection code. When you move the cursor over a 3D object you will want to interact with it.  So I was working on detecting when the cursor position and //any point on the object// are conicident. To show this was working, I intended to flash the colour of the 3D object, but I accidentally exited the detection loop instead. And what happens?  You effectively kill the objects when you move the cursor over.  SO it's completely accidentally turned into a little move and kill kind of 3D game. How neat.  Only here for a brief time, but I know, at least, that the 3D object/cursor detection is working just fine and dandy thank you.

scumation

Will this run on a harmony cart? Looks great!

Andrew Davie

Quote from: scumation on 11 Jul 2024, 06:12 AMWill this run on a harmony cart? Looks great!

Untested by me at this stage, but in principle should run on the PlusCart or UNO Cart with the latest "UCA" firmware.

JetSetIlly

Quote from: scumation on 11 Jul 2024, 06:12 AMWill this run on a harmony cart?
No. There is no ELF loader for the Harmony. There might be one day but even then I'm not sure the Harmony has enough power for this particular game.
https://github.com/JetSetIlly/Gopher2600
@JetSetIlly@mastodon.gamedev.place
@jetsetilly.bsky.social

Andrew Davie

Quote from: JetSetIlly on 11 Jul 2024, 07:00 AM
Quote from: scumation on 11 Jul 2024, 06:12 AMWill this run on a harmony cart?
No. There is no ELF loader for the Harmony. There might be one day but even then I'm not sure the Harmony has enough power for this particular game.

Remembering the 3D engine does not have to run in real time, and considering that it's already designed to run only in the overscan/vertical blank free time anyway - taking as many frames as required to render the cubes here -- and in the game case it will take as many frames as required to render the landscape... in principle I don't see that the power of the cartridge makes a lot of difference.  The only part I'm unsure about is Zack's area - that is, generating the kernel code. I suspect it might be a close call.

Andrew Davie

Double-vertical resolution is possible (iCC1)...


Andrew Davie

#72
Although I have various options available (CC, iCC1, iCC2, iCC3)... I'm leaning towards using CC and iCC3 (which are exactly the same as Boulder Dash in terms of resolution/effect). The reason - less pixels on screen and thus more rendered, more quickly. Here's an iCC3 screen...


Andrew Davie

 Following on from my last "accidentally made a game" video, where I was working on "cursor over 3D object" code and accidentlally "killed" the object, I couldn't resist going one step further and adding explosions/shrapnel.  It turned out quite nice, and in this video I have a little "game" just blowing up cubes.

This "sentinel" implementation will include none of the above - but it's a good indication of what the new graphics "mode" is capable of. Wonders!



Andrew Davie

Here's another binary. I'm curious if anyone gets it running on UNO/PlusCart with latest ELF firmware. Let me know. Otherwise, you'll need the Gopher emulator to view - it doesn't run on Stella.