Results 1 to 4 of 4

Thread: spot light effect in platform game

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    12

    Question spot light effect in platform game

    what would be a good way to simulate a spot light effect for a 2d game ?

    the way i would do it if i could - would be to draw everything on the backbuffer, put a mask on it in the shape of a triangle (well something more complex but triangle would do for now) and then flip to the primary ...

    the thing is i want to be able to rotate the mask so that i could have my hero holding a torch so when he walks around all you see is a tirangle infront of him and nothing else ...

    more advanced i would want to have tranperancy on the edges of the triangle but not required at this moment....

    any advice would be great .. thanks
    note - i am using dx7
    Last edited by mydogma; Nov 19th, 2002 at 04:54 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width