Live data from Hacker News

Show HN: 2D field of view demo

jsfiddle.net

41–50 of 80 posts

Re: Show HN: 2D field of view demo

#41

In case someone is interested in the design: https://bbcdn.githack.com/rmsundaram/tryouts/raw/e06259fffad... Devising the algorithm took around a month; did it in my free time. The implementation took a week, in HTML5 Canvas/JavaScript. Doing a 360°, not-bound-by-distance FoV would have been simpler, but FoV limited by both angle and distance took time. The idea is to find the field of view of an observer on a map wi…

Cool. Verifying the old Engineering adage about a month in the lab saving you a day in the library. Or 10 minutes on Google these days.

Still, sounds like a fun time. I have my own version of this sitting around on a floppy disk somewhere, done at a point in time where floppy disks existed (possibly even 5 1/4" ones).

Re: Show HN: 2D field of view demo

#42
post #40

So... Can anyone explain what is so special or interesting about this? Both the idea and the algorithms are decades old and were already used in the 80s and 90s computer games like Wolf3D and Doom.

Most of them are closed, at least I couldn't find one which fit my needs and also none explain what they do very well.

But hey, I can't answer your question, since I cannot upvote on my own post, so I'm not the one calling it interesting ;)

Re: Show HN: 2D field of view demo

#43
post #40

So... Can anyone explain what is so special or interesting about this? Both the idea and the algorithms are decades old and were already used in the 80s and 90s computer games like Wolf3D and Doom.

Its not. We've been in the Eternal September of Hacker News for a bit now. This is interesting to all the people learning javascript/programming/graphics for the first time and they're a sizable portion of the users.

Re: Show HN: 2D field of view demo

#44

In case someone is interested in the design: https://bbcdn.githack.com/rmsundaram/tryouts/raw/e06259fffad... Devising the algorithm took around a month; did it in my free time. The implementation took a week, in HTML5 Canvas/JavaScript. Doing a 360°, not-bound-by-distance FoV would have been simpler, but FoV limited by both angle and distance took time. The idea is to find the field of view of an observer on a map wi…

Cool. Verifying the old Engineering adage about a month in the lab saving you a day in the library. Or 10 minutes on Google these days. Still, sounds like a fun time. I have my own version of this sitting around on a floppy disk somewhere, done at a point in time where floppy disks existed (possibly even 5 1/4" ones).

Thanks! Spent quite some time searching for the algorithm in Google, DDG, what-have-you, but didn't find something that does exactly what I want and also none that explains it lucidly for anyone who wants to understand it.

Re: Show HN: 2D field of view demo

#47
post #43
post #40

So... Can anyone explain what is so special or interesting about this? Both the idea and the algorithms are decades old and were already used in the 80s and 90s computer games like Wolf3D and Doom.

Its not. We've been in the Eternal September of Hacker News for a bit now. This is interesting to all the people learning javascript/programming/graphics for the first time and they're a sizable portion of the users.

It's also interesting to some of the people who have been developers for almost two decades and haven't yet seen such an implementation in the browser before, or, you know, find it interesting to see people come up with solutions to things themselves. Good on OP for giving it a crack.

Re: Show HN: 2D field of view demo

#48
post #43
post #40

So... Can anyone explain what is so special or interesting about this? Both the idea and the algorithms are decades old and were already used in the 80s and 90s computer games like Wolf3D and Doom.

Its not. We've been in the Eternal September of Hacker News for a bit now. This is interesting to all the people learning javascript/programming/graphics for the first time and they're a sizable portion of the users.

[deleted]

Re: Show HN: 2D field of view demo

#50

In case someone is interested in the design: https://bbcdn.githack.com/rmsundaram/tryouts/raw/e06259fffad... Devising the algorithm took around a month; did it in my free time. The implementation took a week, in HTML5 Canvas/JavaScript. Doing a 360°, not-bound-by-distance FoV would have been simpler, but FoV limited by both angle and distance took time. The idea is to find the field of view of an observer on a map wi…

Got a bug here:

http://pasteboard.co/1vhAc3yM.png

Post reply on HN