OpenArena Message Boards

OpenArena Contributions => Development => Topic started by: baronofhell on January 23, 2008, 09:28:23 am



Title: Gtkradiant problem
Post by: baronofhell on January 23, 2008, 09:28:23 am
I see these texture load failed, but I dont see from where radiant is trying to load these shaders, since they are not in the shaders. Can someone tell me where Gtkradiant is looking and what needs to be modified?

(http://img251.imageshack.us/img251/7726/texturefailki0.jpg)

Thanks!


Title: Re: Gtkradiant problem
Post by: dmn_clown on January 23, 2008, 09:56:10 am
All that message means is that there is no texture to load.  The shader (if it exists) will still work correctly.



Title: Re: Gtkradiant problem
Post by: baronofhell on January 23, 2008, 12:50:18 pm
I was able to load my shader.

another question.

How do I load this image, as transparent?

(http://img176.imageshack.us/img176/1173/treepicmx8.jpg)

textures/d1/transtree01
{
   qer_editorimage textures/d1/treetmp1.tga
   surfaceparm nomarks
   surfaceparm nolightmap
   surfaceparm trans
   cull disable
   {
      map textures/d1/treetmp1.tga
        }
}

This shader doesnt work, can someone tell me what to change?


Title: Re: Gtkradiant problem
Post by: dmn_clown on January 25, 2008, 11:45:32 am
Code:
textures/d1/transtree01
{
   qer_editorimage textures/d1/treetmp1.tga
   surfaceparm nomarks
   surfaceparm nolightmap
   surfaceparm trans
   cull disable
   {
      map textures/d1/treetmp1.tga
      blendfunc blend
   }
   {
      map $lightmap
      blendfunc filter
      rgbGen identity
   }
}

Or something like that, edit to what looks best.


Title: Re: Gtkradiant problem
Post by: baronofhell on January 28, 2008, 10:19:02 am
Thanks! the shader works!