Problem with Lights "Attenuation Ramp Multiplier"

   3282   3   1
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
Hi
I created a simple camera and I used simple Null for parenting of the Camera ,Then I changed Uniform Scale for the Null ,Now my question is :

Why If I use “Attenuation Ramp Multiplier” in the Lights ,I take different result in the Rendering with different Uniform Scale !? :?

I created a simple project about this problem :arrow:

Attachments:
JK_Light_RampMultiplier_Problem.hip (183.3 KB)

https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
4189 posts
Joined: June 2012
Offline
ya - looks buggy
User Avatar
Member
8598 posts
Joined: July 2007
Offline
it's not about light attenuation but your camera

because all shading is done in camera space, the scale of the camera is important
and because you've scaled camera parent you scaled camera as well and that can mess up a lot of things not only light attenuation, but all your displacements, bias length, SSS attenuation, etc.

to correct that you can simply unhide Scale Parameter on camera and type following expressions in respective scale xyz fields
origin(opinputpath(“.”,0), “”, “SX”)
origin(opinputpath(“.”,0), “”, “SY”)
origin(opinputpath(“.”,0), “”, “SZ”)

it will make sure that you camera scale in the world space is 1 no matter where in hierarchy it is and how many parents of it are scaled

or you can use chops, Blend Obj, or any other way to simply make sure that your camera scale stays 1
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
Woooooooooow ,That's Great tamte

Really Really Thanks for your solution ,It's Working Perfectly 8)

Some simple problems Solving just with really professional users ,Not with every ones ,Exactly Like you My Friend:!:
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
  • Quick Links