Not logged inOpenClonk Forum
Up Topic Development / Developer's Corner / Killing single pixels
- - By Sven2 [de] Date 2013-02-10 12:53 Edited 2013-02-10 12:56
ala keeps bugging me with single pixels he presumably gets stuck in. I wrote a patch that automatically converts any pixel that is surrounded by less than 2 solid pixels to PXS. It's pretty simple actually; just ~10 lines of code. I'd like some feedback what you think about the issue before pusing a patch.

Currently enabled for DigFree materials only, because the idea of creating loose granite pixels that might get stuck somewhere else frightens me a bit.

As a neat side effect, when you dig tunnels, earth sometimes crumbles from the ceiling, which looks rather nice.

(Patch attached)
Attachment: KillSingleDigFreePixels.patch - Released under the ISC license. (2k)
Parent - By Zapper [de] Date 2013-02-10 13:57
I'd say we try it. Sounds interesting
Parent - By ala [nl] Date 2013-02-10 17:29
Never getting stuck again!
\o\ Yeah! /o/
Parent - - By Sven2 [de] Date 2013-02-10 18:29
Worked nicely in acid gold mine. Pushed it. Does anyone have a good idea of what to do with single pixels of rock/granite?
Parent - By Zapper [de] Date 2013-02-10 18:39
Where do they come from? Only from explosions, right?
Maybe to a fast check for single pixels after explosions and just remove them as well? No idea whether that would be sensible/fast enough.
Parent - - By ker [de] Date 2013-02-10 18:56
make them attracted to large chunks of rock/granite
Parent - By Nachtfalter [de] Date 2013-02-10 19:44
<3
Reply
Parent - - By Pyrit Date 2013-02-10 20:55
Convert them into sand/gravel!
Parent - By Mortimer [de] Date 2013-02-11 10:23
That sounds good.
Reply
Parent - By Armin [de] Date 2013-03-10 12:32
- I think a change in the object collision/contact code would be much better.
- This change doesn't allow frozen water.
- Acid creates single pixels, too.
- And I have no problem with one pixel walls at all.
- Regarding material pixels are removed in a special way this does break all DigFree commands.

>As a neat side effect, when you dig tunnels, earth sometimes crumbles from the ceiling, which looks rather nice.


Sometimes?!

>Currently enabled for DigFree materials only


I remeber single rock pixels when blasting granite in CR but I see no problem here again.

Even without polygon landscape I don't see a need for this. Clonks have shovels and Clonks without shovels only occur in very static/scripted adventure maps which have no rare pixels then. And the original solution for this problem was that the shovel works every time, wasn't it?
Up Topic Development / Developer's Corner / Killing single pixels

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill