PDA

View Full Version : Import sounds and Textures & texturing weapons ?



woooo
11-24-2007, 11:30 PM
Does anyone know how to import sound and textures and also how to texture a weapon ?

I'm so noob at it this time :x quite different from 04 o-O!

{SAP}THEEDGE
11-25-2007, 01:28 AM
Very good questions. I have a similar question myself. Lets say you want to do a simple exercise and see if anyone can help us. I want to find the skin or texture for the sniper rifle. I want to be able to export it. Use Photoshop to do some basic changes to it(like change the color, or put on a logo). I then want to re import it and be able to tell the code to use the new texture. I can't figure out how the code points to the texture/skin to use. There is no skin=command...

How does the code tell the game what model and texture to use?????

Sorry for hijacking, but I think we want the same thing...

{SAP}THEEDGE
11-25-2007, 01:54 AM
OK so I was looking at the wrong .uc file. In the UTWeap_SniperRifle class I see these commands:


TeamSkins(0)=Material'WP_SniperRifle.Materials.M_W P_SniperRifle'
TeamSkins(1)=MaterialInstanceConstant'WP_SniperRif le.Materials.M_WP_SniperRifle_Blue'

So it appears the code calls out materials instead of textures or skins. When you look in the editor the package WP_SniperRifle has many materials and textures in it. So to make a change would I have to create my own package(how do I do that?) and copy all of the materials and textures into it. Export the ones I want to make changes to, then reimport them?? Damn...I need a tutorial badly!!! Is there somewhere that explains how the materials/textures work together for weapons and vehicles???

schenksmill
11-25-2007, 02:11 AM
To answer the material/package question....when you create a new material, you can specify a package to put it into....if the package doesn't exist, it will "create" it....before you exit ued, you'll want to save the package (if you highlight it in the generic browser, then file->save it should save it)

as for material stuff, each material is made up of a series of textures set to different channels (diffuse, normal maps, etc.)....there was a terrain tutorial somewhere around here that showed some basic material stuff.....anyhow, you'll want to export whatever individual textures you want (likely diffuse texture channel from the material), then reimport them and apply them to the new material, and then just imitate the rest of the channels with the unchanged textures

{SAP}THEEDGE
11-25-2007, 02:25 AM
But I can't add the new textures to game packages, correct?? If I make a new texture for the sniper rifle that is a different color or something, do I have to make a new package that has everything else the sniper rifle uses?

Thanks for your help by the way!!

schenksmill
11-25-2007, 02:26 AM
yea if you're changing any textures, you'll want to make a new package so you don't hose your game packages

{SAP}THEEDGE
11-25-2007, 02:36 AM
OK..when I try to export a the sniper rifle texture: I highlight it(it has a red box around it which I think is texture), then go to the file menu and say export. It gives me a message that says that you can't perform that operation on a cooked package...

What now??? How do I get a copy of the texture out of there???

schenksmill
11-25-2007, 02:43 AM
That's something I haven't tried yet....I think mysterial posted something a few days ago about how to do that, but off the top of my head i'm not sure

Potens
11-25-2007, 01:38 PM
Not sure exactly, but I'm curious about this as well. I've been using placeholder static meshes until I can figure out how in point to a custom package to use the meshes/textures/sounds inside it without getting the "unresolved refrence" error.

MrCobra
11-26-2007, 08:27 AM
OK..when I try to export a the sniper rifle texture: I highlight it(it has a red box around it which I think is texture), then go to the file menu and say export. It gives me a message that says that you can't perform that operation on a cooked package...

What now??? How do I get a copy of the texture out of there???

There's a sticky about how to duplicate game content to your own package, but I see no way from the within the editor to export a physical file of anything even after it's duplicated to another package.

{SAP}THEEDGE
11-26-2007, 10:15 AM
Can you give me a link to the sticky? I'm not seeing it...

woooo
11-26-2007, 02:58 PM
Its the sticky for the level editing section

pingfreak
12-02-2007, 06:30 AM
I have successfully got a half res copy of the sniper rifle by doing the following:

Open browser ... navigate to texture in question ... up the display size of the pictures to as high as your personal res monitor will go.. ie 1024 x 1024 ... use the 'prnt scrn' button ... open paint ... paste ... save as bmp most likely ... that should do it.

Now if you could help me..

This is my situation:
I have made a gun with custom sounds and textures 'materials' rather. When I load the weapon in game, the Gun texture is missing and there is no sound.
0 Errors and 0 Warnings.. and all textures materials sounds and cues referenced.

woooo
12-02-2007, 09:43 AM
I have successfully got a half res copy of the sniper rifle by doing the following:

Open browser ... navigate to texture in question ... up the display size of the pictures to as high as your personal res monitor will go.. ie 1024 x 1024 ... use the 'prnt scrn' button ... open paint ... paste ... save as bmp most likely ... that should do it.

Now if you could help me..

This is my situation:
I have made a gun with custom sounds and textures 'materials' rather. When I load the weapon in game, the Gun texture is missing and there is no sound.
0 Errors and 0 Warnings.. and all textures materials sounds and cues referenced.

Where did you put your .upk files ?

pingfreak
12-02-2007, 10:24 AM
UTGame/Cooked PC/Weapons in Main Dir

MrCobra
12-04-2007, 02:06 PM
I've had issues with PSDs as well. I haven't tried importing and using sounds as I don't need that functionality just yet. Anyhoo, try using TGA files for your textures. It seems to work better.

~{MFD}~Mordred
01-13-2008, 03:07 AM
I wonder, has anything like this been resolved?

pingfreak
01-13-2008, 03:25 AM
I've made several custom 'stuff' weapons if you have some questions ask away.
My problem before was when I saved a package it would save it in the Unpublished folder.
And, I needed it to be in the Weapons folder/ I think I even had them in both places was the problem.

~{MFD}~Mordred
01-16-2008, 11:26 PM
Well, after posting, I figured out how to make the skins work. I still got to figure out Sound cues (which I am sure I can find if I search the forums long enough) and a new scope for the Sniper Rifle. Now I figured out how to create a scope and add it to the weapon, but can't figure out the transparency...

If anyone can help with that I would appreciate it.

woooo
01-23-2008, 08:38 PM
i managed to this this time ago lol i forgot to mention.

pingfreak
01-25-2008, 11:10 AM
H.Canvas.DrawColor.A = 30;

? I might be able to help.