Retexturing Tree Leaves....

Post » Fri May 13, 2011 7:19 pm

Hey everyone, I have a quick question. I'm trying to retexture some tree leaves, but it's not working the same as other retexturing jobs I've done. I'm using GIMP to do this. Normally after I recolor or change a texture, I flatten the image, GIMP is able to save it, and everything works fine. But when I flatten the leaf texture, the leaves aren't applied to the tree right any more in game, and it looks like a white square with the leaves on it, instead of just leaves. So do I need to have a different setting when saving these leaf textures? How do I save the texture if flattening ruins the texture? I know next to nothing about textures, I just know how to fiddle with color and what not. Thanks for any help!

CK
User avatar
An Lor
 
Posts: 3439
Joined: Sun Feb 18, 2007 8:46 pm

Post » Fri May 13, 2011 11:04 am

Id assume that the other textures you worked on didn't have an alpha channel, so you couldn't lose it.

Flattening the image is probably merging the alpha channels of all the layers, so if any layers aren't transparent, you'd get an all-white alpha channel in the result. Which then allows the white background to show in use. You may be able to change the transparency of the layers before flattening to avoid this.
User avatar
christelle047
 
Posts: 3407
Joined: Mon Apr 09, 2007 12:50 pm

Post » Fri May 13, 2011 7:03 pm

Leaves in Oblivion are usually a nearly flat 6-quad mesh. The texture is an image of a leaf on a transparent background. I believe what you are getting is something like http://i164.photobucket.com/albums/u28/VinceB_photo/Vb2010/TranspNo.png, except your opaque part is white. You need to do two things. First, the area beyond the leaf image needs to be transparent like http://i164.photobucket.com/albums/u28/VinceB_photo/Vb2010/TranspYes.png. Second, in the .nif file you need to add an NiAlphaProperty block and an NiStencilProperty block. The NiAlphaProperty block enables the tranparency in your texture, while the NiStencilProperty block allows the mesh to be visible from both sides. To get the proper parameters for these blocks, copy them from a vanilla Oblivion .nif file for a plant with leaves. Good luck.
User avatar
Catharine Krupinski
 
Posts: 3377
Joined: Sun Aug 12, 2007 3:39 pm

Post » Fri May 13, 2011 11:30 am

Thanks for the suggestions Ghastley and Vince Bly :). And yes, that's exactly what was happening before Vince, just with a white background. But I messed around with it yesterday and was actually able to get it to work by just manually deleting each layer except for the main surface, instead of flattening the image. The texture was able to save and shows up fine in game. Maybe it's not the proper way to do it, but it looks like everything worked out :shrug: . Thanks again for the help!
User avatar
Alex [AK]
 
Posts: 3436
Joined: Fri Jun 15, 2007 10:01 pm


Return to IV - Oblivion