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... )
al_draw_filled_circle( 100, 100, 80, al_map_rgb( 90, 60, 90 ) );
Like antyaliasing or something like this
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);
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...
Just be careful with drawing rounded corners on rectangles. If your game becomes successful, Apple may sue you.
What has Apple to rounded corners?
What has Apple to rounded corners?
They have a patent on rounded rectangles.
So what about multisampling, why it doesn't work :/
Are you drawing to the display back buffer directly?
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
Yes, i'm drawind directly...
But in windows 7 everything is ok... Grr...
nvmnd
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.
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"}
[EDIT]
From the same website, it says Apple sued Digital Research for look and feel concerning GEM 1.1 back in 1985.
Ops... what a mess
I don't do from now any programs with rounded corners in rectangles o.O
I seriously doubt Apple would mess with small fry like us.
Technically the patent they have is on the shape of the ipad and iphone. Not on rounded rectangles in software.
Back on the farm we had a stove from the '50's that had rounded corners all over the place. "Streamlined", they called it, even though it didn't move.
They have a patent on rounded icons aligned in a grid:
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....
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?
Yeah, I know, I know...
...trust me, I know.
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!
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.
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.
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"}
{"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"}
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.
I linked to the patent. Short version:
We patent something that looks sort of like this:
| 4:00 PM | |-----------------| | /-\ /-\ /-\ /-\ | | \-/ \-/ \-/ \-/ | | /-\ /-\ /-\ /-\ | | \-/ \-/ \-/ \-/ | | /-\ /-\ /-\ /-\ | | \-/ \-/ \-/ \-/ | | | | | |-----------------| | /-\ /-\ /-\ /-\ | | \-/ \-/ \-/ \-/ |
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?
CodeStepper, did you ever figure out the problem on Windows 8? I'm really curious.. is it the same computer?
So the original problem was that multisampling was allowed on win 7 but not win 8? That sounds like a driver problem.
Maybe Windows 8 is artificially making it look faster by disabling multisampling.
@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
@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"}
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.
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"}
ownership of said design
Matthew has the patent of using the word "said" that way. He charges terrible sums for each use.
The aforementioned usage of said deserves a severe penalty. Preferably death.
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.
I think NiteHackr had his tongue firmly planted in his cheek when he said that.
The ipod circle isn't even a knob.
Doesn't matter. Its a circular control. That's all that matters.
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.
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.