English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 06 March 2019, 09:47   #1
bjadams
Registered User
 
Join Date: Sep 2018
Location: Chesterfield
Posts: 43
3d?

Was there ever some sort of 3D command library for Amiga Blitz?
Or maybe some sort of code that could do some simple geometry shapes?
bjadams is offline  
Old 06 March 2019, 10:34   #2
Daedalus
Registered User

Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 4,009
Nope, not that I know of. There are some demonstrations of simple 3D engines in the included example code - one featuring paper planes called Planes, Darts or something like that.

AmiBlitz3 has a MiniGL include, though I've never used it so I've no idea how functional it is.
Daedalus is offline  
Old 06 March 2019, 11:36   #3
bjadams
Registered User
 
Join Date: Sep 2018
Location: Chesterfield
Posts: 43
but i guess that won't work on a standard a500 or a1200
i am using the standard blitz no the amiblitz that seems to be more dedicated towards modern accelerated amigas
bjadams is offline  
Old 06 March 2019, 13:05   #4
Daedalus
Registered User

Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 4,009
Yeah, the Darts demo (I think that's what it's called), is worth looking at, and was included with Blitz Basic 2.1.
Daedalus is offline  
Old 06 March 2019, 15:40   #5
bjadams
Registered User
 
Join Date: Sep 2018
Location: Chesterfield
Posts: 43
Checked the Darts demo, it looks fantastic for what it is and works pretty well on a500 too. There's a lot of asm commands in it.

It's a pity that no one ever wrapped this sort of 3d functionality in a library or set of commands, as it could have a lot of applications
bjadams is offline  
Old 06 March 2019, 17:30   #6
madaxe
Registered User

madaxe's Avatar
 
Join Date: Jan 2019
Location: Coimbra / Portugal
Posts: 47
Quote:
Originally Posted by bjadams View Post
Was there ever some sort of 3D command library for Amiga Blitz?
Or maybe some sort of code that could do some simple geometry shapes?

I don't know if this helps but polygons can be drawn in Blitz Basic:


https://www.amigacoding.com/index.ph...iltIn#Polygons
madaxe is offline  
Old 06 March 2019, 17:51   #7
bjadams
Registered User
 
Join Date: Sep 2018
Location: Chesterfield
Posts: 43
@madaxe the polyf command is being used in the DARTS game mentioned before
bjadams is offline  
Old 06 March 2019, 17:53   #8
bjadams
Registered User
 
Join Date: Sep 2018
Location: Chesterfield
Posts: 43
On the Bllitz2.1 CD I found a sort of 3D command lib, called 2B3D by GORNY.
Author says it's still in beta phase, and it's all written using Blitz so it's not very fast. But at least someone had thought of it way back in 1996

It's a pity that this has not been picked up by someone and improved, maybe made faster with asm, as it's very promising.

If anyone knows of other more complete 3D libs, kindly let me know

Last edited by bjadams; 06 March 2019 at 21:09.
bjadams is offline  
Old 06 March 2019, 17:56   #9
madaxe
Registered User

madaxe's Avatar
 
Join Date: Jan 2019
Location: Coimbra / Portugal
Posts: 47
Quote:
Originally Posted by bjadams View Post
@madaxe the polyf command is being used in the DARTS game mentioned before

madaxe is offline  
Old 06 March 2019, 23:51   #10
E-Penguin
Banana

 
Join Date: Jul 2016
Location: Darmstadt
Posts: 804
I don't think 3d will ever be quick on an A500, it's just not built for it. Converting x,y "chunky" pixels to planar takes up either lots of blitter or CPU time, leaving little time for the calculations and other drawing tasks.
E-Penguin is online now  
Old 07 March 2019, 18:03   #11
bjadams
Registered User
 
Join Date: Sep 2018
Location: Chesterfield
Posts: 43
no need for chunky to planar and texture mapped 3d. just want some simple cubes, pyramids and similar objects, which the A500 has demonstrated to be able to handle
bjadams is offline  
Old 12 March 2019, 18:51   #12
madaxe
Registered User

madaxe's Avatar
 
Join Date: Jan 2019
Location: Coimbra / Portugal
Posts: 47
Quote:
Originally Posted by bjadams View Post
no need for chunky to planar and texture mapped 3d. just want some simple cubes, pyramids and similar objects, which the A500 has demonstrated to be able to handle
Well, I made some 2D and 3D stuff for PC in Borland Delphi 5. If you wish I can translate it to Blitz but will take a couple of weeks.
In the annexes there are the Delphi sources.



Attached Files
File Type: zip 3D_01.zip (232.2 KB, 20 views)
File Type: zip 3D_02.zip (234.8 KB, 16 views)
madaxe is offline  
Old 12 March 2019, 19:06   #13
bjadams
Registered User
 
Join Date: Sep 2018
Location: Chesterfield
Posts: 43
@madaxe sure why not! Also take a look at what GORNY did, maybe it's similar too
bjadams is offline  
Old 12 March 2019, 19:49   #14
madaxe
Registered User

madaxe's Avatar
 
Join Date: Jan 2019
Location: Coimbra / Portugal
Posts: 47
Quote:
Originally Posted by bjadams View Post
@madaxe sure why not! Also take a look at what GORNY did, maybe it's similar too
Okies, I'll do my best

Meanwhile I send some 2D stuff that I made in Blitz. It's simple and isn't optimized but is a good start for 3D and can be used to rotate bitmaps or shapes or sprites



Attached Files
File Type: zip 2D.zip (31.1 KB, 14 views)

Last edited by madaxe; 13 March 2019 at 17:07.
madaxe is offline  
Old 12 March 2019, 20:05   #15
bjadams
Registered User
 
Join Date: Sep 2018
Location: Chesterfield
Posts: 43
@madaxe great stuff there!
bjadams is offline  
Old 12 March 2019, 20:49   #16
madaxe
Registered User

madaxe's Avatar
 
Join Date: Jan 2019
Location: Coimbra / Portugal
Posts: 47
Quote:
Originally Posted by bjadams View Post
@madaxe great stuff there!
Thanks
madaxe is offline  
Old 25 March 2019, 22:06   #17
E-Penguin
Banana

 
Join Date: Jul 2016
Location: Darmstadt
Posts: 804
This has piqued my interest - currently reading about projection matrices... If I can get my head around it I'll write something in blitz and share it here.

The more I read the more astounded I am that Frontier was possible on an A500.
E-Penguin is online now  
Old 25 March 2019, 22:30   #18
bjadams
Registered User
 
Join Date: Sep 2018
Location: Chesterfield
Posts: 43
@E-Penguin take a look at what GORNY did, it's all written in blitz
bjadams is offline  
Old 26 March 2019, 23:41   #19
madaxe
Registered User

madaxe's Avatar
 
Join Date: Jan 2019
Location: Coimbra / Portugal
Posts: 47
The work is in progress and it is almost done
In a couple of days it will be completed.

madaxe is offline  
Old 27 March 2019, 09:39   #20
bjadams
Registered User
 
Join Date: Sep 2018
Location: Chesterfield
Posts: 43
@madaxe amazing. do you only use blitz commands or fast asm? how fast is it on a500?
bjadams is offline  
 


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

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 22:38.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.15679 seconds with 13 queries