Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: Problem with transparent tiles

  1. #11

    Problem with transparent tiles

    sorry, but I don't have (un)DelphiX installed, so I can't test anything here...

    But the problem you have seems familiar to me. I had same problems with other frameworks.

    In DanJetX the problem can be avoided by setting


    SamplerStates.AddressU[0] := D3DTADDRESS_CLAMP;
    SamplerStates.AddressV[0] := D3DTADDRESS_CLAMP;
    SamplerStates.AddressW[0] := D3DTADDRESS_CLAMP;

    With this the rendering of transparent images shows no artifacts anymore. But I don't know how to set it in UnDelphiX... maybe someone else can help here...
    <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>

  2. #12

    Problem with transparent tiles

    Have you tried with different PatternWidth, PatternSkipWidth etc, also backgroundsprite's tile width has effect.

    So if main image has 1 pixel wide bordering on tiles (black lines), and each tile is 31x31, then these settings would do:
    PatternWidth: 31
    PatternSkipWidth: 1
    TileWidth: 31

    Haven't used DelphiX for long time so unsure what exactly the variables are called... But it could also be small bug in unDelphiX where you would need to try 1 pixel larger approach to fill the gaps.

  3. #13

    Problem with transparent tiles

    I really wonder why only the grass shows the artifacts... the palm does not! Or is the palm one big pattern? I guess its made out of many small patterns, isn't it? If so, then it should also show the black lines at the borders.
    <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>

  4. #14

    Problem with transparent tiles

    maybe is stupid but... images are in jpeg format or was originally in that formatt?
    Will: &quot;Before you learn how to cook a fish you must first learn how to catch a fish.&quot; coolest

  5. #15

    Problem with transparent tiles

    Make sure you have a clFuscia reference pixel in your tiles images. If nothing else put a FULL 32x32 clFuscia tile in the set. Some times there is a problem with not creating a proper reference and instead it fails to the bottom right pixel color to select transparency. Then again it may be top left, bottom left, top right, it just depends on the mood . Including a pixel of the color should fix the problem.

  6. #16

    Problem with transparent tiles

    Quote Originally Posted by Diaboli
    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
    I tried opening the project in Delphi 7, waited 1 minute until i used taskmanager to shutdown hanged delphi... Checked mapedit folder to see the horrible truth: 36Mb big form file and 15Mb exe! Please make them load dynamically on startup :shock: Now that this part is known, i may suspect you are starting to run out of memory and program starts doing unsuspected things.

    More so, tested exe that you compiled and didn't see problems:
    http://i2.tinypic.com/66vmvkg.jpg

  7. #17

    Problem with transparent tiles

    Something is wrong with some sprites:



    Can u put your sprites here?

  8. #18

    Problem with transparent tiles

    Quote Originally Posted by User137
    Quote Originally Posted by Diaboli
    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
    I tried opening the project in Delphi 7, waited 1 minute until i used taskmanager to shutdown hanged delphi... Checked mapedit folder to see the horrible truth: 36Mb big form file and 15Mb exe! Please make them load dynamically on startup :shock: Now that this part is known, i may suspect you are starting to run out of memory and program starts doing unsuspected things.

    More so, tested exe that you compiled and didn't see problems:
    http://i2.tinypic.com/66vmvkg.jpg
    hmmm i doubt i 'm running out of memory ( as i have 2048 mb of it), but dynamic loading is definitively something i should've thought of

    i dont understand how it can work on your somputer, but not on mine, though..... could it have something to do with Vista?? what system are you running?

  9. #19

    Problem with transparent tiles

    I tried it on my Laptop (DELL Latitude D820)

    Core Duo T2400 CPU @ 1.83 GHz, 667MHz front side bus, 2MB L2 cache
    15.4" WSXGA+ display running at 1680x1050
    2048 MB DDR2-667 RAM (2x1024MB DIMMS)
    NVIDIA Quadro NVS 120 graphics solution with 512MB TurboCache
    120GB hard disk @ 7200RPM

    WindowsXP Professional SP2

    No problem here. I can use the editor as intended, no black lines.

    But I also suggest that you think about separating the graphics from your exe That makes no sense!
    <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. #20

    Problem with transparent tiles

    Quote Originally Posted by Diaboli
    what system are you running?
    I am using Windows XP Pro, P3 933Mhz, 512Mb SDRAM, Radeon 9200.

Page 2 of 3 FirstFirst 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
  •