News for hackers. Stuff that matters.
Re:Show HN: 2D field of view demo by PavlovsCat on Tuesday June 07, 2016 @05:06AM (#11853250)
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 neat it came out considering how little I put in. I'm sure someone who knows what they're doing (which isn't me) could do the same a lot faster and prettier, since I really did it in the most plump way possible.

Re:Show HN: 2D field of view demo by MonkeyDan on Tuesday June 07, 2016 @03:08PM (#11856920)
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.

Re:Show HN: 2D field of view demo by PavlovsCat on Wednesday June 08, 2016 @05:08AM (#11860945)
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 by MonkeyDan on Wednesday June 08, 2016 @12:15PM (#11863280)
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 by PavlovsCat on Wednesday June 08, 2016 @12:28PM (#11863417)
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?).