Jump to content

  • Log In with Google      Sign In   
  • Create Account


Spot/Circle Light


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 walsh06   Members   -  Reputation: 643

Like
0Likes
Like

Posted 15 July 2013 - 07:34 AM

I have just started a new game in XNA and I want to add some light effects to the game. Basically Id like a light to centre on the player and only light up what is around the player in a certain radius. The game is a 2d dungeon crawler and top down so the light need only be a circle surrounding the player. So could anyone point me in the direction of a tutorial for this type of lighting. Thanks for any help.



Sponsor:

#2 Andy474   Members   -  Reputation: 672

Like
2Likes
Like

Posted 15 July 2013 - 10:20 AM

There was a tutorial on how todo it on Gamedev .. i'll see if i can find a link.

However there are 2 different techniques depending on what you need.

 

Have a look at this Kypton XNA i use this in my framework atm, works very nicely.

 

this is a far simpler technique and may give you what you want :) Simpler technique



#3 walsh06   Members   -  Reputation: 643

Like
0Likes
Like

Posted 16 July 2013 - 04:18 AM

I think the simple technique would be perfect actually. Im not trying anything too complex with shadows and stuff so that circle around the player would seem to fit. Thanks for that.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS