Quote:
Originally Posted by sandruzzo
Since in a game like Wolf3d walls are fixed as real size to positions, you can prerotate one blocks, and in realtime, you have only to put into right position. Example: I've used wall as 64*64 unit, so I prerotated them into a table, then in realtime, I pick-up the right angle based upon Camera rotation. To have the right position on screen I did this: Just rotated walls' pos and voilĂ ! I think I can even precalculate it. About Projection, I maybe we can use 1/z to do One Divs and 2 muls, instead 2 divs.
|
Just to be clear, are you talking about rebuilding the visible portion of the map with prerotated blocks? Which would then be used for rendering the walls on screen?