Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #479: Shadow bug?
Product:
TV3D SDK 6.5
Language:
C++
Current State:
Closed
Resolution:
Fixed
Created On:
September 21st, 2005
Last Modified:
October 17th, 2005
Reported By:
HellishER
Seams like i got two shadows when standing in a sloop.

(Link)
(Link)
(Link)

Lightning code:
CTVLightEngine *pLights = new CTVLightEngine;
pLights-SetGlobalAmbient(0.2, 0.2, 0.2);
pLights-SetSpecularLighting(true);

int Ljus1;
Ljus1 = pLights-CreateDirectionalLight(&Vector3(-1, -1, 0), 0.2, 0.2, 0.2, "Ljus1",0.3);
pLights-SetLightProperties(Ljus1, true, true, false);

Player.pActor-SetLightingMode( cTV_LIGHTING_MANAGED, 1, 1);
Player.pActor-SetShadowCast(true, true, false);

Comments:

Posted by Zaknafein on October 17th, 2005 at 4:41 AM
You might wanna check (Link)
I've had similar problems and my fix (proposed by Sylvain) is there.
Posted by SylvainTV on October 17th, 2005 at 12:53 PM
Yes, basically you need to reduce shadow length here, so reduce light radius (yes even for a directional light :)

Changing light radius for a directional light changes the max length of all shadows cast by this light.