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:
Problem with Lights "Attenuation Ramp Multiplier"
3282 3 1- Sadjad Rabiee
- Member
- 1391 posts
- Joined: Dec. 2010
- Offline
- anon_user_37409885
- Member
- 4189 posts
- Joined: June 2012
- Offline
- tamte
- 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
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
FX Supervisor
Method Studios, NY
- Sadjad Rabiee
- Member
- 1391 posts
- Joined: Dec. 2010
- Offline
-
- Quick Links