If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here
Moderator: Moderators
Aprop
Major
Posts: 291 Joined: Mon Nov 17, 2008 3:40 pm
Post
by Aprop » Wed Dec 17, 2008 1:37 pm
I fited textures in radiant, but it dont work in game... can somebody explain me why?
shader
Code: Select all
textures/tex/01
{
qer_keyword wall
qer_keyword tex
surfaceparm metal
cull none
{
map textures/tex/01.jpg
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Wed Dec 17, 2008 5:09 pm
Try
Code: Select all
textures/tex/01
{
qer_keyword wall
qer_keyword tex
surfaceparm metal
cull none
qer_editorimage textures/tex/01.tga
{
map textures/tex/01.jpg
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}
Aprop
Major
Posts: 291 Joined: Mon Nov 17, 2008 3:40 pm
Post
by Aprop » Sat Dec 20, 2008 1:46 pm
Code: Select all
qer_editorimage textures/tex/01.tga
Its image for editor, isnt it? I have problem in game, because texture is too small, eg 5 walls on one wall!
Rookie One.pl
Site Admin
Posts: 2752 Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:
Post
by Rookie One.pl » Sat Dec 27, 2008 1:31 pm
If you don't specify a qer_editorimage, Radiant falls back to the first shader stage, but still it may align the texture differently than the game would. So the case might be that you are tricked into thinking your texture fits OK while in reality it doesn't.