Quake3World.com
https://www.quake3world.com/forum/

Trouble with a texture on a simple patch mesh
https://www.quake3world.com/forum/viewtopic.php?f=10&t=52065
Page 1 of 1

Author:  patrisp [ 05-29-2016 10:43 AM ]
Post subject:  Trouble with a texture on a simple patch mesh

I can't understand why my clock is looked as the photo attached. I fitted it with shift+s as it a simple patch mesh. I can see it fine with my wolfcamql but It doesn't look fine when I upload the map to steam servers. What is wrong?
Shader:
textures/MisTexturas/reloj
{
cull none
surfaceparm origin
surfaceparm nolightmap


{
map textures/Mistexturas/reloj.png
alphaFunc GE128
depthWrite
rgbGen identity

}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}

Attachments:
File comment: Look at the clock.
relojmal.jpg
relojmal.jpg [ 70.88 KB | Viewed 357 times ]
File comment: Look at the clock.
relojmal.jpg
relojmal.jpg [ 70.88 KB | Viewed 388 times ]

Author:  sst13 [ 05-29-2016 11:14 AM ]
Post subject:  Re: Trouble with a texture on a simple patch mesh

It's a Mip Mapping bug in QL, only affecting textures with odd sizes.

You should always use texture sizes with powers of 2. Like: 32 - 64 - 128 - 256 - 512 - 1024...
You can combine these values horizontal and vertical. (Textures don't need to be square.)

It's also ok to use: 48 - 96 - 192 - 384 - 768...
In this case the error occurs not until the texture is scaled down under 3 texels. (You won't notice the error on such a small surface.)

Rescale your clock texture and everything will be fine. :)

Author:  patrisp [ 05-29-2016 11:47 AM ]
Post subject:  Re: Trouble with a texture on a simple patch mesh

Wow, thank you, thank you, thank you a lot. You answered so fast, and so exact. That was the problem sst13, my clock was 218x218 pix and now is 256x256 pix, and I only had to upload the png file, everything works like a charm. Thank you again, I will comment your help of course in steam workshop.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/