4 Replies - 3355 Views - Last Post: 01 February 2013 - 07:37 AM

#1 CodeMonkey65  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 02-January 13

creating a flashlight

Posted 31 January 2013 - 10:53 AM

Hi all

Just wondering if anyone can provide some tips on coding a 3D flashlight? I have read XNA Game Studio 2nd Edition and have read the chapter the covers lighting. I have been able to change the brightness of the light example but haven't been able to figure out how to change the ambient lighting, so that the lighting is more pronounced.

Also, I haven't been able to figure out how to "focus" the light used in the example.

Thanks for any help in this matter! I am not creating a game at the moment, just playing with the code from the book.
BTW, I have moved onto "Learning XNA 4.0" using VC# 2010

Is This A Good Question/Topic? 0
  • +

Replies To: creating a flashlight

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9491
  • View blog
  • Posts: 35,822
  • Joined: 12-June 08

Re: creating a flashlight

Posted 31 January 2013 - 10:57 AM

Like with HLSL?

http://www.riemers.n...arp/series3.php
Was This Post Helpful? 0
  • +
  • -

#3 CodeMonkey65  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 02-January 13

Re: creating a flashlight

Posted 31 January 2013 - 12:35 PM

I had looked at that tutorial briefly. I didn't really deleve into the code, but I will give it a second look.

I am basically looking for create a flashlight effect similiar to most popular horror survival games.

Thanks for the link btw
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9491
  • View blog
  • Posts: 35,822
  • Joined: 12-June 08

Re: creating a flashlight

Posted 31 January 2013 - 12:42 PM

Yeah.. that's what it covers.
Was This Post Helpful? 0
  • +
  • -

#5 CodeMonkey65  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 02-January 13

Re: creating a flashlight

Posted 01 February 2013 - 07:37 AM

Okay, thanks
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1