|
This thread is locked; no one can reply to it. |
1
2
|
Soft corners |
CodeStepper
Member #14,495
August 2012
|
Is there any way to soft primitives corners? 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 |
Trent Gamblin
Member #261
April 2000
|
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
Member #14,495
August 2012
|
Thank you EDIT: What the... |
LennyLen
Member #5,313
December 2004
|
Just be careful with drawing rounded corners on rectangles. If your game becomes successful, Apple may sue you.
|
CodeStepper
Member #14,495
August 2012
|
What has Apple to rounded corners? |
Thomas Fjellstrom
Member #476
June 2000
|
CodeStepper said: What has Apple to rounded corners? They have a patent on rounded rectangles. -- |
CodeStepper
Member #14,495
August 2012
|
So what about multisampling, why it doesn't work :/ |
Matthew Leverton
Supreme Loser
January 1999
|
Are you drawing to the display back buffer directly? |
CodeStepper
Member #14,495
August 2012
|
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: But in windows 7 everything is ok... Grr... |
Arthur Kalliokoski
Second in Command
February 2005
|
nvmnd They all watch too much MSNBC... they get ideas. |
CodeStepper
Member #14,495
August 2012
|
|
Neil Roy
Member #2,229
April 2002
|
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
Second in Command
February 2005
|
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. They all watch too much MSNBC... they get ideas. |
CodeStepper
Member #14,495
August 2012
|
Ops... what a mess I don't do from now any programs with rounded corners in rectangles o.O |
Arthur Kalliokoski
Second in Command
February 2005
|
I seriously doubt Apple would mess with small fry like us. They all watch too much MSNBC... they get ideas. |
Thomas Fjellstrom
Member #476
June 2000
|
Technically the patent they have is on the shape of the ipad and iphone. Not on rounded rectangles in software. -- |
Arthur Kalliokoski
Second in Command
February 2005
|
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 all watch too much MSNBC... they get ideas. |
Matthew Leverton
Supreme Loser
January 1999
|
They have a patent on rounded icons aligned in a grid: |
Dizzy Egg
Member #10,824
March 2009
|
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
Second in Command
February 2005
|
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? They all watch too much MSNBC... they get ideas. |
Dizzy Egg
Member #10,824
March 2009
|
Yeah, I know, I know... ...trust me, I know.
---------------------------------------------------- |
Neil Roy
Member #2,229
April 2002
|
Matthew Leverton said: 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
Supreme Loser
January 1999
|
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
Member #2,229
April 2002
|
Matthew Leverton said: 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. --- |
Johan Halmén
Member #1,550
September 2001
|
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":"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. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest. |
|
1
2
|