Announcement

Collapse
No announcement yet.

[Solved] pawn shadows?

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

    [Solved] pawn shadows?

    hello

    how do you get pawns and vehicles to cast a shadow?
    ive tried everything but nothing makes it work.

    thanks for any tips

    edit:
    solved by adding this to turn on the shadows, guess it defaults to no shadows
    Code:
    simulated function PostBeginPlay()
    {
    	Super.PostBeginPlay();
    
            SetTimer(1.0,false,'ShowShadow');
    }
    
    exec function ShowShadow()
    {
       UpdateShadowSettings(true);
    }

    #2
    You have to use a dynamic dominant directional light

    Comment


      #3
      yes i tried that
      idealy it would be moveable dominant light,
      i see shadows in the editor, but not in game
      tried ticking/unticking all sorts in the light and the pawn with no shadows ever showing up

      Comment


        #4
        With ingame you mean after cooking? Because my pawn always casts shadows (in the editor, in the UDKGame,...) Do you use your own pawn script or the one from epic games?

        Comment


          #5
          they are extending UTPawn and UTVehicle, nothing has been changed in the defaults
          there is a shadow in the editor, no shadow in pie or after building and cooking

          Comment


            #6
            2 things I can quickly think that has influence is having a physics object assigned and make sure your character's bounds are correct.

            Comment


              #7
              yes they have physics assets and the bounds are correct
              heres a pic from PIE,
              the car and character on the right are skelital meshes and cast shadows
              car and character on the left are pawn and vehicle class instances (UTPawn and UTVehicle) and do not cast shadows

              Comment

              Working...
              X