Stretched or repeating textures

Post here if you need help getting started with Daggerfall Unity or just want to clarify a potential bug. Questions about playing or modding classic Daggerfall should be posted to Community.
Post Reply
User avatar
Ferital
Posts: 151
Joined: Thu Apr 05, 2018 8:01 am

Stretched or repeating textures

Post by Ferital » Thu Mar 14, 2019 1:50 pm

Hi all,

Recently, I've been focusing on correcting DFU issues related to stretched or repeating textures. Some of these were already mentionted here: viewtopic.php?f=28&t=328 and viewtopic.php?f=28&t=1588

Some were due to the way DFU processed UV coordinates once read from the game files, this was almost entirely fixed. But others are already present in classic because the models are incorrecly encoded. I've managed to correct some of these last ones by patching them at runtime (new PR submitted).

But as there are still probably many other texture coordinates bugs in classic, this thread is opened as a mean to centralize all the related issues you could encounter while playing.

The best would be to provide a screenshot and the exact location where you discovered the problem.

User avatar
Nystul
Posts: 1375
Joined: Mon Mar 23, 2015 8:31 am

Re: Stretched or repeating textures

Post by Nystul » Thu Mar 14, 2019 3:29 pm

pillars in mages guilds are one example:

Image

User avatar
Ferital
Posts: 151
Joined: Thu Apr 05, 2018 8:01 am

Re: Stretched or repeating textures

Post by Ferital » Thu Mar 14, 2019 4:09 pm

Thanks Nystul! This looks pretty similar to the tavern pillars, will be an easy fix.

User avatar
Ferital
Posts: 151
Joined: Thu Apr 05, 2018 8:01 am

Re: Stretched or repeating textures

Post by Ferital » Fri Mar 15, 2019 5:00 pm

All models containing interior pillars should be fixed now. There was a fair amount of them actually.

User avatar
Nystul
Posts: 1375
Joined: Mon Mar 23, 2015 8:31 am

Re: Stretched or repeating textures

Post by Nystul » Fri Mar 15, 2019 8:06 pm

amazing! great work!

User avatar
pango
Posts: 1402
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Stretched or repeating textures

Post by pango » Fri Mar 15, 2019 11:12 pm

I was about to report some very bad case I noted in The Lysyna Cabal, Bhoriane with Daggerfall classic some time ago...
Except that with new UV interpretation, the bug is already gone... Seems DFU now does a better job than classic to interpret its own resources :o

Classic:
Daggerfall Bhoriane The Lysyna Cabal texture.jpg
Daggerfall Bhoriane The Lysyna Cabal texture.jpg (76.49 KiB) Viewed 725 times
Daggerfall Unity:
Capture du 2019-03-16 00-11-58.jpg
Capture du 2019-03-16 00-11-58.jpg (116.55 KiB) Viewed 725 times
Attachments
SAVE1.zip
(427.35 KiB) Downloaded 17 times
Last edited by pango on Sat Mar 16, 2019 7:16 am, edited 1 time in total.
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
Interkarma
Posts: 4832
Joined: Sun Mar 22, 2015 1:51 am

Re: Stretched or repeating textures

Post by Interkarma » Sat Mar 16, 2019 12:28 am

Very nice!

User avatar
pango
Posts: 1402
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Stretched or repeating textures

Post by pango » Sat Mar 16, 2019 3:16 pm

A famous collection of stretched textures is this turning secret passage (Ruins of the Wicking Farmstead, Daggerfall):
Screenshot.jpg
Screenshot.jpg (86.57 KiB) Viewed 674 times
193b.jpg
193b.jpg (90.27 KiB) Viewed 674 times
Attachments
SAVE193.zip
(303.38 KiB) Downloaded 17 times
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
pango
Posts: 1402
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Stretched or repeating textures

Post by pango » Sat Mar 16, 2019 3:26 pm

That one is interesting, because not only are UVs wrong, but the texture does not match the surrounding tunnel floor, but match the tunnel walls instead.
It doesn't look that bad with classic textures, but looks nasty with some modded textures (Yeten's Web, Daggerfall):

Modded:
Screenshot.jpg
Screenshot.jpg (236.62 KiB) Viewed 673 times
Classic:
floor classic textures.jpg
floor classic textures.jpg (103.28 KiB) Viewed 673 times
In general, classic game data does not only suffer from broken uv vectors; There's also wrong textures, approximate geometry (cracks between polygons, broken floors...)
So while I think the current way of patching UVs is okay, at some point we'll probably need a more generic overriding mechanism. But I doubt I've been the first to think about that ;)
Attachments
SAVE171.zip
(443.35 KiB) Downloaded 17 times
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
pango
Posts: 1402
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Stretched or repeating textures

Post by pango » Sun Mar 17, 2019 6:01 pm

Another famous stretched texture, at a Y corridor branching (Tricerrock's Web, Wayrest)
Screenshot.jpg
Screenshot.jpg (105.17 KiB) Viewed 621 times
In a Steep video: https://www.youtube.com/watch?v=GKfl6FgpVz8&t=1895
Attachments
SAVE195.zip
(196.68 KiB) Downloaded 17 times
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

Post Reply