1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

UE3 - UT3 Weapon Texture - 3rd Person Failure

Discussion in 'Modeling & Skinning' started by Canine, Mar 18, 2009.

  1. Canine

    Canine New Member

    Joined:
    Mar 18, 2009
    Messages:
    4
    Likes Received:
    0
    Evenin!

    I'm in the process of reskinning and modifying the Sniper Rifle for UT3.
    All the hard work is done, it compiles perfectly, I'm happy with the textures etc.

    BUT(!), one thing is still not satisfactory, the texture will not apply to the rifle pickups and 3rd person view.

    It's only visible in 1st person view.

    Am I perhaps missing a line of code?
    Or is the new UED handling the textures differently?
    Needing to apply the texture to something more in the .upk package?

    I did this for 2k4 a few years back with not too much trouble, but it seems UED3 is slightly different in certain areas.

    Any help will be greatly appreciated.
    Thanks for your time.
     
  2. DazJW

    DazJW Member

    Joined:
    Mar 25, 2008
    Messages:
    91
    Likes Received:
    0
    Have you done it to both meshes? The third and first person models are different models.
     
  3. Canine

    Canine New Member

    Joined:
    Mar 18, 2009
    Messages:
    4
    Likes Received:
    0
    Interesting. I'll need a little further elaboration on it, though. Care to?
    You mean in the .upk file from the UED?

    How? etc.

    Sorry to be a pain.
     
  4. Canine

    Canine New Member

    Joined:
    Mar 18, 2009
    Messages:
    4
    Likes Received:
    0
    Got it!
    Thanks to DazJW's hint and {DFB}emac's hint, it all worked out!

    For the FirstPerson i used:
    Code:
    simulated function SetSkin(Material NewMaterial)
    {
    	Super.SetSkin(NewMaterial);
    	Mesh.SetMaterial(0, Material'MyPackageName.Materials.M_WP_MyWeapon');
    }
    For the PickupMesh i had to first do a:
    Code:
       Begin Object Name=PickupMesh ObjName=PickupMesh Archetype=SkeletalMeshComponent'UTGame.Default__UTWeapon:PickupMesh'
          SkeletalMesh=SkeletalMesh'MyPackageName.Mesh.SK_WP_MyWeapon_3P_Mid'
          ObjectArchetype=SkeletalMeshComponent'UTGame.Default__UTWeapon:PickupMesh'
       End Object
    
    before the texture would stick to the DroppedPickupMesh and PickupFactoryMesh


    Thanks folks!
     
  5. TurdDrive

    TurdDrive sam k

    Joined:
    Oct 31, 2008
    Messages:
    3,445
    Likes Received:
    2
    got any picture of it?
     
  6. Canine

    Canine New Member

    Joined:
    Mar 18, 2009
    Messages:
    4
    Likes Received:
    0
    Sorry, to bump this back up!

    But I thought I was done with this issue... seems I'm not.
    I've managed to apply all skins to all meshes except when you look at another player.

    When you see them, their rifle is skinned with the standard skin.
    Firstperson and pickups/dropped rifles are all skinned with the custom skin.
    Code a few posts above apply. Any suggestions?
     
  7. DazJW

    DazJW Member

    Joined:
    Mar 25, 2008
    Messages:
    91
    Likes Received:
    0
    The mesh you see other characters holding is coded in the attachment class rather than the weapon class.
     

Share This Page