[Fixed] Using highres textures screws them
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
-
randi
- Site Admin
- Posts: 7750
- Joined: Wed Jul 09, 2003 10:30 pm
When I implemented the high-res textures, I didn't think about people using texture packs to replace the stock textures. I only thought of people using them as new textures, in which case, alignment wouldn't be a problem.
I could add another parameter to the texture definition in TEXTUREx that determines how the offsets are done. Once an editor supports it, this should be the most convenient solution because it would allow you to set the texture's scale and offset behavior in the same place. Should I do this?
I could add another parameter to the texture definition in TEXTUREx that determines how the offsets are done. Once an editor supports it, this should be the most convenient solution because it would allow you to set the texture's scale and offset behavior in the same place. Should I do this?
-
Zell
- Posts: 791
- Joined: Thu Jul 24, 2003 7:47 am
- Location: IN A GODDAMN BOX[In Erie.]
-
LilWhiteMouse
- Posts: 2270
- Joined: Tue Jul 15, 2003 7:00 pm
- Location: Maine, US
-
randi
- Site Admin
- Posts: 7750
- Joined: Wed Jul 09, 2003 10:30 pm
-
Chris
- Posts: 3001
- Joined: Thu Jul 17, 2003 12:07 am
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
-
HotWax
- Posts: 10002
- Joined: Fri Jul 18, 2003 6:18 pm
- Location: Idaho Falls, ID
-
Enjay
-

- Posts: 27647
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
Yes. If it's all contained in the texture lump, it won't break any existing stuff which already works and it will ensure any replacement packs made with the feature will work with as many WADs as possible. No potentially conflicting MAPINFO's or anything.randy wrote:Should I do this?
Sounds good to me.
Obviously there is an editor implication, but it sounds like the kind of thing that should be easy to incorporate. He said, not knowing anything about what is involved. But again, if it is all determined by the texture, then the editor should be able to be modified to read that and offset textures by whichever method is determined by the texture.
-
Hirogen2
- Posts: 2033
- Joined: Sat Jul 19, 2003 6:15 am
- Operating System Version (Optional): Tumbleweed x64
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: Central Germany
Assuming that you AT LEAST got a copy of your textures on the hard disk (-> to make them go into a WAD of course), you could do thisGraf Zahl wrote:Same problem: It has to be done individually for each texture. Not the kind of solution I'd like. Something like this should be either global or at least map specific.
Code: Select all
perl -e 'print "NoScaledOffsets texture ",($_=~/(.*)\.bmp/i)[0] for<*.bmp>'
-
Hirogen2
- Posts: 2033
- Joined: Sat Jul 19, 2003 6:15 am
- Operating System Version (Optional): Tumbleweed x64
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: Central Germany
No please not. IMO it's useless to poke on a yet-old thing (TEXTURE1), which is even cramped (a text file like DECORATE, etc is more flexible).randy wrote:I could add another parameter to the texture definition in TEXTUREx that determines how the offsets are done. Once an editor supports it, this should be the most convenient solution because it would allow you to set the texture's scale and offset behavior in the same place. Should I do this?
-
Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Hirogen2 wrote:No please not. IMO it's useless to poke on a yet-old thing (TEXTURE1), which is even cramped (a text file like DECORATE, etc is more flexible).randy wrote:I could add another parameter to the texture definition in TEXTUREx that determines how the offsets are done. Once an editor supports it, this should be the most convenient solution because it would allow you to set the texture's scale and offset behavior in the same place. Should I do this?
No, it is NOT useless! TEXTUREx is currently the only means to define scaled textures. The texture definition has to be somewhere anyway (to set the scale) so this stuff should be put where it belongs (i.e. in the texture definition!) and not in yet another separate file so that nobody is going to find this stuff. It's bad enough that there are already 3 lumps to define texture animations and switches. I don't want another one!
-
Hirogen2
- Posts: 2033
- Joined: Sat Jul 19, 2003 6:15 am
- Operating System Version (Optional): Tumbleweed x64
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: Central Germany
Yes, yes, TEXTUREx is the only way to do that... but the space in TEXTUREx is consumed by now (the two short ints have been taken by texture scaling). "in the texture definitoin" -> ANIMDEFS see aboveGraf Zahl wrote:No, it is NOT useless! TEXTUREx is currently the only means to define scaled textures. The texture definition has to be somewhere anyway (to set the scale) so this stuff should be put where it belongs (i.e. in the texture definition!) and not in yet another separate file so that nobody is going to find this stuff. It's bad enough that there are already 3 lumps to define texture animations and switches. I don't want another one!
3 Lumps? WTF? Which ones? PNAMES, TEXTUREx and ANIMDEFS? Well, if you only use the "new" system (includes said TX stuff in ANIMDEFS), you'd only have one.
-
Chris
- Posts: 3001
- Joined: Thu Jul 17, 2003 12:07 am
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
-
Enjay
-

- Posts: 27647
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
Well, if you wanted, you could use a combination of texture1, texture2, pnames, SWITCHES lump, ANIMATED lump and ANIMDEFS to define your textures, animations and switches. Then of course, we have all the sections in a WAD that something can be put on a wall from under the new texture system. 
If there is space in the TEXTUREx lump, and Randy seems to say there is, then that would be the most sensible place for it. It's already used to define scaling. Zdoom, editing tools and the people using them look in the TEXTUREx definition for this info. It makes sense to keep it all there if at all possible.
If there is space in the TEXTUREx lump, and Randy seems to say there is, then that would be the most sensible place for it. It's already used to define scaling. Zdoom, editing tools and the people using them look in the TEXTUREx definition for this info. It makes sense to keep it all there if at all possible.
-
Hirogen2
- Posts: 2033
- Joined: Sat Jul 19, 2003 6:15 am
- Operating System Version (Optional): Tumbleweed x64
- Graphics Processor: Intel with Vulkan/Metal Support
- Location: Central Germany
But XWE says something of Xscale and Yscale which made me guess that it used both.Chris wrote:Actually, only 1 of the 4 unused shorts is used for scaling.the two short ints have been taken by texture scaling
Oh yeah I just read UDS again and saw there are four free fields... but XWE only displays name,width,height,xscale,yscale and number of patches, so... it doesnot show the unused ones
Last edited by Hirogen2 on Tue Sep 16, 2003 8:53 am, edited 1 time in total.