Dead Hackers Society
Other BBSes »
 
 

68k Inside

Sommarhack 2024

Silly Venture 2024 SE
Demoscene  Coding  CT60  Buy/sell

Atari demoscene BBS
 
Re: Raycasting anyone ?
Posted by: dml Jun,28.2016-13:30 

"From what I heard on the web raycasting was mostly used in 3D games such as Doom tho. Main drawback was that you couldn't have stairs or slopes, right ?"

Raycasting is *one* way to determine the nearest point of contact between a point (such a the eye) and an occluding surface, like a wall. This helps solve visibility and draw-ordering at the same time. It is most often taking the form of a blind march across a grid of cells until a solid cell is contacted.

Wolf3D uses raycasting. Doom does not (it uses a BSP as an alternative way to determine visibility and ordering).


The game demo/example I did on STE does use raycasting, and does implement stairs and moving platforms with it, by combining some Doom-like drawing logic with Wolf-like raycasting across a regular grid of cells. Raycasting is a type of evaluation, not a type of visual effect.

Angled walls and floors could be done with raycasting, but probably with terrible efficiency for the latter, so other methods work better (IMO).

I wouldn't use the term 'raycasting' for effects which have been fully offline-calculated - e.g. tunnel effects (which are usually a type of fast image transformation). Raycasting involves testing a ray against some 'content' in order to determine what lies in its path, when this information can't be practically established somehow in advance...










[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
Raycasting anyone ? s_t_s Jun,17.2016-08:51
  Re: Raycasting anyone ? evil Jun,23.2016-22:47
    Re: Raycasting anyone ? s_t_s Jun,25.2016-11:49
      Re: Raycasting anyone ? evil Jun,25.2016-12:48
        Re: Raycasting anyone ? s_t_s Jun,25.2016-18:57
          Re: Raycasting anyone ? wietze Jun,26.2016-17:49
            Re: Raycasting anyone ? s_t_s Jun,26.2016-18:27
          Re: Raycasting anyone ? mikro Jun,27.2016-00:39
  Re: Raycasting anyone ? Cooper Jun,27.2016-07:48
    Re: Raycasting anyone ? s_t_s Jun,28.2016-08:57
      Re: Raycasting anyone ? dml Jun,28.2016-13:30
        Re: Raycasting anyone ? s_t_s Jun,28.2016-14:50
          Re: Raycasting anyone ? mikro Jun,29.2016-00:32
            Re: Raycasting anyone ? s_t_s Jun,29.2016-11:40


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson