gbparis Posted October 9, 2003 Posted October 9, 2003 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 Quote
*Experts* mutant Posted October 9, 2003 *Experts* Posted October 9, 2003 Could you show the code that you use, and maybe a pictuire of the form when the images are drawn if you can. Quote
gbparis Posted October 9, 2003 Author Posted October 9, 2003 thanks for the reply here's the pic: Quote
gbparis Posted October 9, 2003 Author Posted October 9, 2003 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; } } } Quote
*Experts* mutant Posted October 9, 2003 *Experts* Posted October 9, 2003 Im sorry but could you now that I see it tell me to what you are referring as the unwanted effect? :) Quote
gbparis Posted October 9, 2003 Author Posted October 9, 2003 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 Quote
*Experts* mutant Posted October 9, 2003 *Experts* Posted October 9, 2003 Oh, now I see what you meant. Its not because o your English, its good actually :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.