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: 282
Joined: Thu Apr 05, 2018 8:01 am

Re: Stretched or repeating textures

Post by Ferital »

Thanks a lot for these saves Banshee.

Actually the wall was not a game data bug but a DFU one. For information, each texture coordinate in classic should be a multiple of 16, but apparently some were not and as such, were not processed correctly through our UV unpacking method.

Anyway, I fixed this as well as the 3 houses entrance doors (PR updated).

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

Re: Stretched or repeating textures

Post by Ferital »

pango wrote: Sun Mar 17, 2019 6:01 pm Another famous stretched texture, at a Y corridor branching (Tricerrock's Web, Wayrest)
Screenshot.jpg

In a Steep video: https://www.youtube.com/watch?v=GKfl6FgpVz8&t=1895
I just fixed this one as well (PR updated again).

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

Re: Stretched or repeating textures

Post by pango »

A similar issue on a shop frontage on the marketplace of Ephesus city, Ephesus.
ephesus - dfu.jpg
ephesus - dfu.jpg (196.77 KiB) Viewed 2173 times
The texture is not correct in Daggerfall classic either.
ephesus - classic.jpg
ephesus - classic.jpg (153.66 KiB) Viewed 2173 times
Attachments
SAVE1.zip
(510.01 KiB) Downloaded 109 times
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

BansheeXYZ
Posts: 555
Joined: Fri Oct 23, 2015 8:19 pm

Re: Stretched or repeating textures

Post by BansheeXYZ »

Don't these fixes affect all iterations of the building? In other words, fixing the general store in one region should apply to other regions? All the regions do is change the texture, not the way it's applied. The bug is in the way it's applied. So I thought.

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

Re: Stretched or repeating textures

Post by Ferital »

@pango, thanks for the report, I'll include this one in my next batch of model fixes.
@Banshee, this is not the same model as the other General store, this one is a specific building with a flat roof used only in desertic countries.

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

Re: Stretched or repeating textures

Post by pango »

Another one, near the entrance of the Mages Guild of Dragontail, Dragontail Mountains:
Screenshot.jpg
Screenshot.jpg (190.53 KiB) Viewed 2117 times
Attachments
SAVE214.zip
(406.85 KiB) Downloaded 100 times
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

BansheeXYZ
Posts: 555
Joined: Fri Oct 23, 2015 8:19 pm

Re: Stretched or repeating textures

Post by BansheeXYZ »

Ferital wrote: Sun Apr 14, 2019 1:44 pm@Banshee, this is not the same model as the other General store, this one is a specific building with a flat roof used only in desertic countries.
K, good to know.

3 more textures for you:
moretextures.zip
(392.19 KiB) Downloaded 106 times

User avatar
SlainByWoodborne
Posts: 67
Joined: Fri Apr 12, 2019 4:24 am

Re: Stretched or repeating textures

Post by SlainByWoodborne »

Win_x64_0.7.91: Several stretched textures

01: This gate in the Orsinium has a stretched stone texture. Should this be wood texture instead?
02: Upvale
03: Upvale
Attachments
Stretched_texture_01_SAVE48.7z
(216.03 KiB) Downloaded 100 times
Stretched_texture_03_SAVE54.7z
(293.32 KiB) Downloaded 102 times
Stretched_texture_02_SAVE53.7z
(278.11 KiB) Downloaded 93 times

BansheeXYZ
Posts: 555
Joined: Fri Oct 23, 2015 8:19 pm

Re: Stretched or repeating textures

Post by BansheeXYZ »

I noticed that some of the last reports didn't make it in the May builds. You still there Ferital? I have some roofs to report when you're ready.

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

Re: Stretched or repeating textures

Post by Ferital »

Yes, I started to work on them during April until I came into another problem with our current UV unpacking method, which produces bad results on some roofs precisely. I was completely unable to fix the method without breaking more models. So I did some reverse engineering to understand how classic actually deals with texture coordinates. But what I found (it was last week) left me quite... perplexed. For devs, after a bsa record from arch3d.bsa has been read, the whole dword value containing both U and V is multiplied by 16. I didn't went further to see how the engine itself handles this when it's using the coordinates for rendering. So I left this for now, it was too much time consuming and I will focus on correcting bad game data at the moment.

So Banshee, to answer your question, you can still post about texture coordinates problems here. I will start to work on them again later in the month, when I'll get some real life time to do that. :)

Post Reply