BBC BASIC for Windows
« GFXLIB »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:48pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1 ... 7 8 9  Notify Send Topic Print
 veryhotthread  Author  Topic: GFXLIB  (Read 2172 times)
David Williams
Developer

member is offline

Avatar

meh


PM

Gender: Male
Posts: 452
xx Re: GFXLIB
« Reply #120 on: Jul 14th, 2010, 01:38am »

I've been working on a new bitmap rotation routine for GFXLIB.

Despite still partially being in BASIC(!), this one is significantly faster than "my old one",
and yet it's still very far from optimal. In fact, until I can get my Sutherland-Hodgman polygon clipper
working properly, this routine will remain very inefficient.

Here's a preview:

http://www.bezu.co.uk/filesdump/temp/progs/bitmaprotator.zip


Use the left and right mouse buttons to zoom in and out.


David.
« Last Edit: Jan 18th, 2012, 5:00pm by David Williams » User IP Logged

David Williams
Developer

member is offline

Avatar

meh


PM

Gender: Male
Posts: 452
xx Re: GFXLIB
« Reply #121 on: Jul 21st, 2010, 12:09am »

New routine (alpha-blend with master opacity control) as recently requested by a BB4W user who's developing a GFXLIB-based game.

Here's a quick demo of PlotAlphaBlend4:

http://www.bezu.co.uk/filesdump/temp/progs/plotalphablend4demo.zip

Notice the nice smooth sprite edges? Use the left/right arrow keys to decrease/increase the number of sprites.

This routine will be included in the next release (v2.02) of GFXLIB due out in a month or three.


David.
« Last Edit: Jan 18th, 2012, 5:00pm by David Williams » User IP Logged

David Williams
Developer

member is offline

Avatar

meh


PM

Gender: Male
Posts: 452
xx Re: GFXLIB
« Reply #122 on: Jan 18th, 2012, 5:23pm »

NOTE: Most of the web links (URLs) in this thread (prior to this post) are no longer valid.


~ ~ ~


I have modified an old GFXLIB example program to display a rotating 3D toroidal ring donut:

http://www.bb4wgames.com/gfxlibdemos/progs/exe/donut.zip


I was 'inspired' by this little DarkBASIC demo (YouTube video):

"Oldschool Demo - Shaded vector balls"
http://www.youtube.com/watch?v=XUGHoqM7myk

EDIT (21/01/2012): Here's my attempt so far (using above YouTube video as a reference).
It only runs at half the 'optimum' frame rate on my laptop (30 fps instead of 60 fps):

http://www.bb4wgames.com/gfxlibdemos/progs/exe/donut2.zip


Bear in mind that the DarkBASIC program will have been compiled to native x86 machine code, whereas donut2.exe is still actually interpreted BASIC.


Other GFXLIB demos:

http://www.bb4wgames.com/gfxlibdemos/gfxlib_demos_index.html


David.

« Last Edit: Jan 20th, 2012, 11:45pm by David Williams » User IP Logged

Pages: 1 ... 7 8 9  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls