Really bad tiling problem with Mac apps

2

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2013
    @P-O-M
    Anyway, the issue exist and you can simply see it on the file I posted..
    And its been here for quite a while now.

    Roy.

    Interestingly (I'm sure you might already be aware of this) if you move the background (the actor with the tiled image) then the problem disappears, it only appears to be an issue when the camera is moving.
  • MarkOnTheIronMarkOnTheIron Member Posts: 1,447
    edited January 2013
    @Socks I'm referring to the tile size AND/OR tile image size :)

    You can check the two free games I posted some posts above. In the events the grass, the tracks, the ad banner, the animated crowd and the stadium at the back of the crowd are all using the tile feature.

    @P-O-M I've started it with GS 0.9.94 but the last version of the game (1.3) was released just last week and it was made with the latest GS 0.10.1

    There are no workaround in it. Just various actors that use the tile feature. The sizes of the tiles that I use are listed above.

  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2013
    @Socks I'm referring to the tile size AND/OR tile image size :)
    I see ! Thanks for the clarification. Like I said earlier, changing the size and/or tile size doesn't seem to solve the problem - at least in my experience.
    There are no workaround in it. Just various actors that use the tile feature. The sizes of the tiles that I use are listed above
    Is the camera moving ? Is it possible to take a look at your project, even if it's just a stripped out version with only the background ?
  • MarkOnTheIronMarkOnTheIron Member Posts: 1,447
    @Socks Yes, the camera is moving. It's constrained to the running actor or to the thrown object. Unfortunately I cannot let you see the project now since it's a client's work, but I will see what I can do.

  • POMPOM Member Posts: 2,599
    @Socks I'm referring to the tile size AND/OR tile image size :)

    You can check the two free games I posted some posts above. In the events the grass, the tracks, the ad banner, the animated crowd and the stadium at the back of the crowd are all using the tile feature.

    @P-O-M I've started it with GS 0.9.94 but the last version of the game (1.3) was released just last week and it was made with the latest GS 0.10.1

    There are no workaround in it. Just various actors that use the tile feature. The sizes of the tiles that I use are listed above.

    Very interesting..
    Can you give me an example of an actor from your project?
    Like say,
    Actor size - 256x1024
    It's image size is - 512x512
    Tiling:
    Width 256
    Height 256

    Give me an example of a combination that is working..

    Thanks!
    Roy.
  • SocksSocks London, UK.Member Posts: 12,822
    Unfortunately I cannot let you see the project now since it's a client's work, but I will see what I can do.
    I don't mind if you strip everything out, so it's just a white block moving to the right.

    ?
  • MarkOnTheIronMarkOnTheIron Member Posts: 1,447
    @P-O-M Take a look at the crowd and the track in the 100m. I will use them as an example, sizes are width x height:

    Crowd:
    Actor size - 3400x64
    Image size - 256x128
    Tile size - 128x64

    Track:
    Actor size - 3400x100
    Image size - 64x200
    Tile size - 32x100

  • POMPOM Member Posts: 2,599
    edited January 2013
    DONE! (well.. maybe)
    Formula cracked .

    GS will MAKE black lines if you dont use the multiples of 2
    2,4,8,16,32,64,256,512,1024 etc..

    However, If you use the multiple of 2,
    No black lines.

    Roy.
  • SocksSocks London, UK.Member Posts: 12,822
    DONE!
    Formula cracked .

    GS will MAKE black lines if you dont use the multiples of 2
    2,4,8,16,32,64,256,512,1024 etc..

    However, If you use the multiple of 2,
    No black lines.

    Roy.
    My images are 256x256 and I still have lines ?

    P.S the lines are 'gaps' (ie: they are your background colour rather than black per se).

    Going to test this now . . . .

  • MarkOnTheIronMarkOnTheIron Member Posts: 1,447
    edited January 2013
    @P-O-M 200 is not a power of 2 yet no issues.

    @Socks Have you tested it in the viewer or in an adhoc? Because GS preview isn't reliable.

  • POMPOM Member Posts: 2,599
    @P-O-M 200 is not a power of 2 yet no issues.

    Its not, but are you tiling it the the height? or the wight? if you tile the 64, no black lines?
  • POMPOM Member Posts: 2,599
    edited January 2013
    Guys im telling you, its working
    (Dont use the desktop creator use the iphone viewer to see this)
    If you tile a multiple of 2, no black lines, for example
    image 256x256
    Tiled in an actor that is 256x1024
    i see no black lines
    but if the image is 254x256
    there are black lines..

    Roy.
  • POMPOM Member Posts: 2,599
    edited January 2013
    Try this file,
    http://www.mediafire.com/?ej8zauhqlnqu0qw
    same effect, but this time instead of 960x640 image
    we tile 1024x1024 image (same RAM by the way)

    View it in the viewer, no black lines..

    Roy.
  • MarkOnTheIronMarkOnTheIron Member Posts: 1,447
    @P-O-M Sorry, wrong example. That actor is not tiled in the height. Everything else is a power of 2 in the tiled direction.

    You may have something there. I made some tests and other sizes are showing the black lines, only the power of 2 sizes are ok (in iOS, Mac projects show the black lines also with the power of 2).


  • imGuaimGua Member Posts: 1,089
    Have noticed this bug moths ago. Reported. Had no reply. Glad this topic has popped up.
  • POMPOM Member Posts: 2,599
    edited January 2013
    @P-O-M Sorry, wrong example. That actor is not tiled in the height. Everything else is a power of 2 in the tiled direction.

    Cant see how this can happen, if you can show me a tiled actor that has no black lines in it and is not using the power of 2, then i believe it ;)

    Make a quick demo..

    Roy.
  • POMPOM Member Posts: 2,599
    DONE!
    Formula cracked .

    GS will MAKE black lines if you dont use the multiples of 2
    2,4,8,16,32,64,256,512,1024 etc..

    However, If you use the multiple of 2,
    No black lines.

    Roy.
    My images are 256x256 and I still have lines ?

    P.S the lines are 'gaps' (ie: they are your background colour rather than black per se).

    Going to test this now . . . .

    Show me the file if you can..

    Roy.
  • SocksSocks London, UK.Member Posts: 12,822
    Guys im telling you, its working
    (Dont use the desktop creator use the iphone viewer to see this)
    If you tile a multiple of 2, no black lines, for example
    image 256x256
    Tiled in an actor that is 256x1024
    i see no black lines
    but if the image is 254x256
    there are black lines..

    Roy.


    Yep ! You seem to be onto something here, the images look as though they need to follow the '2, 4, 8, 16, 32, 64, 256, 512, 1024 . . ' rule - just having images that are evenly divided (for example 400 x 400) isn't good enough, it needs to follow that rule.

    Anyhow, good stuff on working this out !!

    :)>-
  • POMPOM Member Posts: 2,599
    edited January 2013
    A point worth mentioning..
    You need to keep the "rule of 2" only on the axis you are tiling,
    Meaning if you tile only the horizontal part of the image, you can still make your image
    width - 256
    height - 400
    As long as the width has the power of 2 (cause you tile the width) your fine..

    Roy.
  • SocksSocks London, UK.Member Posts: 12,822
    You need to keep the "rule of 2" only on the axis you are tiling . . .


    :)>-
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited January 2013
    Guys im telling you, its working..
    If you tile a multiple of 2, no black lines...

    You need to keep the "rule of 2" only on the axis you are tiling . . .
    Excellent stuff, Roy! :-) :-bd

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792
    edited January 2013
    Roy - Just to clarify are you saying only the image needs to have a width that is a power of 2? Or the the tile width and actor width too?
  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2013
    Roy - Just to clarify are you saying only the image needs to have a width that is a power of 2. Or the the actor size too?
    Just the image . . . once your image meets the rule you can do what you want with the actor - make the actor 2983 x 1193 with a tile width of 197 and a tile height of 873 and rotate it by 293.56 degrees (basically do what you want) and it's still absolutely fine.
  • CaptFinnCaptFinn Member Posts: 1,828
    edited January 2013
    @P-O-M
    Unfortunately mate, this problem occurs on any device . . .
    Yep, I've run into the same issue - these visible joins between tiles appear on the iPad, iPhone and iPods I've tested.
    . . . I've contact GS about this few time and they did not even reply to me.. makes you wonder if you send all those bug reports in vain ..
    I made the same point recently, once you've sent in a few bug reports, taken the time to measure, test and report these bugs (with example projects and a clear description of when they occur) and you do all this through the official channels . . . and all you hear is . . . . silence . . . nothing, zero, zilch . . . you send it all off again a few weeks later . . .same deal . . . silence . . . nothing . . . and the bugs and glitches remain in place month after month, version after version, year after year, you tend to give up on the bug reporting system, like you say you wonder whether there is any point reporting this stuff, it certainly feels very similar to 'wasting your own time'.

    I gave up reporting bugs a long time ago.


    SaladStraightShooterrrrrrrrr.......Ohhhhhhh Shoooooterrrrrrrr..... Chime in anytime.
  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792
    Roy - Just to clarify are you saying only the image needs to have a width that is a power of 2. Or the the actor size too?
    Just the image . . . once your image meets the rule you can do what you want with the actor - make the actor 2983 x 1193 with a tile width of 197 and a tile height of 873 and rotate it by 293.56 degrees (basically do what you want) and it's still absolutely fine.
    Ah good. With my actors I plan on... making them do humiliating advertising endorsements until they have enough money to interpolate their overdraft to 0.
  • SocksSocks London, UK.Member Posts: 12,822
    Ah good. With my actors I plan on... making them do humiliating advertising endorsements until they have enough money to interpolate their overdraft to 0.
    Make them do it naked.
  • HymloeHymloe Member Posts: 1,653
    I have an actor called BACKGROUND.

    It is 1024x1024 (72 dpi, PNG), and set to Tiled on Horizontal and Vertical.

    It is non-moveable.

    I put that actor onto my scene, at the back. I make that instance of the actor 4096x4096, and place it at 2048, 2048.

    As my character moves around, there are lines that show between the seams of the texture as it tiles across my large background. I can see orange through the gaps, because my scene is orange.

    I am moving my camera around using the Control Camera behaviour.

    I have tried everything to make the lines go away. I'm obeying the power of 2 rule with my texture, it's set to tiled, and my actor is also power of 2, and I even have it neatly positioned at an even numbered position just for luck.

    But alas, I cannot fix my tiling woes.

    Can anyone offer more advice? Do others have this problem?

    (I'm using Mac Creator 0.10.0).
  • SocksSocks London, UK.Member Posts: 12,822
    But alas, I cannot fix my tiling woes.
    @Hymloe

    What device are you viewing this on ?
  • HymloeHymloe Member Posts: 1,653
    It's happening on the Mac Viewer, and while I've been working on it, it's been happening on iPad as well.

    But I've just noticed that, having tested it on iPad again now with my latest changes, it's now working properly on there!

    Is it a known bug that tiling doesn't work properly in the Mac Viewer???



  • HymloeHymloe Member Posts: 1,653
    I should say, on the iPad, I'm now not seeing the seams/lines where the image tiles.

    But although my image tiles perfectly in Photoshop, in Game Salad it doesn't tile smoothly, it's as if it's cutting off part of the image. Hmmm.

Sign In or Register to comment.