home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!sgigate!odin!fido!zola!zola!tomw
- From: tomw@orac.esd.sgi.com (Tom Weinstein)
- Newsgroups: comp.graphics
- Subject: Re: Fast 3d bitmap polygons ?
- Message-ID: <TOMW.92Sep9153540@orac.esd.sgi.com>
- Date: 9 Sep 92 22:35:40 GMT
- References: <1992Sep9.140505.9495@ida.liu.se>
- Sender: news@zola.esd.sgi.com (Net News)
- Reply-To: tomw@esd.sgi.com
- Organization: Silicon Graphics Inc.
- Lines: 29
- In-Reply-To: d91frera@odalix.ida.liu.se's message of 9 Sep 92 14:05:05 GMT
-
- In article <1992Sep9.140505.9495@ida.liu.se>, d91frera@odalix.ida.liu.se (fREDRIK rAMSBERG (?WildcarD?)) writes:
-
- > Does anyone know of a good algorithm for drawing 3D bitmap polygons?
- > If you've seen 'Operation Wolf 3D', you know exactly what I'm talking
- > about! In case you haven't, I'll try to describe it;
-
- > You are walking through corridors and rooms, and all the walls are
- > consisting of bitmap pictures, ie Hitler portraits and brick walls.
-
- > It's all in real time, and the animation is lightning fast. The
- > resolution of the bitmaps isn't that great, but definitly good enough
- > if you can do it at that speed. There are far too many pictures, for
- > them to have been predefined in memory at all different angles and distances.
-
- > Any ideas, anyone?
-
- Wolfenstein 3D cheats. It's not really drawing 3D textured polygons.
- What it's doing is sort of a cross between ray tracing and bitmap
- decimation. For each column of pixels on the screen, they shoot a ray
- out and find which wall it intersects with. From the length of the ray,
- they know the top and bottom coordinates of the wall in screen space,
- and from the intersection point of the ray with the wall, they know
- which column to use from that wall's texture. By decimating or
- duplicating pixels from that column, they resize it to be the correct
- height for the screen.
-
- --
- Love is a conveyor belt of | Tom Weinstein tomw@orac.esd.sgi.com
- warmth -- Jackie Chan | tomw@bears.ucsb.edu
-