Hey, I just had an idea of simulating 3d physics using offscreen rendering, and never found anything about this on the internet.
So basically,
- imagine an object with some movement force falling somewhere in space,
- I would create an small viewport 1x1 with perspecive inside the object facing the way of the movement force,
- I would render depth values of whole scene into the framebuffer
- then i would just check the depth value if its too close - boom - collision = true;
Dunno if it’s worth the gpu and cpu time than regular collision detecting. Does anybody got any article about this or something similar?