Page 1 of 1
Model texture Problem In game
Posted: Fri Dec 09, 2005 9:09 am
by agentmad007
Hello,
I have built a custom model with custom textures.In Moh radiant it appears fine , textured, but when i test ingame the model looks untextured(with this black and white missing texture), i checked many times my shader , and everything is okay inside....Otherwise, the textures would not appear in radiant.
Someone can help me? Maybe i am doing something wrong.....
Thanks
Posted: Fri Dec 09, 2005 3:19 pm
by bdbodger
Not much to go on maybe post your shader and what the path to your textures is .
Posted: Fri Dec 09, 2005 3:30 pm
by agentmad007
The tiki
Code: Select all
TIKI
setup
{
scale 1.000000 // Set default scale to 16/30.5 since world is in 16 units per foot and model is in cm's
path models/Bond_stargate
skelmodel Bond_stargate.skd
surface outer shader Bond_Stargate_outer
}
init
{
server
{
classname anim
}
}
animations
{
idle Bond_Stargate.skc
Bond_Stargate Bond_Stargate.skc
{
}
Bond_Stargate_Dial Bond_Stargate_Dial.skc
{
client
{
}
}
}
The shader
Code: Select all
Bond_Stargate_outer
{
qer_editorimage textures/Bond_Stargate/Stargate.jpg
cull none
{
map qer_editorimage textures/Bond_Stargate/Stargate.jpg
rgbGen lightingSpherical
}
}
And the texture is in a folder textures/Bond_Stargate
Posted: Fri Dec 09, 2005 3:42 pm
by PKM
change the file extention in your script for the image from .jpg to .tga even if the image is actually a .jpg ?
Posted: Fri Dec 09, 2005 5:01 pm
by agentmad007
Pah....nothing to do i tried to change jpg to tga in the shader and it did not work.Then i converted my Jpg to tga , same nothing .
I tried also to change the Rgben in my shader to global , identity , and without rgben , cull none and without cull at all.......and nothing worked!!!!It drives me totaly nuts, When i export the model into skb the textures appears correctly in game though! But i need it into Skd to use an Skc animation.
Thanks for the help

Posted: Sat Dec 10, 2005 9:03 am
by bdbodger
qer_editorimage is just that , the image you see in the editor which can be different from the image shown in the game . Your shader has no ingame image set . Just put map textures/Bond_Stargate/Stargate.tga take out the qer_editorimage part leave the first one but take out the second one like this
Code: Select all
Bond_Stargate_outer
{
qer_editorimage textures/Bond_Stargate/Stargate.jpg
cull none
{
map textures/Bond_Stargate/Stargate.jpg
rgbGen lightingSpherical
}
}
Posted: Sat Dec 10, 2005 11:15 am
by agentmad007
Hurra! you are the man ! Thanks a lot Bdbodger mate .....Now the texture appear in game
Could not figure that out by myself....
Thanks!