Jump to content

LightNearRange command


Canardia
 Share

Recommended Posts

It seems that lights don't cast shadows when they are near an object.

You can see that in the shadow of the light cage half of the shadow is missing:

post-2-12666146826726_thumb.png

I know I could make the cage bigger, but it's really not that small, and it's a realistic size.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

  • 1 month later...

The near range inherited from the camera class is by default 0.1. We could probably change this for point lights so they can deal with closer objects.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Yay, it works with CameraRange(light,0.01,10);

 

(Default light CameraRange) // half of the shadows missing

CameraRange(light,0.1,10); // no light all, all black

CameraRange(light,0.01,10); // works great!

CameraRange(light,0.001,10); // no shadows at all, all light

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...