Flat tiling error with custom flats
I made some 128*128 textures as flats using the material definitions. Ingame I notice the flat tiling breaks at some polygon borders. On walls the textures work just fine.
#1 Updated by jimigrey about 12 years ago
Ok, here's a screenshot: http://koti.mbnet.fi/jeejeeje/wip/doom_flat_tile_error.jpg
and wireframe overlayed: http://koti.mbnet.fi/jeejeeje/wip/doom_flat_tile_error_wire_overlay.jpg
#4 Updated by jimigrey about 12 years ago
I made a bit clearer example & screenshot of what's going on (also noticed I don't need to write material definitions to use textures as flats or other way around).
I made the floor use the damaged pipe texture, then I made some stairs which made a cut to the sector which creates the tiling error:
#5 Updated by danij about 12 years ago
#6 Updated by jimigrey about 12 years ago
I did some searching in the source code and found out that textures were aligned to 64*64 grid, but that makes any textures larger than 64*64 align incorrectly.
So I increased the grid size and large textures were aligned correctly as well.
In "edit_map.c" and "static void updateSSecMidPoint(subsector_t *sub)" I simply changed these two lines:
Which would allow 512*512 and smaller textures to align correctly..