VTFs becoming green when compiled

Got problems with your models? Struggling with textures? Get help with your custom assets.

VTFs becoming green when compiled

Postby blackmantis357 on Wed Dec 12, 2012 5:23 am

I'm having a strange issue here; although it's likely to be some sort of image format problem.

I save an image that contains greyscale colours, (either in its entirety, or certain areas of the image) as a 32 bit TGA, run it through vtex but the white areas of my new vtf always show up green.

Image

What can I do to avoid this?
User avatar
blackmantis357
Member
Member
 
Joined: Sat Dec 08, 2012 12:28 pm

Re: VTFs becoming green when compiled

Postby kraid on Wed Dec 12, 2012 6:17 am

Maybe this could be caused by the compression.
Goldeneye Source v4.2.3
get it now and play for FREE!!!
http://www.goldeneyesource.net
kraid
Been Here A While
Been Here A While
 
Joined: Thu Jan 22, 2009 12:09 pm

Re: VTFs becoming green when compiled

Postby blackmantis357 on Wed Dec 12, 2012 6:53 am

kraid wrote:Maybe this could be caused by the compression.


That may be, but what I'd like to know is how to fix it? Official VALVe textures do not suffer from the same issue.
User avatar
blackmantis357
Member
Member
 
Joined: Sat Dec 08, 2012 12:28 pm

Re: VTFs becoming green when compiled

Postby Jangalomph on Wed Dec 12, 2012 1:39 pm

Dont run it through VTEX, run it through VTFedit.
http://www.nomoreroominhell.com
I don’t know whether I was right or wrong, I guess I’ll never know… But I made it. And I guess I should be thankful for that. - Strelok
Has anyone really been far even as decided to use even go want to do look more like?
User avatar
Jangalomph
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Wed Jun 25, 2008 3:19 pm
Location: Sumter, SC

Re: VTFs becoming green when compiled

Postby blackmantis357 on Wed Dec 12, 2012 4:49 pm

jangalomph wrote:Dont run it through VTEX, run it through VTFedit.


VTFedit ruins the texture alignment on vtfs so I can't use it. It also seems to create bad mipmaps and causes the same problem; it causes all parts of the texture to turn green slightly.

Image
User avatar
blackmantis357
Member
Member
 
Joined: Sat Dec 08, 2012 12:28 pm

Re: VTFs becoming green when compiled

Postby kraid on Wed Dec 12, 2012 7:18 pm

I never saw any texture missalignment on textures i compiled with VTFedit.
Maybe you're using wrong settings.
Goldeneye Source v4.2.3
get it now and play for FREE!!!
http://www.goldeneyesource.net
kraid
Been Here A While
Been Here A While
 
Joined: Thu Jan 22, 2009 12:09 pm

Re: VTFs becoming green when compiled

Postby Dives on Wed Dec 12, 2012 8:35 pm

Place a text file with the same name as your TGA in the same folder. Put "nocompress 1" (without quotes) in the text file.
Vtex will process your texture and tell you that it's not compressing it.
User avatar
Dives
May Contain Skills
May Contain Skills
 
Joined: Sat Feb 28, 2009 9:54 pm
Location: Moorpark, CA

Re: VTFs becoming green when compiled

Postby blackmantis357 on Thu Dec 13, 2012 5:47 am

kraid wrote:I never saw any texture missalignment on textures i compiled with VTFedit.
Maybe you're using wrong settings.


I'm using the default settings. It's been like this on every single system I've owned, on every installation since 2006.

Dives wrote:Place a text file with the same name as your TGA in the same folder. Put "nocompress 1" (without quotes) in the text file.
Vtex will process your texture and tell you that it's not compressing it.


Still no luck unfortunately, have tried dragging both my TXT files and my TGA files over vtex but they still show up green. Vtex also doesn't state anything about not compressing them.

input file: ../half-life 2/hl2/materialsrc/Tile/tilewall001d
output directory: ../half-life 2/hl2/materials/Tile
Hit a key to continue

The resulting file still also appears green, although I think it's vtex just not recognizing the nocompress 1 command.

Is there perhaps something wrong with my TGAs? I'm saving them with 32 bits/pixel (Compress RLE unchecked).
User avatar
blackmantis357
Member
Member
 
Joined: Sat Dec 08, 2012 12:28 pm

Re: VTFs becoming green when compiled

Postby srredfire on Sat Dec 15, 2012 3:27 pm

You can try using the Photoshop plugin for it. I use that all the time and I've never noticed any kind of problems.

But maybe I just never looked!
srredfire
Veteran
Veteran
 
Joined: Sat Jul 22, 2006 10:44 pm

Re: VTFs becoming green when compiled

Postby blackmantis357 on Sat Dec 15, 2012 7:38 pm

srredfire wrote:You can try using the Photoshop plugin for it. I use that all the time and I've never noticed any kind of problems.

But maybe I just never looked!


Sadly no luck with the photoshop plugin, same issue as vtfedit. :(
User avatar
blackmantis357
Member
Member
 
Joined: Sat Dec 08, 2012 12:28 pm

Re: VTFs becoming green when compiled

Postby Jangalomph on Sat Dec 15, 2012 8:12 pm

Maybe its your monitor playing some black magic on you.
http://www.nomoreroominhell.com
I don’t know whether I was right or wrong, I guess I’ll never know… But I made it. And I guess I should be thankful for that. - Strelok
Has anyone really been far even as decided to use even go want to do look more like?
User avatar
Jangalomph
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Wed Jun 25, 2008 3:19 pm
Location: Sumter, SC

Re: VTFs becoming green when compiled

Postby ErikKiller on Sat Dec 15, 2012 8:25 pm

They look OK on my laptop but greenish on my desktop monitor.
Image
Image
First rodeo? Use the Source SDK Documentation for reference!
User avatar
ErikKiller
May Contain Skills
May Contain Skills
 
Joined: Sun Sep 09, 2007 4:05 pm
Location: Estonia

Re: VTFs becoming green when compiled

Postby blackmantis357 on Sat Dec 15, 2012 9:00 pm

jangalomph wrote:Maybe its your monitor playing some black magic on you.


Nah it's not my monitor, that's why I put the picture up.

Sadly the vtfs are misaligned in the photoshop plugin as well. VTEX is the only one capable of producing stable textures, with the exception of turning white to green.
User avatar
blackmantis357
Member
Member
 
Joined: Sat Dec 08, 2012 12:28 pm

Re: VTFs becoming green when compiled

Postby Stormy on Thu Dec 27, 2012 8:41 pm

It un-aligns the texture when you save it with a different program? That sounds all wrong. The only way that can happen is if the texture image is being moved when it saves, otherwise it's something to do with the UV co-ords being modified somehow. The GIMP VTF plugin allows for like thirty different compression settings. Try them all, I assume the ps plugin has similar options. Don't use VTFedit or VTEX, they were useful back when there were no plugins for image editing programs but now they just complicate a simple process.
User avatar
Stormy
May Contain Skills
May Contain Skills
 
Joined: Sun Nov 28, 2010 6:03 am
Location: Cairns, QLD, AUS

Re: VTFs becoming green when compiled

Postby Gambini on Fri Dec 28, 2012 12:20 am

Your texture turns greenish because the DTX compression method, it´s always been like that. If you can´t live with it save your textures in BGR888 but beware they´re gonna eat much more memory.

Just for your info these are the most common vmf formats:

DTX1: Compressed texture. Turns to be greenish as you described, mostly with grayscales. Also it may expose some artifacts specially with fine gradients.
DTX3: Same but with a 1bit (monochrome) alpha channel
DTX5: Same but with 8bits alpha
BGR888: Uncompressed texture format (may take up to 4-5 times the filesize of a DTX with the same resolution)
BGRA8888: Same than above but with an alpha channel.
User avatar
Gambini
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Mon Oct 20, 2008 1:52 am
Location: Buenos Aires, Argentina.
Next

Return to Custom Asset Help

Who is online

Users browsing this forum: No registered users