2 ms·
Great article - I enjoyed it and it makes me want to play more with 3D rendering! The camera placement and black shading work seems excessive - I think it coul
by kbutler 9y ago
Great article - I enjoyed it and it makes me want to play more with 3D rendering!
The camera placement and black shading work seems excessive - I think it could be simplified by having the camera behave as a physical object that must obey collision rules in the game world.
So desired camera lcoation is displacement XYZ relative to the player, but the displacement is reduced by collisions as needed until at the player's location, yielding a first-person view if the player is right next to a wall.
Then the only blocking surfaces would be the player avatar itself, which could be rendered transparent as needed.