Skip to main content
gamedev.net
🔒 Locked

Rounded corners

Started by Eber Kain Apr 20, 2001 at 11:41 PM 2 replies 350+ views
Original Post
Eber Kain
Eber Kain
I want to make my corners rounded on this, but retain my texture alignment, just nicking the corners off the textures. any help? glBegin(GL_QUADS); glTexCoord2f(0, 1); glVertex2f(-1, 1.5); glTexCoord2f(1, 1); glVertex2f(1, 1.5); glTexCoord2f(1, 0); glVertex2f(1, -1.5); glTexCoord2f(0, 0); glVertex2f(-1, -1.5); glEnd();
www.EberKain.comThere it is, Television, Look Listen Kneel Pray.
Lord Karnus
Lord Karnus
Something I might try would be to check out NeHe''s masking tutorial, and make an alpha texture with the corners blacked out. I haven''t tried it yet, but this way you''re final quad wont have it''s corners...


Feel free to email me.
[email=JValentine_13@hotmail.com]contact[/email]
Eber Kain
Eber Kain
if i did that, wouldnt there be a black spot on all the corners, sure you wouldnt see it normally, but when the corner overlays something, wouldnt you still be able to see the defined corner?
www.EberKain.comThere it is, Television, Look Listen Kneel Pray.
Mezz
Mezz
Not if you blend it correctly.

thats glBlendFunc() with some mad parameter, if you don''t have an alpha channel try GL_SRC_COLOR, GL_ONE. Otherwise work out the alpha combo. I forget, or I''m just not very good.

-Mezz

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.