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 / PNG Image has white line in game

Author
Message
DB_Newbie
16
Years of Service
User Offline
Joined: 4th Aug 2009
Location:
Posted: 25th Jun 2010 05:17 Edited at: 25th Jun 2010 05:28
Hi all,

I have a problem which I just can't figure out.

I have a .png image file (attached) and when I apply it to an object, it has this thin strip of white line at the top of the texture.

This is the code I used to test it out:



When I run the code, the image appears on the plane, but at the top there is a white line.

I made sure that there is nothing drawn in the .png file in photoshop. But the white line is still there.

Can anyone figure this out?

EDIT:

Oh I also tried using a .tga but then the texture doesn't show at all.
Sixty Squares
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 25th Jun 2010 05:57 Edited at: 25th Jun 2010 05:58
This is all I can think of:

Try adding a ",1" to the LOAD IMAGE command.

If that doesn't work or you don't like the result, try setting the transparency mode to 6 and using the SET ALPHA MAPPING ON command on your object. Set the alpha mapping to 99.

Let me know if it works

DB_Newbie
16
Years of Service
User Offline
Joined: 4th Aug 2009
Location:
Posted: 25th Jun 2010 06:08
Already added the 1 at the end of LOAD IMAGE and it didn't work.

However your second suggestion fixed it! *hugs*

Thanks a lot man =D

Login to post a reply

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