Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi

 

Actually I write a very basic isometric tile engine, it work fine except when the tiles are draw see the pic.

 

1/ the transparency problem.

 

2/ the tile.

 

3/ the alpha channel.

 

----------------------------------------------------------------------------------------------------

 

I got strange lines on the edges, I think it's a problem with the " myTile.MakeTransparent(); "

I've make some tests with alpha channel, search the web etc...

 

If you have an idea.

 

Thanks

Posted

the code is not clean and extremly basic :)

 

public class test

{

private Bitmap tile = new Bitmap("tile1.tif");

 

public test()

{

tile.MakeTransparent();

}

 

public void draw(Graphics g)

{

 

for(int i=0;i<13;i++)

{

for(int x=0;x<4;x++)

{

g.DrawImage();

}

 

for(int y=0;y<5;y++)

{

g.DrawImage();

}

 

corr1 = nCorr1;

corr2 = Ncorr2;

}

}

}

Posted

I hope it's not due to my poor english :D

 

the problem is the gray border of the tile, I Found the source of this problem,

that come when I resize the tile with photoshop, it interpolate and create some non pure black or white pixel.

 

I think I must cut the tile before drawing it...:o

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...