Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Problem with transparent tiles

  1. #1

    Problem with transparent tiles

    System: Dell M1710 (Intel Centrino Duo 2,16Ghz | 2048mb RAM | GeForce Go 7950 GTX 512mb)
    Compiler/IDE: Delphi 2006
    Library: UndelphiX

    i've hit a snag:

    I use TBackgroundSprites, and load entire tilesets in as the Images.
    the tiles are 32x32 and are not spaced.

    When i make the tileset transparent, with clFuchsia as the transparentcolor, many of the tiles get ruined.

    It looks like the transparentcolor is not correct, but it IS set to clFuchsia, and the ruined tiles does not contain any clFuchsia...



    As u might guess, the left part is when i set the tileset to transparent, the right part is when it is NOT transparent...

    its really frustrating...

  2. #2

    Problem with transparent tiles

    I use TBackgroundSprites, and load entire tilesets in as the Images.
    the tiles are 32x32 and are not spaced.
    If the tiles are not spaced i can't understand why you want to set the
    transparent color :? :?:
    <center>
    <br />Federico &quot;FNX&quot; Nisoli
    <br />Lead Programmer - FNX Games
    <br />http://www.fnxgames.com
    <br /><img src="http://www.fnxgames.com/imgs/banners/fnxban.gif">
    <br /></center>

  3. #3

    Problem with transparent tiles

    because some tiles does not fill an entire 32x32pixels, like some small flowers, small windows, etc.

  4. #4

    Problem with transparent tiles

    I don't understand the problem. Left and right side tiles seem full and same, except for pixel wide spacing on other green tiles... Can you show example on base image you use on tiles?

  5. #5
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Problem with transparent tiles

    So what you are saying is that some will be background tiles and others will be a second layer of tiles that will be seen over the background tiles, yes?
    Jason McMillen
    Pascal Game Development
    Co-Founder





  6. #6

    Problem with transparent tiles

    Will: exactly!

    User137: well, they arent supposed to be spaced at all! they are supposed to look like the ones on the right part of the pic.

    If i only had tiles that filled the entire 32x32 pixels, i would not have to use transparent (wich causes this error), but i need to be able to draw up to 5 layers of tiles...

    OK, new pic:


    these are in essential the same map, without and with transparent.

    you can clearly see that there is some problem with the grass-tile when the tileset is set to transparent. it is as if the transparentsolor is not correct, right? but the transparentcolor is OK according to the settings. so there has to be an error in unDelphiX, or what?

  7. #7

    Problem with transparent tiles

    I guess its an anitaliasing problem...

    Try turning off antialiasing...
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  8. #8

    Problem with transparent tiles

    tried to deactivate anti-aliasing, but it made no difference

  9. #9

    Problem with transparent tiles

    Can you switch mipmapping off, too?
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  10. #10

    Problem with transparent tiles

    Dont know how i do that....

    i can just upload the mapeditor + source, and u can see if it works for you?

    http://thorins.net/mapedit.rar

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •