08 February 2023, 22:42 | #1 |
Registered User
Join Date: Jan 2022
Location: Kharkiv
Posts: 48
|
Simple 3D engine tech demo
Hi all!
I want to share a small technical demo for you. This is a simple 3D engine that I tried to get the most out of the stock configuration of the A1200. Yes, it's inspired by Dread, of course Thanks to KK/Altair for the "move.b ...,(a7)+" idea. At this moment, 68020+AGA is enough to run the engine. It is also possible to run on 68020+ECS+FastRAM (for example, A3000), but this has not yet been implemented. This is how it looks in the emulator: [ Show youtube player ] I know that WinUAE does not emulate the 68020 quite correctly and on real hardware the performance is about 20% lower, but fps is still quite reasonable. There have been many attempts to optimize all the important routines so that they fit into the 68020 instruction cache. Otherwise, nothing would have happened, just a slideshow But yes, the presence of at least FastRam significantly increases fps. Something I want to say about the graphics mode. Engine use Hires HAM6 + a very simple single-pass c2p to produce 160*100px 64 colors, unfortunately, without palette, only two bits per R, G, B. You can see the source code here - https://github.com/Rst7CBSIE/SDDDE In the attached archive - compiled executable code + the necessary data. I almost forgot. The 3d model for this demo is taken from the famous Omniscent 4k intro. But if you have a fastram, you can build from the sources a version with a 3d model from Spyro The Dragon. Unfortunately, it is too big to fit in a chipram. |
08 February 2023, 22:57 | #2 |
Registered User
Join Date: Jun 2015
Location: Germany
Posts: 1,918
|
Amazing! Well done!
|
08 February 2023, 23:14 | #3 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,474
|
Very good job!
|
08 February 2023, 23:16 | #4 |
Inviyya Dude!
Join Date: Sep 2016
Location: Amiga Island
Posts: 2,774
|
Simply WOW!
|
08 February 2023, 23:31 | #5 |
Registered User
Join Date: Jan 2022
Location: Kharkiv
Posts: 48
|
3D model from Spyro The Dragon
[ Show youtube player ] Run in WinUAE, A1200 + 4Mb FastRam So, I have a question - does anyone want to take part in bringing this to something interesting? |
08 February 2023, 23:41 | #6 |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,606
|
|
08 February 2023, 23:47 | #7 |
Registered User
Join Date: Jan 2022
Location: Kharkiv
Posts: 48
|
|
08 February 2023, 23:51 | #8 | |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,606
|
Quote:
Yep, I do |
|
09 February 2023, 00:02 | #9 |
Registered User
Join Date: May 2022
Location: Canada
Posts: 139
|
This is incredibly amazing! It gives so much Descent vibes.
Amazing that you obtained such speed on a stock A1200. |
09 February 2023, 00:04 | #10 |
Registered User
Join Date: Oct 2007
Location: Athens , Greece
Posts: 1,842
|
Congratulations man, very impressive work!
|
09 February 2023, 01:02 | #11 |
Ex nihilo nihil
Join Date: Oct 2017
Location: CH
Posts: 4,884
|
Great tech demo.
Reminds me "Descent" |
09 February 2023, 02:39 | #12 |
Pixelglass/Reimagine
Join Date: Jun 2012
Location: Athens
Posts: 1,032
|
Mindblowing!!!
What about objects e.t.c. Biltting, sprites? |
09 February 2023, 06:08 | #13 |
Registered User
Join Date: Jan 2020
Location: oslo/norway
Posts: 1,607
|
Whow! This would be very cool to at least see in Amiga scene demos.
There are very few demos for standard A1200 configuration. |
09 February 2023, 09:12 | #14 |
Dream Merchant
Join Date: Sep 2007
Location: Dreamlands
Posts: 530
|
|
09 February 2023, 09:15 | #15 |
CON: artist
Join Date: Feb 2006
Location: Poland
Age: 43
Posts: 1,250
|
Remarkable stuff.
You're in Kharkiv right now? Stay safe! |
09 February 2023, 09:29 | #16 |
Alien Breeder
Join Date: Dec 2007
Location: Szigetszentmiklos / Hungary
Age: 46
Posts: 1,096
|
Amazing. Wish to see it on my Amiga screen boosted with interactions.
|
09 February 2023, 10:54 | #17 |
Registered User
Join Date: Jan 2022
Location: Kharkiv
Posts: 48
|
I'm still thinking about the best way to implement this.
Much depends on how the engine will be used. If 6DOF is not going to be used, then the best solution is to draw scaled sprites instead of real 3D objects (as in Doom, for example). Also, you may have noticed that far surfaces are rendered without mapping. This is done for speed, but there is room for some optimization. Perhaps after this optimization, the use of 3d objects will not be so expensive. In any case, a good result can only be obtained by finding compromises between the design of models and the capabilities of this extremely low-end engine. |
09 February 2023, 11:37 | #18 |
Alien Bleed
Join Date: Aug 2022
Location: UK
Posts: 4,165
|
Very impressive! Does it use some affine texturing tricks for polygons closest to the player? I see some wobbling.
|
09 February 2023, 11:50 | #19 | |
Registered User
Join Date: Jan 2022
Location: Kharkiv
Posts: 48
|
Quote:
For example: result.png - visible image tesselated.png - what really happened with polygons |
|
09 February 2023, 12:05 | #20 |
Alien Bleed
Join Date: Aug 2022
Location: UK
Posts: 4,165
|
That's brilliant.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tech demo of my game | remz | Coders. Asm / Hardware | 199 | 18 February 2024 03:16 |
Menace - HD Tech Demo - Vampire Remake | invent | Amiga scene | 45 | 01 August 2022 18:22 |
Writing a simple physics engine | Ernst Blofeld | Coders. General | 1 | 02 February 2021 18:44 |
Simple AGA first person engine [Prototype only] | earok | project.Amiga Game Factory | 8 | 01 May 2017 22:38 |
LN2 tech demo | gimbal | project.Amiga Game Factory | 63 | 02 October 2008 20:22 |
|
|