English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 05 January 2021, 19:17   #1
Ernst Blofeld
<optimized out>
 
Ernst Blofeld's Avatar
 
Join Date: Sep 2020
Location: <optimized out>
Posts: 321
Floppy disk Progress on my 3D engine

Since lockdown 2 I've been working on a 3D engine in C, and for no other reason than that I'm pleased with myself I'd like to show the progress to date:

Click image for larger version

Name:	6-Jan.png
Views:	259
Size:	6.2 KB
ID:	70192 Click image for larger version

Name:	sun.png
Views:	181
Size:	2.7 KB
ID:	70193 Click image for larger version

Name:	flipped.png
Views:	227
Size:	5.2 KB
ID:	70194

As you can see, I have aircraft, tanks, buildings, runways, and they have shadows. There is a sun in the sky that you can't see unless you look up.

The plane is as close as I could get to a Eurofighter Typhoon, the tank is a Challenger 2. The tank would look better if I had more colours, it's not as blob-like as it appears there.

It's all written in C, with the only assembly language being some multiplication of pairs of numbers that doesn't really fit into the C way of doing maths. I don't plan on adding any more assembly language until I'm satisfied with everything else.

Last edited by Ernst Blofeld; 06 January 2021 at 11:41.
Ernst Blofeld is offline  
Old 05 January 2021, 19:22   #2
manossg
Registered User
 
Join Date: Nov 2019
Location: Greece
Posts: 992
Looks great, I love that low-poly aesthetic!
manossg is offline  
Old 05 January 2021, 19:28   #3
grond
Registered User
 
Join Date: Jun 2015
Location: Germany
Posts: 1,918
That looks very nice! I personally prefer the looks of a more complex flat-shaded 3D engine over those of a low-poly and low-fps texture-mapping engine.

Any info on fps?
grond is offline  
Old 05 January 2021, 20:08   #4
Ernst Blofeld
<optimized out>
 
Ernst Blofeld's Avatar
 
Join Date: Sep 2020
Location: <optimized out>
Posts: 321
Quote:
Originally Posted by grond View Post
any info on fps?
2.
Ernst Blofeld is offline  
Old 05 January 2021, 20:17   #5
Adrian Browne
Jackie Chan
 
Join Date: Mar 2012
Location: Ireland
Age: 46
Posts: 985
Nice- will you make a game or create a reusable 3d game engine to make various types of games/genres or? Anyhow, good work- looks interesting.
Adrian Browne is offline  
Old 05 January 2021, 20:27   #6
Ernst Blofeld
<optimized out>
 
Ernst Blofeld's Avatar
 
Join Date: Sep 2020
Location: <optimized out>
Posts: 321
Quote:
Originally Posted by Adrian Browne View Post
Nice- will you make a game or create a reusable 3d game engine to make various types of games/genres or? Anyhow, good work- looks interesting.
I haven't decided yet, but I think I want to add some physics to it so things move in a natural way, then see what happens. It will need a lot of improving before it can be used as for a game.
Ernst Blofeld is offline  
Old 05 January 2021, 21:45   #7
Adrian Browne
Jackie Chan
 
Join Date: Mar 2012
Location: Ireland
Age: 46
Posts: 985
Quote:
Originally Posted by Ernst Blofeld View Post
I haven't decided yet, but I think I want to add some physics to it so things move in a natural way, then see what happens. It will need a lot of improving before it can be used as for a game.
Fair enough. Hope you finish it. New 3d stuff on amigas is a cool thing.
Adrian Browne is offline  
Old 05 January 2021, 22:46   #8
Ami
Registered User
 
Ami's Avatar
 
Join Date: Sep 2014
Location: Poland
Posts: 175
I love low-poly 3D engines.

Quote:
Originally Posted by Ernst Blofeld View Post
2.
On which CPU?
Ami is offline  
Old 05 January 2021, 23:12   #9
Ernst Blofeld
<optimized out>
 
Ernst Blofeld's Avatar
 
Join Date: Sep 2020
Location: <optimized out>
Posts: 321
Quote:
Originally Posted by Ami View Post
I love low-poly 3D engines.



On which CPU?
Standard 68000, which is all I ever had.
Ernst Blofeld is offline  
Old 05 January 2021, 23:16   #10
nikosidis
Registered User
 
Join Date: Jan 2020
Location: oslo/norway
Posts: 1,607
Looking great! Why not make a scene, Amiga intro or demo as a start?
Could be released at some party or uploaded to pouet.net so people can download it and make comments.
nikosidis is offline  
Old 05 January 2021, 23:21   #11
Ernst Blofeld
<optimized out>
 
Ernst Blofeld's Avatar
 
Join Date: Sep 2020
Location: <optimized out>
Posts: 321
Quote:
Originally Posted by nikosidis View Post
Looking great! Why not make a scene, Amiga intro or demo as a start?
Could be released at some party or uploaded to pouet.net so people can download it and make comments.
I'd need to get it to more than 2fps first.
Ernst Blofeld is offline  
Old 06 January 2021, 02:18   #12
lmimmfn
Registered User
 
Join Date: May 2018
Location: Ireland
Posts: 672
That looks gorgeous, great work, i think folk here would be well able to help you to optimize it.
lmimmfn is offline  
Old 06 January 2021, 12:18   #13
Tigerskunk
Inviyya Dude!
 
Tigerskunk's Avatar
 
Join Date: Sep 2016
Location: Amiga Island
Posts: 2,770
Love the flat shaded look as well..
Hopefully you can get the FPS up a bit..

Maybe have a look at Deimos' 3D thread that's hanging around here somewhere..

He worked a lot on these topics already.
Tigerskunk is offline  
Old 06 January 2021, 12:28   #14
Ernst Blofeld
<optimized out>
 
Ernst Blofeld's Avatar
 
Join Date: Sep 2020
Location: <optimized out>
Posts: 321
Quote:
Originally Posted by Steril707 View Post
Maybe have a look at Deimos' 3D thread that's hanging around here somewhere.
I have read those threads, and there's one optimisation explained in them that I still need to do, but I think my slow fps is mostly down to trying to do too much, both my tank and jet have over 50 polygons each, I need to cut that down a lot.

* If I turn the camera to stare at the sun so that none of the other objects are visible, I get 6fps, so I know it's the drawing part that needs work rather than the calculating part.

Last edited by Ernst Blofeld; 06 January 2021 at 12:45.
Ernst Blofeld is offline  
Old 06 January 2021, 14:04   #15
grond
Registered User
 
Join Date: Jun 2015
Location: Germany
Posts: 1,918
What's the FPS if you remove the shadows? That could easily be an option for faster CPUs, I guess.
grond is offline  
Old 06 January 2021, 14:13   #16
Ernst Blofeld
<optimized out>
 
Ernst Blofeld's Avatar
 
Join Date: Sep 2020
Location: <optimized out>
Posts: 321
Quote:
Originally Posted by grond View Post
What's the FPS if you remove the shadows? That could easily be an option for faster CPUs, I guess.
The plane shadows do take some effort, removing them changes the fps from 2 to 2.5. The problem with the plane shadows is that almost every polygon that makes up the could potentially be casting a shadow. It's not as bad as drawing a whole plane as I only need to draw to one bitplane to draw a shadow, but there's a lot of drawing shadow over pixels that have already been drawn as shadow.

The tank and control tower shadows are super quick as they are just an extra couple of polygons that get drawn first and into that one bitplane.
Ernst Blofeld is offline  
Old 06 January 2021, 14:29   #17
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
Your engine does look rather nice. And quite the challenge too for it to be aimed at a base level 68000!
roondar is offline  
Old 06 January 2021, 15:00   #18
khph_re
Registered User
 
Join Date: Feb 2008
Location: Northampton/UK
Posts: 524
Are you planning on hidden face removal or LOD's? Or have you got that far already?

Also, you could add A cockpit, that would reduce the area you need to draw.


Looks great though!
khph_re is offline  
Old 06 January 2021, 15:04   #19
Ernst Blofeld
<optimized out>
 
Ernst Blofeld's Avatar
 
Join Date: Sep 2020
Location: <optimized out>
Posts: 321
Quote:
Originally Posted by khph_re View Post
Are you planning on hidden face removal or LOD's? Or have you got that far already?

Also, you could add A cockpit, that would reduce the area you need to draw.


Looks great though!
I have simple hiddden surface removal with a BSP tree per object.

What's a LOD?
Ernst Blofeld is offline  
Old 06 January 2021, 15:07   #20
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
LOD = Level Of Detail
I.E. have several different models of decreasing complexity and show progressively simpler ones as the object is farther and farther away from the camera.
roondar is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
ACA2000 Progress? Robbie Amiga scene 7 17 December 2016 19:11
Work in progress. Cowcat Coders. General 7 18 February 2014 22:33
My A500+ progress so far. Mogsy Hardware pics 16 02 March 2013 09:20

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:03.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.16152 seconds with 16 queries