Anti-Aliased 2D Drawing

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Anti-Aliased 2D Drawing

Post by c4s »

Maybe a couple of years ago it wasn't that important but now in 2015 the 2D Drawing library needs official support for anti-aliasing.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Anti-Aliased 2D Drawing

Post by Dude »

+1
Little John
Addict
Addict
Posts: 4519
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Anti-Aliased 2D Drawing

Post by Little John »

+1
User avatar
glomph
User
User
Posts: 48
Joined: Tue Apr 27, 2010 1:43 am
Location: St. Elsewhere / Germany
Contact:

Re: Anti-Aliased 2D Drawing

Post by glomph »

+1
User avatar
STARGÅTE
Addict
Addict
Posts: 2067
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Anti-Aliased 2D Drawing

Post by STARGÅTE »

But I think we lose a lot of speed.
Currently the drawing functions are fast, and use integers.

With Anti-Aliasing all commands have to convert zu float, to draw sub pixels.

From me a −1.
The 2d drawing library should remain as simple as it is.

Fred can add a additional library:
For exmaple a good scalable vector graphics library (with AntiAliasing)
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
StarBootics
Addict
Addict
Posts: 984
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: Anti-Aliased 2D Drawing

Post by StarBootics »

Hello,

Also -1 from me. When I need Anti-Aliased 2D Drawing I'm drawing everything 2 times and sometime 4 times bigger and I resize everythings down to the final size.

That said a SVG library : +10000

Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Anti-Aliased 2D Drawing

Post by heartbone »

c4s wrote:Maybe a couple of years ago it wasn't that important but now in 2015 the 2D Drawing library needs official support for anti-aliasing.
I found it to be more important a few years ago than now with these larger display resolution monitors.
With the trend to 4K displays, the jaggies might not even matter.
StarBootics wrote:Hello,

Also -1 from me. When I need Anti-Aliased 2D Drawing I'm drawing everything 2 times and sometime 4 times bigger and I resize everythings down to the final size.

That said a SVG library : +10000

Best regards
StarBootics
I'd be with you 10000% in selecting that for a top enhancement over anti-aliasing, if there were not such serious and fundamental bugs in the existing product.
When I study the freely downloadable manual and see support claimed for BASIC commands, invest in the system only to discover fundamental, no work around in BASIC commands that don't work, but get reported, and then nothing..............
I'm really not at a loss for words, but free expression seems a bit verboten here.

+0
It would be an improvement, but the resources are too limited for that.
Keep it BASIC.
Seymour Clufley
Addict
Addict
Posts: 1233
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Re: Anti-Aliased 2D Drawing

Post by Seymour Clufley »

StarBootics wrote:That said a SVG library : +10000
PureSVG
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Anti-Aliased 2D Drawing

Post by Dude »

STARGÅTE wrote:But I think we lose a lot of speed.
It really depends on what you're doing. Charts and graphs: the speed is fine. Games: not so good. :)

If AA is added, it should be totally optional, to retain the current speed when AA is not specified with a flag.
Eric Rousseau
New User
New User
Posts: 3
Joined: Mon Oct 30, 2017 7:48 am

Re: Anti-Aliased 2D Drawing

Post by Eric Rousseau »

I wish 2D line antialiasing would be available. But not by using a flag, but with another command name.

So, 2 seperate routines to draw lines with and without antialiasing, so no lost speed in non-antialiasing.

Antialiasing lines would be fun to create little vector games like asteroids or tempest.

Perhapse even in 2d circles, box (rotated at certain degrees), etc...
freak
PureBasic Team
PureBasic Team
Posts: 5929
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Anti-Aliased 2D Drawing

Post by freak »

Eric Rousseau wrote:I wish 2D line antialiasing would be available. But not by using a flag, but with another command name.

So, 2 seperate routines to draw lines with and without antialiasing, so no lost speed in non-antialiasing.

Antialiasing lines would be fun to create little vector games like asteroids or tempest.

Perhapse even in 2d circles, box (rotated at certain degrees), etc...
It is already done like this. The VectorDrawing library provides what you want.
quidquid Latine dictum sit altum videtur
Eric Rousseau
New User
New User
Posts: 3
Joined: Mon Oct 30, 2017 7:48 am

Re: Anti-Aliased 2D Drawing

Post by Eric Rousseau »

Oops, ok thanks, will check this closely... I just haven't really used the vector commands yet...

I spoke to quickly....
Post Reply