Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I need to implement a feature in RTS game where the area watched by enemy is covered with highlight.something similar to "Commandos " I don't know how it's called in professional circles. Any references to algorithms and papers?

Also I am interested in solution where the field is occluded by the obstacles.

share|improve this question
1  
Render the Field of Vision for each enemy as a transparent polygon (in 2D) or frustrum (3D). For a start: en.wikipedia.org/wiki/Field_of_view_in_video_games and en.wikipedia.org/wiki/Viewing_frustum . Ofc, you'd need to check for opaque objects and reduce the rendered poly/frustrum by the shape/volume obstructed by that object. –  sarahm Mar 28 '13 at 15:44
1  
Related, near duplicate: gamedev.stackexchange.com/questions/31323/… –  Byte56 Mar 28 '13 at 15:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.