Hello,
I want to create an effect like in these images, meaning that for a cubic shape, I want to always show the faces that are facing the camera. Three faces should always be visible. Do you have any ideas for a method to achieve something like this?
Just to clear up any possible doubt: since the camera and the visible face are facing each other, shouldn’t the dot product be negative? Even though they’re aligned, two vectors pointing in opposite directions are supposed to give a negative result. So, how is it possible that faces with a direction opposite to the camera are the ones that are visible?
It depends what you consider to be the facing direction of a wall – the face towards the inside or outside.
In any case, the sign of the product determines whether to show or hide the wall. Depending on how your walls are designed, you pick whether + is show and - is hide; or + is hide and - is show.
2 Likes