2.5D / 3D "pixel perfect" collision detection via 2D masks?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By raould
:warning: Old Version Published before Godot 3 was released.

There’s an old hack of projecting 3D to 2D where each object is a solid color, and each object is a different color. Then you see which blobs of solid color overlap in the pixel buffer. That tells you which objects are colliding (only useful for some setups of course). Any way to do that in Godot maybe?

:bust_in_silhouette: Reply From: raould

duplicate of 2.5d / 3d pixel perfect collision detection? - Archive - Godot Forum because i didn’t see my original question show up. sorry. (would be nice if this q&a web site showed me all my questions in my account view!)

Four years and still nobody answering that ?
Yeah, that means the topic is too hard to achieve. @raoul
Well, answer is, you can do that by either extending the 2D functionalities of the engine, or by making a custom plugin. Here’s not the right place to write how to do it though, it would require too much space, many pages of technical information actually. All I can tell is, you have to know how 3D collisions work and get a certain level in computer graphics programming first. Yeah, going from scratch, today still, there’s NO BOOK, video or Article fully explaining the way to solve the problem. Since this is an issue, I’ll engage myself to write a book on that. But many years will pass first, because I haven’t started yet and I still don’t have to start.

NewBro00 | 2019-10-10 17:26

:bust_in_silhouette: Reply From: NewBro00

Aside from coding, you will need linear algebra, physics and computer graphics programming to handle that. Nobody in the whole world still has a perfect solution to that and NOBODY, including the many devs behind the different popular game engines, took the initiative to implement such system. SAD, but that is.