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: 44
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: 6,374
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: 44
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: 6,374
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: 44
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: 54
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: 44
@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: 44
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: 54
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
 
E-Penguin's Avatar
 
Join Date: Jul 2016
Location: Darmstadt
Posts: 1,215
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 offline  
Old 07 March 2019, 18:03   #11
bjadams
Registered User
 
Join Date: Sep 2018
Location: Chesterfield
Posts: 44
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: 54
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, many years ago I have made a small 3D intro for amiga but unfortunately I don't know where it is. But fortunately 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, 97 views)
File Type: zip 3D_02.zip (234.8 KB, 82 views)

Last edited by madaxe; 04 December 2023 at 11:05. Reason: Fix images links.
madaxe is offline  
Old 12 March 2019, 19:06   #13
bjadams
Registered User
 
Join Date: Sep 2018
Location: Chesterfield
Posts: 44
@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: 54
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, 84 views)

Last edited by madaxe; 04 December 2023 at 15:24. Reason: Fix images links.
madaxe is offline  
Old 12 March 2019, 20:05   #15
bjadams
Registered User
 
Join Date: Sep 2018
Location: Chesterfield
Posts: 44
@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: 54
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
 
E-Penguin's Avatar
 
Join Date: Jul 2016
Location: Darmstadt
Posts: 1,215
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 offline  
Old 25 March 2019, 22:30   #18
bjadams
Registered User
 
Join Date: Sep 2018
Location: Chesterfield
Posts: 44
@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: 54
The work is in progress and it is almost done
In a couple of days it will be completed.


Last edited by madaxe; 04 December 2023 at 15:24. Reason: Fix images links.
madaxe is offline  
Old 27 March 2019, 09:39   #20
bjadams
Registered User
 
Join Date: Sep 2018
Location: Chesterfield
Posts: 44
@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 19:52.

Top

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