Search found 3 matches

by Lighthink
Mon Dec 08, 2014 6:30 pm
Forum: Beginners Help
Topic: Directional light shadows acting like from point light
Replies: 5
Views: 755

Re: Directional light shadows acting like from point light

Thanks for the quick answer, it really shed some light on that matter for me. Now I do get correct shadows in my scene by setting the position of the light to ( -direction * 100000 ). I've also noticed that when I tried to set the position of the light scene node after creating it, it did not make a...
by Lighthink
Mon Dec 08, 2014 2:38 pm
Forum: Beginners Help
Topic: Directional light shadows acting like from point light
Replies: 5
Views: 755

Re: Directional light shadows acting like from point light

There is no code to handle directional lights. What does that mean? Does ti mean that there is no code to handle shadows from directional lights, so we should not even use it, and the point-like behavior is left as a security measure to prevent crashes or other malfunctions when trying to cast shad...
by Lighthink
Sun Dec 07, 2014 1:09 pm
Forum: Beginners Help
Topic: Directional light shadows acting like from point light
Replies: 5
Views: 755

Directional light shadows acting like from point light

Hello! I've set up a directional light to mimic the sun in an open area and that's how I'm doing it:     irr::scene::ILightSceneNode *pLight = pSceneMgr->addLightSceneNode( 0, irr::core::vector3df( 0, 0, 0 ), irr::video::SColorf( 0.8, 0.8, 0.8 ) );       pLight->setLightType( irr::video::ELT_DIRECTI...