Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Weird Black outline....

Author
Message
Dark Dragon
19
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 23rd Jun 2010 00:05
I'm getting a wierd black outline on all my sprites. I can cope with it now but i'll need to eliminate it when i release my product? Anyone know whats causing this?? It keeps up even when I have Set colorkey set to 0,0,0(black).

Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 23rd Jun 2010 00:15
screenshot?

Rawwrr. Sig Fail.
Newcastle is awesome
Dark Dragon
19
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 23rd Jun 2010 00:49
Here........(Man, Jpgs suck!)

Diggsey
20
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 23rd Jun 2010 01:51
You scaled it up massively so the outline is going to be scaled up too... The colorkey only works on colours that are exactly black, not colours that are close

Four Dimensional
18
Years of Service
User Offline
Joined: 11th Jun 2008
Location: lost in thought
Posted: 23rd Jun 2010 01:54
I'm not sure which image format you're currently using, but, like you said, jpgs do suck. They can often create "artifacts" or incorrectly colored pixels in the image, especially around areas of contrast (the edge of a sprite). Note that if the pixels are off by one value of red, green, or blue from the color key, they are still displayed. I recommend using a simple editing tool (MS Paint or equivalent) and filling the parts you do not want visible with the color key, then saving as a format with minimal compression (BMP (24- or 32- bit), PNG (non-interlaced), TGA). Note that gifs AND jpgs are very compressed.

By the way, for best results, I highly recommend using photoshop or gimp(free) to create a sprite with a transparent component and save as a PNG or TGA (I haven't had much like with 32-bit BMPs). This can mimic glass, water, or even serve to allow a smooth, faded edge on sprites.

Imagine this: there may exist infinite parallel universes, all similar to ours, but we may never be able to encounter or even interact with them.
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 23rd Jun 2010 03:05
I think Diggsey is right.Try to make your images in your paint program bigger so you don`t need to scale them.Then the line wont bother you.

Coding is My Kung Fu!
And My Kung Fu is better than Yours!
Dark Dragon
19
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 23rd Jun 2010 05:40
Quote: "Try to make your images in your paint program bigger so you don`t need to scale them.Then the line wont bother you."



There is no scaling........and there is no outline in the original .png. Just red.

I'm serious. the reason that the two sprites are differant is because well, i took a screenshot in Db, and Db blew it up to match the screen size(640x480). Then it was incredibly smaller in paint............

luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 23rd Jun 2010 10:15
I think that`s exactly why most games have diferent textures and sprites for diferent resolutions, so they can match the screen size without problem.

Coding is My Kung Fu!
And My Kung Fu is better than Yours!
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 23rd Jun 2010 16:29
Upload the original .png so we can see what it looks like.

Dark Dragon
19
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 24th Jun 2010 03:00 Edited at: 24th Jun 2010 03:03
here ya go....

The Blue is actually transparent. It changed to blue when i made the black to transparent. (WTH?!?!?!)

Zeus
20
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 24th Jun 2010 07:15
Quote: "and Db blew it up to match the screen size(640x480)"


Why don't you change the screen size/resolution?

Seeming since you have been here since 2007 I assume you know how but just in case the code is below.



Zeus

I missed you Shadowtroid!
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 24th Jun 2010 08:44
It looks like to me that you're not using a ,1 at the end of LOAD IMAGE. When you don't use a texture flag of 1 the image is blurred.



Dark Dragon
19
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 24th Jun 2010 22:18 Edited at: 24th Jun 2010 22:29
@Zeus

Yeah, I'd Tried that......Its a No-Go tho.....



@Grog

You know, I'd never thought about that! lemme give it a go............


EDIT}}}

YES!!!!!!!!!!!!!!!! YES! THATS IT! Thank you,Thank you,Thank you,Thank you,Thank you,Thank you,Thank you and Thank you,Grog.

Login to post a reply

Server time is: 2026-07-25 08:13:35
Your offset time is: 2026-07-25 08:13:35