Thread Tools Display Modes
09-19-07, 01:27 AM   #1
enevitable
A Kobold Labourer
Join Date: Sep 2007
Posts: 1
Texture Modifiying problems

Trying to modify the color of a texture on the fly, and all I can get is it to be green or black or a white yellow square

The texture itself is a white square.

Heres from the XML:

<Layer level="background">
<Texture name="button7" file="Inteface\Addons\CoordinateGrid\status.tga">

</Texture>
</Layer>

and from the LUA:

button7:SetVertexColor(1,1,0)

any ideas?
  Reply With Quote
10-12-07, 04:31 AM   #2
Telic
A Defias Bandit
 
Telic's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 3
Some random thoughts off the top of my head :

1.)
If the game can't find a graphic file, it always displays as a green square on my computer, so double, triple, and quadruple check that you have specified the correct file path and file name.
If the path and name are correct, perhaps the game can't load the graphic ?
I'm not sure if tga files need to be formatted a specific way to be compatible - I always used to convert my tga to blp files, and the blp converter always insisted that the tga file be square shaped with sides that were either 8, 16, 32, 64, 128, 256, etc. pixels per side.
It also insisted that the tga had not been saved with any kind of compression algorithm.
You could look around for the little utilities BLP2TGA and TGA2BLP and convert to blp format and see if it loads...?

2.)
You could double check the texture is in fact a white square - in some graphics pacakges transparant layers can be represented by a uniform white / black colouring; i.e. you can be fooled in to thinking that a "blank" graphic (i.e. one that is completely transparant) is in fact a solid colour.

3.)
You could try passing the Fourth Alpha setting parameter to the :SetVertexColor function.
Is it (r, g, b, @)
or (@, r, g, b)?
Check www.wowwiki.com for the function name.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Texture Modifiying problems


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off