Announcement

Collapse
No announcement yet.

dominant directional light prevents muzzle flash light from projecting shadow?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    dominant directional light prevents muzzle flash light from projecting shadow?

    http://vid1289.photobucket.com/album...pswm8y8l6i.mp4

    As seen in the video, when environment light type is a dominant directional light; the muzzle flash light from the gun does not project a shadow of the female on the wall. Could you please tell me why and how to fix?

    [It works well (shadow of the female on wall) if environment light type is directional light or point light].
    [The female is a pawn extended from UTPawn].


    #2
    You're extending from UDKExplosionLight?

    Take a look in it's defaulproperties:
    Code:
    defaultproperties
    {
    	HighDetailFrameTime=+0.015
    	bCheckFrameRate=true
    	Brightness=8
    	Radius=256
    	CastShadows=false   <----------------------------------- try true in your lightClass
    	LightColor=(R=255,G=255,B=255,A=255)
    }

    Comment


      #3
      Hi, thanks for your suggestion.
      Yes, it's extended from UDKExplosionLight, and it already has CastShadows=true.
      By looking into the udk example map dm-deck, I understand a little bit of how dominant light works. It looks like dominant light is a main light- just like the sun, so there is no other light can cast shadow under the bright area of that main light.

      Comment


        #4
        Ah dammit, CastShadows true, I thought it was a little too obvious. I have a flashlight attached to my weapon that definitely casts shadows. It extends SpotlightComponent(which like UDKExplosionLight extends PointLightComponent), so maybe if you're keen you could try extending your muzzle flash from SpotlightComponent and see how that goes.

        Comment

        Working...
        X