View Single Post
Old 03 October 2019, 11:26   #182
britelite
Registered User
 
Join Date: Feb 2010
Location: Espoo / Finland
Posts: 818
Quote:
Originally Posted by sandruzzo View Post
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?
britelite is offline  
 
Page generated in 0.04957 seconds with 11 queries