hey, I've got this huge problem with one of my little test-programs!I
don't want to ask you for some code, but some Idea how to solve my
problem! It istn' C++ specific at all, just because I started to write
the programm in c++...
anyway:I've got a big polygon with a few smaller polygon-blocks inside
them. The Polygons represent a house or someting and the smaller ones
are visibility-blocking stuff like walls or something else. And I've
got a little man or whatever (the blue block).Everythi ng I've got are
the x and y coordinates of these polygons.Now I would like to somehow
draw a surface that represents the area, that my little blue man could
see from his position.
The above Image is drawn in Paint, but that is almost exactly what I
want(the red area)I already painted these black lines from the blue man
to the corners, I think thats how I have to programm it but I'm not
very shure about that and it would be very nice if you could either
point me to some tutorial or take the time to explain it to me, again I
don't need some code but an Idea how to do this!
thanks in advance
don't want to ask you for some code, but some Idea how to solve my
problem! It istn' C++ specific at all, just because I started to write
the programm in c++...
anyway:I've got a big polygon with a few smaller polygon-blocks inside
them. The Polygons represent a house or someting and the smaller ones
are visibility-blocking stuff like walls or something else. And I've
got a little man or whatever (the blue block).Everythi ng I've got are
the x and y coordinates of these polygons.Now I would like to somehow
draw a surface that represents the area, that my little blue man could
see from his position.
The above Image is drawn in Paint, but that is almost exactly what I
want(the red area)I already painted these black lines from the blue man
to the corners, I think thats how I have to programm it but I'm not
very shure about that and it would be very nice if you could either
point me to some tutorial or take the time to explain it to me, again I
don't need some code but an Idea how to do this!
thanks in advance
Comment