Model texture Problem In game

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Model texture Problem In game

Post 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
Deadly and slient.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Not much to go on maybe post your shader and what the path to your textures is .
Image
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post 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
Deadly and slient.
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post by PKM »

change the file extention in your script for the image from .jpg to .tga even if the image is actually a .jpg ?
i'm not f****** angry, i'm from philadelphia .
Image
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post 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 :D
Deadly and slient.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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 
      } 
}
Image
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

Hurra! you are the man ! Thanks a lot Bdbodger mate .....Now the texture appear in game :D

Could not figure that out by myself....

Thanks!
Deadly and slient.
Post Reply