Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: What transform space is used by Actor3D->LightPosition?  (Read 2627 times)

0 Members and 1 Guest are viewing this topic.

ErV

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 54
  • I regret nothing!
    • View Profile
What transform space is used by Actor3D->LightPosition?
« on: October 13, 2006, 01:32:55 PM »

What transform space is used by Actor3D->LightPosition? I'm not sure if it's "world" or "view". I know, it's relative to the actor, but what about rotations? Does this space use same axes/rotation as "World" transform? Or is it somehow aligned to "camera" transform?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: What transform space is used by Actor3D->LightPosition?
« Reply #1 on: October 13, 2006, 02:01:03 PM »

It's in world space. It takes actor's world position, adds the values to it, and that's the resulting light position. It's affected by actor's scale, though.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

ErV

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 54
  • I regret nothing!
    • View Profile
Re: What transform space is used by Actor3D->LightPosition?
« Reply #2 on: October 13, 2006, 07:05:45 PM »

It's in world space. It takes actor's world position, adds the values to it, and that's the resulting light position. It's affected by actor's scale, though.
Thanks.

One more question.:)

How is it affected by scale? Do I need to multiply LightPosition components by scale and then add actor position to get resulting LightPos?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: What transform space is used by Actor3D->LightPosition?
« Reply #3 on: October 13, 2006, 07:15:32 PM »

Yes, that's right.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.033 seconds with 23 queries.