Custom Texture Mess
Moderator: Moderators
Custom Texture Mess
Hey all me again.
I created a texture for my map and also the shader in the script folder, problem is as follows.
I have loaded the texture in mohradient and positioned it with surface inspector and looks perfect, BUT
I compile the map and load the map but when i view the sign i made it's all tiled and unreadable, basically multiple views of the image not just one full image as per look in mohradient, contents of shader is here any mistakes let me know pls.
rules.shader
textures/farmhouse/rules
{
qer_keyword farm
qer_keyword wall
surfaceparm wood
{
map textures/farmhouse/rules.tga
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}
And the texture i called rules.tga and placed in textures/farmhouse/
Any help would be appriciated, does it have to be a set size file or am i missing an alpha channel please help
Alpha channels i have are
RGB
red
green
blue
Help pls
I created a texture for my map and also the shader in the script folder, problem is as follows.
I have loaded the texture in mohradient and positioned it with surface inspector and looks perfect, BUT
I compile the map and load the map but when i view the sign i made it's all tiled and unreadable, basically multiple views of the image not just one full image as per look in mohradient, contents of shader is here any mistakes let me know pls.
rules.shader
textures/farmhouse/rules
{
qer_keyword farm
qer_keyword wall
surfaceparm wood
{
map textures/farmhouse/rules.tga
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}
And the texture i called rules.tga and placed in textures/farmhouse/
Any help would be appriciated, does it have to be a set size file or am i missing an alpha channel please help
Alpha channels i have are
RGB
red
green
blue
Help pls
That did not fix the problem, the image is still tiled, does the image require an alpha channel as i do have one.
what is the required image size is there one
Screenshots are should look like and what it looks like in game
Radient View

Game View:

If someone could help me it would be greatly appriciated, the file is 256x256 in size i read somewhere to do it that size, but needless it does not appear right in game
HELP PLZZZZZZ
what is the required image size is there one
Screenshots are should look like and what it looks like in game
Radient View

Game View:

If someone could help me it would be greatly appriciated, the file is 256x256 in size i read somewhere to do it that size, but needless it does not appear right in game
HELP PLZZZZZZ
I'm new to making textures for mohaa too. I've just created a sign and this is the shader file I am using (stolen from another texture):
As you have said, I also had to do ctrl-f and X-Flip it too, but it is fine for me. I hope that is of some use to you. 
Code: Select all
textures/outoforder/out_of_order
{
surfaceParm rock
{
map textures/outoforder/out_of_order.tga
rgbGen identity
depthWrite
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbGen identity
depthFunc equal
}
}Shuriken1
Re-Applied texture, re-compiled using mbuilder which i always do, my image size is 256x256 32 bit tga file with alpha channel
Still tiles which dosen't show that in radient which is winding me up lol,
I have no idea why it does it, is the image size correct?, 32 bit right?
if anyone has any ideas i would be very grateful as the map is nearly complete just this stopping me releasing the map, i need these boards to hide the jail doors when they rise.
Thanks for the help Shuriken1, but i do not know why it don't work any answers to the image size and bit will be good or something
Cheers
Still tiles which dosen't show that in radient which is winding me up lol,
I have no idea why it does it, is the image size correct?, 32 bit right?
if anyone has any ideas i would be very grateful as the map is nearly complete just this stopping me releasing the map, i need these boards to hide the jail doors when they rise.
Thanks for the help Shuriken1, but i do not know why it don't work any answers to the image size and bit will be good or something
Cheers
I originally did my texture as a jpg until I realised that the shader only does tga's. Although, I found out afterwards that it will load a jpg but u have to put tga in the shader.
Anyway, I did my texture 400x100 because that related to the shape of the face I was putting it on. It turned out to be far too big for the face but ctrl+f and an x-flip sorted it.
have you changed your shader file to match the one I posted (minus path changes)?
Anyway, I did my texture 400x100 because that related to the shape of the face I was putting it on. It turned out to be far too big for the face but ctrl+f and an x-flip sorted it.
have you changed your shader file to match the one I posted (minus path changes)?
Shuriken1
512
Texture images should be 512 X 512 in size. But, it can be smaller if you keep the numbers divisible by 32.
265 X 512
128 X 64
512 X 128
64 X 32
Like that.
265 X 512
128 X 64
512 X 128
64 X 32
Like that.
-
panTera
- Brigadier General
- Posts: 573
- Joined: Wed Jan 29, 2003 11:46 pm
- Location: The Netherlands
- Contact:
wrong dimensions
Yes, no need for a 32bit alpha tga as the texture doesn't have any see-through parts. For images with text just save it as 24bit tga. Not using the right dimensions is most likely the reason for this strange tile effect. Like Ezykeyal said the texture in the texture browser doesn't look like a 256x256 image. You can use rectangular images as long as the dimensions are divisible by 16 and the outcome is an integer number. Also you might want to add nopicmip to the shader just below the surfaceparm part. This will keep the texture sharp/readable even if people lower their settings.
I have changed the tga to 24bit and changed the size to 512 x 512, modified shader to include nopicmip provided by penTera
If this does not work i will scream lol it's taking to long to fix, i may just ad a texture to it and a light above hanging over if this does not work
Cheers for the help
No Luck i give up
If this does not work i will scream lol it's taking to long to fix, i may just ad a texture to it and a light above hanging over if this does not work
Cheers for the help
No Luck i give up
-
panTera
- Brigadier General
- Posts: 573
- Joined: Wed Jan 29, 2003 11:46 pm
- Location: The Netherlands
- Contact:
If you still want to give it a shot, here are some more things you could try:
- remove custom pk3's from the main folder if you haven't already,
- rename the shader from rules.shader to farmhouse.shader,
- or, disable/remove the shader and see what happens? If it still acts weird at least you know it's not the shader,
- apply a different standard texture to the same brush and see if this one gets tiled too.
If you want I can send you a PM with my email, then mail the texture to me and I'll see if I can find what's wrong with it. Just lemme know!
- remove custom pk3's from the main folder if you haven't already,
- rename the shader from rules.shader to farmhouse.shader,
- or, disable/remove the shader and see what happens? If it still acts weird at least you know it's not the shader,
- apply a different standard texture to the same brush and see if this one gets tiled too.
If you want I can send you a PM with my email, then mail the texture to me and I'll see if I can find what's wrong with it. Just lemme know!

