Live data from Hacker News

Show HN: 2D field of view demo

jsfiddle.net

71–80 of 80 posts

Re: Show HN: 2D field of view demo

#72

Earlier quoted context omitted.

I did something even worse with WebGL, shooting a ray from every light source and view point to every pixel on the screen in the pixel shader (so something has to be in LOS and and lit to be seen). http://i.imgur.com/ZJhr4Ll.png The "player" is sitting on the "wall" of a room, to the right of it there are stairs going "downwards", it's all just a heightmap. Needless to say it's kinda slow, but I was surprised how nea…

Me too. Though it's just rendered as a 2D raster: http://monkeybrains.net/viewshed I'm trying to build something that can be used across the DSM we have of SF for better planning our wireless links.

Oh, interesting!

Shouldn't it be possible to then feed that into a fitness function and randomly "evolve" the "perfect" distribution, or is that silly?

Re: Show HN: 2D field of view demo

#73

Earlier quoted context omitted.

Me too. Though it's just rendered as a 2D raster: http://monkeybrains.net/viewshed I'm trying to build something that can be used across the DSM we have of SF for better planning our wireless links.

Oh, interesting! Shouldn't it be possible to then feed that into a fitness function and randomly "evolve" the "perfect" distribution, or is that silly?

Totally possible. Though getting data out of WebGL can be hairy. And actually getting on the rooftops of the ideal buildings is a whole nother story.

Re: Show HN: 2D field of view demo

#74

Earlier quoted context omitted.

Oh, interesting! Shouldn't it be possible to then feed that into a fitness function and randomly "evolve" the "perfect" distribution, or is that silly?

Totally possible. Though getting data out of WebGL can be hairy. And actually getting on the rooftops of the ideal buildings is a whole nother story.

Make ease of access (and how much it's wanted there, and so on) part of the fitness function, too :)

And future configurations could also take into account how many things you'd have to move, or whatnot (I have no idea about what you're doing, I just imagine that's not something you do once and never change, right?).

Re: Show HN: 2D field of view demo

#75

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…

I've also done something similar about 10 years ago. I'm curious if you've ever seen my (unfinished) project:

https://vimeo.com/62844255

https://github.com/shurcooL/eX0

Re: Show HN: 2D field of view demo

#76

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…

I've also done something similar about 10 years ago. I'm curious if you've ever seen my (unfinished) project: https://vimeo.com/62844255 https://github.com/shurcooL/eX0

No, I have not come across it until now but from the screenshot it looks nice.

Re: Show HN: 2D field of view demo

#77

Good job OP. I personally found Eric Lippert's 6-part series (and playable Silverlight demo) on the subject fascinating. I didn't notice it referenced in your design document, so here it is. https://blogs.msdn.microsoft.com/ericlippert/tag/shadowcasti...

Actually I've not read it, will read it some time, bookmarked :)
Post reply on HN