New answers tagged

0

This guy had the same problem, he needed to ping-pong between 2 textures for the alternating of read/write during rendering. I did that now, AND IT WORKS. Its impossible to use one and the same renderTarget in one and the same frame for reading AND writing, you have to use 2 renderTargets. One for reading and one for writing. And in the next frame you have ...


1

Recalculating surface normals for a given triangle is simple: Given a triangle is composed of 3 points (p0, p1, p2), The face normal(Nf) can be defined as: Nf = (p1-p0) x (p2-p1) ) + ( (p2-p1) x (p0-p2) ) + ( (p0-p2) x (p1-p0) -------------------------------------------------------------------- | (p1-p0) x (p2-p1) ) + ( (p2-p1) x (p0-p2) ) + ( (...


Top 50 recent answers are included