[Closed] [don't know how long] In-game texture scaling problems

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

[don't know how long] In-game texture scaling problems

Postby Matilda Clumbleforth » Wed May 18, 2011 1:59 pm

Okay, I've been witnessing this problem for a few months now. I extensively make use of UDMF's internal texture scaling in my maps. These show up just fine in Doom Builder 2, but in-game, there's quite a few oddities. Here's an example.

[img]http://i.cubeupload.com/aOBBc4.jpg[/img]

This texture is 128x128. The X scaling is not changed, but I used a Y scaling factor of 2.667 to make it fit this upper texture area. As you can see, it looks just fine here. But in-game...

[img]http://i.cubeupload.com/TAT9Lt.jpg[/img]

Yeaaah...

When I run GZDoom, it says "NPO2 textures supported," so I'm not sure what's up. Is scaling broken or something?
Matilda Clumbleforth
 

Re: [don't know how long] In-game texture scaling problems

Postby Graf Zahl » Wed May 18, 2011 2:15 pm

Without seeing your map it's impossible to tell if it's a problem with ZDoom, GZDoom or Doombuilder.
If it's the same in ZDoom and GZDoom the plugin is at fault.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [don't know how long] In-game texture scaling problems

Postby Matilda Clumbleforth » Wed May 18, 2011 2:35 pm

Well honestly, basic division dictates that it is correct. The space for that texture is 128x48. 128 divided by 48 produces 2.6666666666666666666666666666667 in microsoft's calculator, which DB2 truncates to 2.667, I assume for the sake of rounding it off.

Here. I defined a new version of that texture with a Y-scaling factor of 2.666... (and shortened to 2.667) and tried it out in my map, after removing UDMF internal scaling from the line. This produces even more bizarre results. Usually, TEXTURES scaling doesn't produce any errors.

[img]http://i.cubeupload.com/YHDSrk.jpg[/img]

If you still can't think of any way to diagnose a problem, I guess I can strip down my map to just a few problem areas for you to examine.
Matilda Clumbleforth
 

Re: [don't know how long] In-game texture scaling problems

Postby Graf Zahl » Wed May 18, 2011 5:31 pm

ZDoom came first, so whatever it does is correct. If GZDoom deviates from that it's a bug. If the DB plugin deviates, it's also a bug.

And no, I can't diagnose anything without seeing the map.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [don't know how long] In-game texture scaling problems

Postby Matilda Clumbleforth » Wed May 18, 2011 6:16 pm

Interesting. I tried ZDoom and you know what? Things are scaled correctly. It seems there's an issue with GZDoom. Or it could be my configuration, but I haven't changed anything in [i]years.[/i]

Here is a test map. I'm sorry it's so weird, it's a heavily cut down version of my map. The texture exhibiting this problem is BIGDOOR7, over the little hallway.

http://www.sendspace.com/file/34fzxh
Matilda Clumbleforth
 

Re: [don't know how long] In-game texture scaling problems

Postby Graf Zahl » Sun Apr 08, 2012 4:17 am

The file is gone, so unless someone can post an example for this problem I won't be able to do anything about it.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [don't know how long] In-game texture scaling problems

Postby cocka » Thu Jan 17, 2013 9:07 pm

OK, let's update this topic.

This is not an udmf-specific problem. This is obviously a bug related to GZDoom.

Proof:

http://forum.drdteam.org/viewtopic.php?f=24&t=5943

It doesn't matter whether you use udmf or hexen format, problem is the same. ZDoom does offsetting perfectly, but GZDoom doesn't.
User avatar
cocka
 
Joined: 02 Jul 2011
Location: Hungary

Re: [don't know how long] In-game texture scaling problems

Postby cocka » Sat Aug 24, 2013 1:20 pm

Why has this topic been moved to the Closed Bugs forum? It's a still existing problem.

Only udmf scaling was used:

Zdoom: http://imageshack.us/a/img6/5219/fhwp.png

GZdoom: http://imageshack.us/a/img835/2276/ehdt.png

Zandronum: http://imageshack.us/a/img853/4718/d7cf.png

unless someone can post an example for this problem


But I can show you the map from where the screenshots were taken. Here it is:

udmfmap.wad
(5.07 KiB) Downloaded 45 times
User avatar
cocka
 
Joined: 02 Jul 2011
Location: Hungary

Re: [don't know how long] In-game texture scaling problems

Postby Graf Zahl » Sat Aug 24, 2013 1:36 pm

cocka wrote:Why has this topic been moved to the Closed Bugs forum?


Because there was nothing to investigate. Bug reports that don't get any response by the original poster even after asking for feedback can't just linger around indefinitely.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [don't know how long] In-game texture scaling problems

Postby cocka » Sat Aug 24, 2013 2:23 pm

And is there a solution for this? Because it's rather a gzdoom related problem.

Otherwise is it OK to post here gzdoom bugs on zdoom forum?
User avatar
cocka
 
Joined: 02 Jul 2011
Location: Hungary

Re: [don't know how long] In-game texture scaling problems

Postby Graf Zahl » Sat Aug 24, 2013 3:43 pm

Can't say yet. I won't have time to investiagate until mid week.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [don't know how long] In-game texture scaling problems

Postby Graf Zahl » Tue Aug 27, 2013 4:43 pm

Fixed. There was a major f*ckup in the coordinate calculation code (multiplication instead of division by a fixed point value) thanks to a very broken code submission 10 months ago. It was showing problems before but my first attempt to fix it was clearly not correct.

Ironically the broken code was supposed to fix the bug being originally reported here... :?

I haven't been playing much Doom since then, otherwise I might have encountered oddities elsewhere, too.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 2 guests