Development > Artwork
Basic Question
ManDrake13:
I want to start with the fact that I'm a programmer, not a graphic designer, so I'm in an alien field so to speak. I'm looking for some sort of basic walkthrough that would allow me to something really simple, like change the color of a shotgun shell from red to yellow for example. I've started going over all the information on the website, it recommends Blender, but I can't get anything to load properly into Blender. I saw that there is a python program that can covert them somehow, but I'm not clear how. Do you have something for people with a dangerously low level of knowledge and experience. if I could just figure out how to change colors of things, so I could tell the differences in my mods, I'd be happy with that. Any suggestions?
Noordung:
search import/export scripts for md2 format. for changing shotgun color you need to change skin. for that you can use gimp - free program.
DarkRain:
If you only want to change the color do as Noordung says and just edit the skin (a simple .png/.jpg file) with your preferred image editor — for your example the Riot Shotgun ammo skin is base/models/weapons/shotgun2/shotgun_clip.jpg, the tutorial you'll need depends on your image editing program of course.
For that you don't need Blender, only bother with Blender if you actually want to change the *shape* of an object in game, in that case the impor/export scripts are in our repository (src/tools/blender), check the Blender manual on how to use add-ons: http://www.blender.org/manual/extensions/python/add_ons.html
ManDrake13:
Thanks for the info. It took a a couple of hours, but I finally managed to get what I wanted to happen to happen with GIMP. So I cloned the existing magazine and switched the color of the shell on top. Turns out the term export was an important key word cause you can't save it in jpg format, except with an export in GIMP. Updated my weapons_human.ufo file to point to it. And everything is coming out red like before. So I suspect that this where the discussion on the md2 files comes in. You mentioned an import/export script for those. Originally I assumed it was GIMP, but I couldn't find an md2 option in GIMP. When I searched, I found mention of the md2.pl script, but it's not clear to me what I should do with this.
ubuntu@ubuntu2:~/ufoai/base/models/weapons/shotgun2$ ~/ufoai/src/tools/md2.pl info shotgun_clip_yellow.md2
MD2 file found.
NumFrames: 1 (max is 512)
NumSkins: 1 (max is 32)
NumXYZ: 50 (max is 2048)
NumST: 95
NumTris: 92 (max is 4096)
NumGLcmds: 0
SkinWidth: 256
SkinHeight: 256
So what is my next step? I'm presuming because I copied the red md2 file, that it's pointed to the red md2 image still. I'm also not sure where the external shell that I see in the image inside the game. But I see the same thing on the medikit as well, the big needle image isn't in the jpg, so it must be built with some other information somehow. So I suspect the md2 files do all sorts of special stuff.
So is there a recommended tool for digging into md2 for Linux?
Noordung:
You have to replace the old picture with new one in game folder and use the same name.
py script is blender thing it goes to blender/2.73a (or what ever version of blender you are using) /python
than open blender and file import/export should be new options.
but you have to realize that blender is for model, GIMP is for skin - like photoshop.
Navigation
[0] Message Index
[#] Next page
Go to full version