home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics
- Path: sparky!uunet!spool.mu.edu!agate!ames!purdue!yuma!hallch
- From: hallch@CS.ColoState.EDU (christopher hall)
- Subject: 3-D Graphics Help
- Sender: news@yuma.ACNS.ColoState.EDU (News Account)
- Message-ID: <Dec28.230257.45785@yuma.ACNS.ColoState.EDU>
- Date: Mon, 28 Dec 1992 23:02:57 GMT
- Nntp-Posting-Host: handel.cs.colostate.edu
- Organization: Colorado State University, Computer Science Department
- Lines: 46
-
- Hi,
-
- I am working on programming some 3D texture graphics for a computer game
- that I am writing with some friends of mine. The closest examples I know of
- would be the games Wolfenstein 3D or Ultima Underworld. Although W3D appears
- 3-D I have developed something beyond that game's format which is (IMO)
- closer to the term three-dimensional. I have developed the code but in
- working with it I have found that the algorithm I used to search for the
- intersection of a vector to a location in the 3-D space is too slow. Without
- drawing the new frame the code currently can do the other necessary
- calculations at a rate of 11 frames/sec (on my 386/25mHz) I fear that as soon
- as I have added the drawing code and the environment expands (i.e. a bigger
- building) that the number of frames/sec will be too few. If you have any
- experience with 3D graphics in general or 3D mathematics please post a reply.
-
- Here is a summary of the problem. You are given a rectangular solid
- which is constructed from a series of cubes. The cubes are aligned and thus
- there are no peculiarities about the arrangement of the cubes. A cube is
- selected and from inside the cube several ray/vectors are projected. Each
- cube in the solid has some surfaces which are painted white and the rest
- are painted black. I need to determine QUICKLY which white square a
- ray/vector will hit first. Currently I am forced to use 3 searches with
- different vectors each time and then compare the results to find the correct
- location.
-
- Any ideas that might work towards solving the problem would also be
- appreciated. I really am only searching for algorithms but if you have some
- examples of code which I would be allowed to use please send those also. And
- if you know of some reading material that might solve my problem please tell
- me what that is also.
-
- Thanks in Advance,
-
- Chris Hall
-
- P.S. Please send responses by e-mail. If there is enough interest I will
- post a response in about 2 weeks.
-
-
- /--------------------------------------------------------------------------\
- | The world cannot end today because it is tomorrow in Australia... |
- | |
- | |________ Chris Hall |
- | ||OOO||________> hallch@handel.colostate.edu |
- | | |
- \__________________________________________________________________________/
-