3D 1st Person Engine - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

3D 1st Person Engine

Hey, everyone.
I'm making a 1st person game that resembles a Wolfenstein like engine, and now I'm at the part where I need to figure out how to get it so the game knows which walls are hidden behind others (thus not displayed), and which ones need to be displayed.
I've been thinking about it and I can come up with a couple of algorithms, none of them that guarantee to work 100% of the time though. Does anyone have an approach that worked for them, or know of one that works best?

Thanks alot

Comments

  • GiantGiant Posts: 225Member
    Hi.
    Wolfenstein was written using a method known as ray casting. It simulates light, reversed!!! What the hell does that mean??? Instean of light being bounced off objects (walls ) etc and then into your eye, it shoots rays out of your eye, until it hits something then draws it.

    If you want to check out an example of a ray caster I wrote check out the download section of

    http://www.stupidcoders.cjb.net/

    Giant

    : Hey, everyone.
    : I'm making a 1st person game that resembles a Wolfenstein like engine, and now I'm at the part where I need to figure out how to get it so the game knows which walls are hidden behind others (thus not displayed), and which ones need to be displayed.
    : I've been thinking about it and I can come up with a couple of algorithms, none of them that guarantee to work 100% of the time though. Does anyone have an approach that worked for them, or know of one that works best?
    :
    : Thanks alot
    :


Sign In or Register to comment.