UE3 - UT3 Weapon Texture - 3rd Person Failure

  • 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.

Canine

New Member
Mar 18, 2009
4
0
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.
 

DazJW

Member
Mar 25, 2008
91
0
6
Have you done it to both meshes? The third and first person models are different models.
 

Canine

New Member
Mar 18, 2009
4
0
0
Have you done it to both meshes? The third and first person models are different models.

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.
 

Canine

New Member
Mar 18, 2009
4
0
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!
 

Canine

New Member
Mar 18, 2009
4
0
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?
 

DazJW

Member
Mar 25, 2008
91
0
6
The mesh you see other characters holding is coded in the attachment class rather than the weapon class.