Author Topic: [FIXED][Bug] display of certain terrain pieces  (Read 2967 times)

0 Members and 1 Guest are viewing this topic.

Offline mobius

  • Posts: 2752
  • relax.
    • View Profile
[FIXED][Bug] display of certain terrain pieces
« on: December 01, 2017, 12:02:17 AM »
the culprit is again the L2 wooden diagonal pieces...

They appear fine in the editor; but when displayed in game when one of these pieces is set to erase it does not display correctly at all; see the images.

Instead of erasing as normal (the shape of the piece being outlined; a total block square is made.
everything by me: https://www.lemmingsforums.net/index.php?topic=5982.msg96035#msg96035

"Not knowing how near the truth is, we seek it far away."
-Hakuin Ekaku

"I have seen a heap of trouble in my life, and most of it has never come to pass" - Mark Twain


Offline mobius

  • Posts: 2752
  • relax.
    • View Profile
Re: bug - display of certain terrain pieces
« Reply #1 on: December 01, 2017, 12:51:12 AM »
I just realized this also happens with the diagonal piece I just made and recently added to NL. So everyone must be warned about the other piece I made for pillar and fire as well.
everything by me: https://www.lemmingsforums.net/index.php?topic=5982.msg96035#msg96035

"Not knowing how near the truth is, we seek it far away."
-Hakuin Ekaku

"I have seen a heap of trouble in my life, and most of it has never come to pass" - Mark Twain


Offline Nepster

  • Posts: 1829
    • View Profile
Re: bug - display of certain terrain pieces
« Reply #2 on: December 01, 2017, 04:49:51 PM »
Interesting find. At the moment I suspect a bug in the player rendering code, but I am by no means sure of this.

Offline mobius

  • Posts: 2752
  • relax.
    • View Profile
Re: bug - display of certain terrain pieces
« Reply #3 on: December 02, 2017, 12:56:11 AM »
this may be a related issue so I posted it here:

this diagonal piece I also recently made for fire set displays differently in the player versus the editor. See the attachment. The editor view is on the left; players view on right.
It does not however; for whatever reason; display incorrectly when on eraser mode like the other pieces below.

note: I need to fix all of the pieces I recently added I think... now I'm not 100% happy with how they turned out but this should be decorational changes; I will not change their size so if already being used this shouldn't be a problem.
everything by me: https://www.lemmingsforums.net/index.php?topic=5982.msg96035#msg96035

"Not knowing how near the truth is, we seek it far away."
-Hakuin Ekaku

"I have seen a heap of trouble in my life, and most of it has never come to pass" - Mark Twain


Offline mobius

  • Posts: 2752
  • relax.
    • View Profile
Re: bug - display of certain terrain pieces
« Reply #4 on: December 02, 2017, 11:55:07 PM »
this may be a related issue so I posted it here:

this diagonal piece I also recently made for fire set displays differently in the player versus the editor. See the attachment. The editor view is on the left; players view on right.
It does not however; for whatever reason; display incorrectly when on eraser mode like the other pieces below.

note: I need to fix all of the pieces I recently added I think... now I'm not 100% happy with how they turned out but this should be decorational changes; I will not change their size so if already being used this shouldn't be a problem.

as discussed in IRC: this problem may or may not be due to the fact that I used GIMP to edit these terrain pieces and they have semi transparency. I will fix all of them (regardless if this is what's causing this or not) so this is no longer the case.
everything by me: https://www.lemmingsforums.net/index.php?topic=5982.msg96035#msg96035

"Not knowing how near the truth is, we seek it far away."
-Hakuin Ekaku

"I have seen a heap of trouble in my life, and most of it has never come to pass" - Mark Twain


Offline Nepster

  • Posts: 1829
    • View Profile
Re: bug - display of certain terrain pieces
« Reply #5 on: December 03, 2017, 10:21:15 AM »
When erasing pixels resp. adding transparency in GIMP, I would recommend using the option "Hard edge" in "Tool options" (which only appears if you have selected the eraser tool aka rubber). Otherwise partial transparency is added to neighboring pixels as well.

Offline Colorful Arty

  • Posts: 814
  • You are so loved!
    • View Profile
    • Colorful Arty's Youtube Page
Re: bug - display of certain terrain pieces
« Reply #6 on: December 08, 2017, 04:36:42 AM »
I've noticed one of the terrain pieces in my For Elise level is messed up. Strangely enough, that specific instance of the piece is the only time it happens. See how at the very top after the leftmost eighth note the terrain gets very thin for a bit? True physics mode shows that that section is just as thick as the rest of that horizontal pole, but it shows up looking thinner. I'm not sure what causes this bug, and again, it is only that instance of the terrain. I use that piece of terrain everywhere in the level, but it is only thin in that one area. Also, in the editor window, it displays correctly, and it only becomes thin when playing the level.

My Youtube channel where I let's play games with family-friendly commentary:
https://www.youtube.com/channel/UCiRPZ5j87ft_clSRLFCESQA

My Twitch channel: https://www.twitch.tv/colorfularty

My levelpack: SubLems
For New formats NeoLemmix: https://www.lemmingsforums.net/index.php?topic=4942.0
For Old formats NeoLemmix: http://www.lemmingsforums.net/index.php?topic=2787.0
For SuperLemmini: http://www.lemmingsforums.net/index.php?topic=2704.0

My levelpack: ArtLems
For New formats NeoLemmix: https://www.lemmingsforums.net/index.php?topic=4583.0

Offline ccexplore

  • Posts: 5311
    • View Profile
Re: bug - display of certain terrain pieces
« Reply #7 on: December 08, 2017, 05:38:13 AM »
I think it's actually that eighth note that is somehow "erasing" parts of the staff line resulting in the thinness.  You can actually see the same thing happening if you look all the way to the right near where the exit is.  That's the only other place you used that particular kind of eighth note in the level, and you'll notice the same thinness of the staff line there.  It's only slightly less noticeable because the exit covers up a part of it.
« Last Edit: December 08, 2017, 05:44:37 AM by ccexplore »

Offline Nepster

  • Posts: 1829
    • View Profile
Re: bug - display of certain terrain pieces
« Reply #8 on: December 09, 2017, 03:39:04 PM »
the culprit is again the L2 wooden diagonal pieces...

They appear fine in the editor; but when displayed in game when one of these pieces is set to erase it does not display correctly at all; see the images.

Instead of erasing as normal (the shape of the piece being outlined; a total block square is made.
I just fixed this for the next player version by changing the terrain erasing algorithm. This was a purely graphical bug that appeared when the pixel's alpha value was set to 0 (i.e. completely transparent), but the RGB values were non-zero (though they were totally irrelevant).

I've noticed one of the terrain pieces in my For Elise level is messed up. Strangely enough, that specific instance of the piece is the only time it happens. See how at the very top after the leftmost eighth note the terrain gets very thin for a bit? True physics mode shows that that section is just as thick as the rest of that horizontal pole, but it shows up looking thinner. I'm not sure what causes this bug, and again, it is only that instance of the terrain. I use that piece of terrain everywhere in the level, but it is only thin in that one area. Also, in the editor window, it displays correctly, and it only becomes thin when playing the level.
Assuming ccexplore didn't yet solve the issue, could you please send me the level file, so that I may have a look at it?