User Tag List

Results 1 to 2 of 2

Thread: Spotlight where the camera is facing

  1. #1
    Clicker Fusion 2.5 DeveloperSWF Export Module

    Join Date
    Sep 2006
    Posts
    511
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Spotlight where the camera is facing

    Is there a way to set the spotlight so that it is always in front of whatever direction the camera is facing?

    thx

  2. #2
    Clicker Multimedia Fusion 2

    Join Date
    Nov 2009
    Location
    This side of the equator
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Spotlight where the camera is facing

    If you are only using one light source ( the spotlight ) you could call the Apply Lights action only once at start and not on redraw, this way it won't be affected by camera transformation and will appear to follow the camera. However, if you need other light sources that shouldn't follow the camera you must manually set the position and direction of the spotlight to that of the camera. Setting the position is simple enough but the direction is trickier. If you only rotate the camera about the y axis ( camera yaw ) then you can set spotlight direction to: X = sin( yaw ), Y = 0, Z = cos( yaw ). Or perhaps it was X = -sin( yaw ), I'm not sure.

Similar Threads

  1. Spotlight images?
    By Outcast in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 16th December 2013, 12:39 PM
  2. Clickteam User Spotlight # 54
    By Kisguri in forum News
    Replies: 0
    Last Post: 3rd February 2010, 03:32 PM
  3. Spotlight system, plz?
    By Karasu in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 18th April 2007, 04:13 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
  •