[r3978] Part of wall disappears : a single line in udmf

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.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [r3978] Part of wall disappears : a single line in udmf

Re: [r3978] Part of wall disappears : a single line in udmf

by randi » Fri Dec 07, 2012 10:25 pm

I didn't see any information that looked wrong.

Re: [r3978] Part of wall disappears : a single line in udmf

by Gez » Fri Dec 07, 2012 9:46 am

So this seem to clear the mystery of "why doesn't ZDBSP generate the same nodes as ZDoom itself".

Randy, can you check I'm not saying anything dumb here?

Re: [r3978] Part of wall disappears : a single line in udmf

by Enjay » Fri Dec 07, 2012 3:47 am

cocka wrote:OK, but this is the circumvention of the problem and the fact remains that it is a bug.
Indeed. I wasn't trying to say that it wasn't a bug or that you should try to work around the problem. I was providing evidence suggesting that your suspicion was correct. (Albeit that when I did so I it seems as if I was typing using rubber fingers or something.)

Anyway, it looks like its fixed now. Thanks Randy & Graf.

Re: [r3978] Part of wall disappears : a single line in udmf

by Graf Zahl » Fri Dec 07, 2012 1:41 am

Now it's fixed for real. ;) (r3982)

Re: [r3978] Part of wall disappears : a single line in udmf

by randi » Fri Dec 07, 2012 12:22 am

Fixed in r3980 (ZDoom) and r3981 (ZDSP). I will try to get an updated version of ZDBSP up within 24 hours after I'm satisfied that the introduction of a new node format didn't break the writing of any of the existing formats.

Re: [r3978] Part of wall disappears : a single line in udmf

by Xaser » Thu Dec 06, 2012 11:17 pm

That could indeed explain why I was never able to get satisfactory results out of ZDBSP for ZDCMP2. If that's fixable, that'd make me a happy Xaser. :D

Re: [r3978] Part of wall disappears : a single line in udmf

by randi » Thu Dec 06, 2012 11:13 pm

I have reconfirmed that, aside from off-by-one-bit differences when loading fractional vertex data, the internal node builder and ZDBSP are, indeed, generating absolutely identical nodes. There's just one problem: None of the node formats support node splitters with fractional coordinates, so ZDBSP cannot save its nodes exactly as generated. Oops.

Re: [r3978] Part of wall disappears : a single line in udmf

by ChronoSeth » Thu Dec 06, 2012 7:03 pm

I'm completely dumbfounded as to why zdoom's internal nodebuilder produces different (and better) results than ZDBSP. Aren't they (almost) exactly the same thing?

Re: [r3978] Part of wall disappears : a single line in udmf

by cocka » Thu Dec 06, 2012 5:55 pm

to move the few vertices that were using fractional coordinates to vertices to whole number coordinates
OK, but this is the circumvention of the problem and the fact remains that it is a bug.

Re: [r3978] Part of wall disappears : a single line in udmf

by Enjay » Thu Dec 06, 2012 4:48 pm

cocka wrote:I think it has something to do with the vertices using fractional numbers for their coordinates.
I think you're right. I just used DB2 to move the few vertices that were using fractional coordinates to vertices to whole number coordinates then saved the map. On testing it, the problem had gone.

Re: [r3978] Part of wall disappears : a single line in udmf

by cocka » Thu Dec 06, 2012 4:36 pm

but gennodes 1 removes the glitch.
If you "convert" it to hexen format, the glitch will be gone too.
As to why this is happening, I have no idea.
Obviously, this is a bug. I wouldn't have written it here, if there were no problem at all.

I think it has something to do with the vertices using fractional numbers for their coordinates.

Re: [r3978] Part of wall disappears : a single line in udmf

by Enjay » Thu Dec 06, 2012 2:01 pm

Just confirming that when I build the nodes manually from the command prompt using my usual settings ( -x -z -w -b -r ) or build them via DB2, the glitch persists but gennodes 1 removes the glitch. As to why this is happening, I have no idea.

Re: [r3978] Part of wall disappears : a single line in udmf

by cocka » Thu Dec 06, 2012 1:43 pm

OK, but the question is: why does zdbsp not work properly? If there is a routine in zdoom for building the nodes perfectly, why does zdbsp not use that routine? And why does it produce glitches by building nodes?

Re: [r3978] Part of wall disappears : a single line in udmf

by Blue Shadow » Thu Dec 06, 2012 10:27 am

No. What I was saying is the problem is with the nodes and running it with gennodes enabled is the proof that it is.

There's an alternative: Delete the nodes from the map (use SLADE) and don't build them yourself. ZDoom will do it for you when you start the map. The downside to this, however, is that the map will take longer to load/start the larger it gets.

Re: [r3978] Part of wall disappears : a single line in udmf

by cocka » Thu Dec 06, 2012 10:17 am

So are you telling me that every time I load the map I should use a console command and reload the map to correct the glitch? :lol:

Top