Strange effect on untextured parts of the level

Started by
3 comments, last by glportal 10 years, 1 month ago

I get this when I add meshes without a texture or like in this example move a wall to look outside of the level.

Ideas on why this might happen are greatly appreciated. If I left out important information, feel free to tell me

and I will tell you what you need to know. Thank you in advance.

https://vimeo.com/89168671

Advertisement

Without looking at the code or knowing what your doing and what not my guess is that...

You draw the texture.

You move and don't have new data in that place of the screen to replace the previous data so it repeats it.

What you need to do is clear the data that's in the screen buffer or whatever it's called that tells the screen to show something, Or you need to add a blank texture so that the screen knows not to just keep that previous texture in that space, but that it is empty.

That's my guess... though i can't help you on the code to fix it as that area is the area i have problems with and is why I use unity.

Look more like he's not clearing the color/depth buffer to me

Look more like he's not clearing the color/depth buffer to me

+1 and this glitch is commonly known as the "hall of mirrors" effect. You often ran across it in older games made during times when clearing the screen was actually pretty expensive, so games made sure every pixel of the screen was indirectly repainted one way or the other (e.g. closed geometry). When there was a hole in the geometry or you noclip'd out of the world you would occasionally see this bug in action.

I'm sure it has also been used in creative ways in some other games cool.png

“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”

Thank you. This fixed the problem.

Bacterius:

Thanks for mentioning hall of mirrors.

This topic is closed to new replies.

Advertisement