Soft corners
CodeStepper

Is there any way to soft primitives corners?
For example:

Rounded rectangle:

al_draw_filled_rounded_rectangle( 100, 100, 400, 250, 20, 20, al_map_rgb( 90, 60, 90 ) );

Triangle ( hmm... )

al_draw_filled_triangle( 100, 50, 50, 150, 150, 200, al_map_rgb( 90, 60, 90 ) );

Circle ( there are no corners, but... :P )

al_draw_filled_circle( 100, 100, 80, al_map_rgb( 90, 60, 90 ) );

Like antyaliasing or something like this

Trent Gamblin

Multisampling. Before you create your display make calls like:

al_set_new_display_option(ALLEGRO_SAMPLE_BUFFERS, 1, ALLEGRO_SUGGEST);
al_set_new_display_option(ALLEGRO_SAMPLES, 4, ALLEGRO_SUGGEST);

CodeStepper

Thank you :)

EDIT:
------------------------------------
WoW!
I just installed Windows 8, and this not working!

What the...
I try with ALLEGRO_REQUIRE, but it's not working too...

LennyLen

Just be careful with drawing rounded corners on rectangles. If your game becomes successful, Apple may sue you.

CodeStepper

What has Apple to rounded corners?

Thomas Fjellstrom

What has Apple to rounded corners?

They have a patent on rounded rectangles.

CodeStepper

So what about multisampling, why it doesn't work :/

Matthew Leverton

Are you drawing to the display back buffer directly?

CodeStepper

Before creating display

...
al_set_new_display_option(ALLEGRO_SAMPLE_BUFFERS, 1, ALLEGRO_SUGGEST);
al_set_new_display_option(ALLEGRO_SAMPLES, 4, ALLEGRO_SUGGEST);

ALLEGRO_DISPLAY *display = al_create_new_display( 800, 600 );
...

EDIT:
Sorry, i missunderstood youd question :D
Yes, i'm drawind directly...

But in windows 7 everything is ok... Grr...

Arthur Kalliokoski

nvmnd

CodeStepper

I tried:

I try with ALLEGRO_REQUIRE, but it's not working too...

Neil Roy
LennyLen said:

Just be careful with drawing rounded corners on rectangles. If your game becomes successful, Apple may sue you.

LMAO... what an insane world we live in.

Arthur Kalliokoski

They need to sue MS for their use of rounded corners in Microsoft Bob.

{"name":"bobgay.gif","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/5\/f5f86279813bf559ee5270534e8fccfb.gif","w":351,"h":310,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/5\/f5f86279813bf559ee5270534e8fccfb"}bobgay.gif

[EDIT]

From the same website, it says Apple sued Digital Research for look and feel concerning GEM 1.1 back in 1985.

CodeStepper

Ops... what a mess :-/

I don't do from now any programs with rounded corners in rectangles o.O

Arthur Kalliokoski

I seriously doubt Apple would mess with small fry like us.

Thomas Fjellstrom

Technically the patent they have is on the shape of the ipad and iphone. Not on rounded rectangles in software.

Arthur Kalliokoski

Back on the farm we had a stove from the '50's that had rounded corners all over the place. :P "Streamlined", they called it, even though it didn't move.

Matthew Leverton

They have a patent on rounded icons aligned in a grid:

http://www.google.com/patents/USD604305

Dizzy Egg

I love it when the 'graphics department' (hmm) at j0rb do me a border with rounded rectangles. It's clear to me but so, so painfully unclear to them that selecting a rounded-rectangle in photoshop and dragging the horizontal twice as far as the vertical, then doing so but smaller to create and edge will result in horrid, out of shape corners. I'm not sure why that's relevant. I guess I want to say F**K YOU to my graphics department on a platform they won't ever visit.

So F**K YOU, useless tossers. I could do your job in 1/8th of the time, with superior results. So there.

Phew. Now, where am I....

Arthur Kalliokoski
Dizzy Egg said:

selecting a rounded-rectangle in photoshop and dragging the horizontal twice as far as the vertical, then doing so but smaller to create and edge will result in horrid, out of shape corners.

Couldn't they just select a middle part of the rectangle and stretch that?

Dizzy Egg

Yeah, I know, I know...

...trust me, I know.

Neil Roy

They have a patent on rounded icons aligned in a grid:http://www.google.com/patents/USD604305

Who the hell are handing out such bogus patents?! That's crazy. Most of the things listed there are so generic it's not funny.

Like:

Aug 23, 1994	Sep 10, 1996	Prosoft Corporation	Windowed computer display

in 1994?! Seriously?! When the Commodore Amiga was out with an all window display, heck so was Windows, all before 1994. O.o

I would ignore the patents, fuck 'em. That would be my response as well. I'm not wealthy so I have zip to lose. I'm making rounded corners just out of spite now! ;)

Matthew Leverton

They patent everything and see what sticks. If you had money, you could too.

e.g., The gap I display between your last read post and the next one would be filed away as a great invention.

Neil Roy

e.g., The gap I display between your last read post and the next one would be filed away as a great invention.

I know I am always amazed at that gap. How you ever came up with such a genius idea is beyond the comprehension of this mere mortal. :o

Johan Halmén

Isn't the rounded corner a design thing? Such things should not need to be patented. It's kind of art work and is as such protected as soon as the artist has created the art work. I mean' this would put everything in right perspective.

Here:
{"name":"interface-msw103.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/6\/d65b06ee6f378a4679a9ffa62c5e65db.jpg","w":500,"h":273,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/6\/d65b06ee6f378a4679a9ffa62c5e65db"}interface-msw103.jpg

{"name":"img_02.gif","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/6\/1\/6128bc6e33c1286afbcb2837bf06ecc9.gif","w":523,"h":369,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/6\/1\/6128bc6e33c1286afbcb2837bf06ecc9"}img_02.gif

Two interfaces with rounded buttons. One wouldn't say that one is stolen from the other. There's more to it than only the rounded corners.

Matthew Leverton

I linked to the patent. Short version:

Quote:

We patent something that looks sort of like this:

|     4:00 PM     |
|-----------------|
| /-\ /-\ /-\ /-\ |
| \-/ \-/ \-/ \-/ |
| /-\ /-\ /-\ /-\ |
| \-/ \-/ \-/ \-/ |
| /-\ /-\ /-\ /-\ |
| \-/ \-/ \-/ \-/ |
|                 |
|                 |
|-----------------|
| /-\ /-\ /-\ /-\ |
| \-/ \-/ \-/ \-/ |

Neil Walker

I might patent a qwerty keyboard design with keys in a grid pattern. Useless of course, but it will look very pretty and touch typists will soon get used to it.

[edit]or maybe writing this in this thread constitutes ownership of said design, or is that only for copyright?

Trent Gamblin

CodeStepper, did you ever figure out the problem on Windows 8? I'm really curious.. is it the same computer?

Arthur Kalliokoski

So the original problem was that multisampling was allowed on win 7 but not win 8? That sounds like a driver problem.

Neil Roy

Maybe Windows 8 is artificially making it look faster by disabling multisampling. ;)

CodeStepper

@Trent
This is the same computer...

@Arthur
I have installed the latest drivers for my graphics cards

@NiteHackr
Maybe..., but I don't believe that :)

@Johan Halmén
WOW!
MS-DOS and rounded rectangle corners :D

Arthur Kalliokoski

@Arthur
I have installed the latest drivers for my graphics cards

And maybe those win8 compatible drivers don't have multisampling yet. New beta crap.

[EDIT]

Just found this on reddit.

{"name":"Nd4JI.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/8\/781d76cde3ee18ee3ff35a662c62fc19.jpg","w":400,"h":1662,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/8\/781d76cde3ee18ee3ff35a662c62fc19"}Nd4JI.jpg

Neil Roy

Wow, that's incredible. Did Apple just decide to steal all of Braun's designs or did they maybe buy the rights to Braun? That's too much to be coincidental. I think someone could have a case against Apple patents easily with this.

Come to think of it, I think calculators with rounded corners have been fairly common for about as long as I can recall.

Trent Gamblin

Huh, is that ios 1 or something? It's still similar, but I've never seen it like that. It looks like this now:

{"name":"606559","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/0\/d08541adff64ff597283fb27932c73fa.png","w":640,"h":960,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/0\/d08541adff64ff597283fb27932c73fa"}606559

Johan Halmén

ownership of said design

Matthew has the patent of using the word "said" that way. He charges terrible sums for each use.

james_lohr

The aforementioned usage of said deserves a severe penalty. Preferably death. :P

Evert
NiteHackr said:

Wow, that's incredible. Did Apple just decide to steal all of Braun's designs or did they maybe buy the rights to Braun? That's too much to be coincidental. I think someone could have a case against Apple patents easily with this.

Don't be daft.

The portable radio and the ipod do look similar, but many portable radios had round knob for selecting the channel. The ipod circle isn't even a knob.

The radio and the Power Mac? Really? The speaker-grill is on the left (you can see in the second picture) and the Power Mac has a grill-covered front. Woohoo. Apart from that they both look like silver boxes from the side.

A flat speaker photographed from the side looks somewhat like a flat computer screen (I know, the entire computer is in there) seen from the side. Awesome similarity there.

As for the calculator, many hand-held calculators have a similar layout, and computer calculator programs have a deliberately similar design. In this particular case they're not even that close.

It's a funny picture for sure, good for a laugh, but don't overstate the similarity.

Arthur Kalliokoski

I think NiteHackr had his tongue firmly planted in his cheek when he said that.

Thomas Fjellstrom
Evert said:

The ipod circle isn't even a knob.

Doesn't matter. Its a circular control. That's all that matters.

Quote:

It's a funny picture for sure, good for a laugh, but don't overstate the similarity.

Tell that to apple, and the jury who awarded them a billion dollars for the shape of the iphone, ipad and the layout of the iOS icons.

Neil Roy

Yes, I agree, it is silly to overstate how something looks the same... isn't it? You better tell that to Apple though.

The point is, it's a common design that has been in existence since before Apple was a company and therefore to claim the design, or LOOK and feel is exclusively your own is ridiculous.

Thread #610931. Printed from Allegro.cc