Sign in to follow this  
vlad777

doom1 texture map code

Recommended Posts

Can anyone tell me what part of the doom1 souce code (function,loop or whatewer) is resposable for mapping textures. I am wondering about how it is done and how it is optimised for just floors and walls. (From mathematical and programing aspects.) It is too much for me to go over the whole code just to find this out. Thanks.

Share this post


Link to post
Share on other sites
I don't have the code handy, but I can tell you that it is optimized for walls by texturing in vertical scanlines (like wolf3d, but there are 2 walls, one on the top and one on the bottom). Because there's no slope and no tilt, and all walls are essentially quads (allowing them to be stored as 2d lines), there's no need for generalized triangle texture mapping.

Not sure about floors, but it may be similar in nature.

I'm sure if you google around a little you'll see a zillion explanations without having to find that exact function you seek.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this