Talk:OBSIDIAN

From DoomWiki.org

Revision as of 12:12, 3 March 2022 by PhilthyPhilistine (talk | contribs) (Node builder)

RNG method

When this article was created yesterday, one of the Features listed was the different RNG from OBLIGE. I was curious what this was, so I looked into the GitHub repo, and it appears that Mersenne Twister was retired to the "attic" a few months ago and replaced by fastPRNG. (This means it's currently incorrectly stated in the Obsidian README file and thus this article is out-of-date too.)

At this point, I don't think it's worth listing as a feature, since either RNG is probably good enough randomness for this tool. But the new one being faster would make sense for less time to make maps.

(This is in contrast to the replacement of Carmack's very basic RNG for vanilla Doom with Mersenne Twister in ZDoom long ago. That's a big step up in terms of RNG quality worth noting in that article. Plus it's a popular source port, so it's fundamentally more significant.) --PhilthyPhilistine (talk) 19:59, 2 March 2022 (CST)

To clarify, the original RNG method was actually a custom RNG by Andrew Apted called AJRand. It was a merger of multiple low-quality RNG's to produce a number that had a lot of bias. We initially introduced Mersenne Twister to get higher quality numbers replacing AJRand. Out of another user's concern though, we eventually settled with fastPRNG/xoshiro for performance reasons. Truth be told, AJRand on its own was sufficient for the purposes of a map generator but since the new work is already there and we just prefer larger numbers with lesser bias, there's currently no point going back to AJRand. The README file is frequently out-of-date due to the rapid pace of changes unfortunately.
That aside, seeds can now also be input as strings rather than just numbers, something that was not originally available to Oblige and that fastPRNG is also driving the number gen for our SLUMP variant. MsrSgtShooterPerson (talk) 21:05, 2 March 2022 (CST)
Thanks for explaining this. I actually briefly looked at the AJrand code when I poked around your attic last night. Even though it was good enough, it's cool you now have better and faster RNG. I tried Obsidian a bit last summer and had some pretty good results, so I'll probably use it again sometime down the road. (I still have a number of person-made mapsets in my queue first.)
As for this article, I don't think the more flexible seed inputs is a big enough feature to mention in the list. (Definitely a nice improvement to the tool, though. I appreciate the work you and others are doing on it.) --PhilthyPhilistine (talk) 10:27, 3 March 2022 (CST)

Node builder

Question: How does the change of node builder affect the map output? For context, I've never made a map for any video game. (I first encountered the terms "node builder" and "spatial grammars" when I started working on these articles 2 days ago.)

Follow-on: If the change of node builder is not much of a difference, is it worth keeping in the Features list for educational purposes? --PhilthyPhilistine (talk) 10:33, 3 March 2022 (CST)

ZDBSP is significantly more featured/modernized and is required for things such as UDMF support so it is absolutely a relevant detail. --Quasar (talk) 11:06, 3 March 2022 (CST)
Thanks for explaining. In the Features list, I merged the UDMF item with ZDBSP since they're directly related. --PhilthyPhilistine (talk) 11:12, 3 March 2022 (CST)