MontyTRC89 / Tomb-Editor

Tomb Editor
56 stars 17 forks source link

WT: non-square of 2 texture size issue #794

Open LoreRaider opened 6 months ago

LoreRaider commented 6 months ago

Whenever I import a model in WadTool that uses a different texture size than a square of 2 (so 64x64, 256x256 etc...), Tomb Editor goes nuts with coordinates warnings when compiling (like when you exceed the 256x256 size in one UVmapped face), but then ingame I see no texture issues, the texture I'm using it's 1024x256 sized.

Repro steps (or just use the provided .wad2 below): -Create a new TR4 wad and click "Create" selecting "HORIZON" slot -Click on the new item, then "Edit skeleton" -Click on "Import mesh", then select the "HorizonDawn.obj" file and set import to "Normal scale to TR scale" preset -Press Ok, save the wad, load it into a project and compile the level

Expected behavior: bloat of wrong texture coordinates

image

Here's a package with a .wad2 file and object with faulty texture imported, .obj+.mtl and .png texture (in case of repro steps) ObjectIssue.zip