Ashurion Neonix Posted September 26, 2020 On 9/20/2020 at 8:52 PM, AtticTelephone said: Can't wait to play the Stock Image Megawad. Shutterstock . Wad 1 Quote Share this post Link to post
camper Posted June 29, 2023 (edited) It is very interesting. And what is there to convert levels from AssaultCube (cube 1 engine, 2.5d) to doom map in this way? First we take a screenshot of the map in assaultcube, and then we convert it into a doom map and then we edit our hands in the editor (Doom builder, etc.)? Edited June 29, 2023 by camper 0 Quote Share this post Link to post
Redneckerz Posted June 29, 2023 3 hours ago, camper said: It is very interesting. And what is there to convert levels from AssaultCube (cube 1 engine, 2.5d) to doom map in this way? First we take a screenshot of the map in assaultcube, and then we convert it into a doom map and then we edit our hands in the editor (Doom builder, etc.)? If i get it right, if you mimic this same layout in solid color, it could technically port them over. Could be interesting because you could then convert most Cube levels over to Doom given time and effort. 1 Quote Share this post Link to post
camper Posted June 29, 2023 2 hours ago, Redneckerz said: If i get it right, if you mimic this same layout in solid color, it could technically port them over. Could be interesting because you could then convert most Cube levels over to Doom given time and effort. This is just a screenshot straight from AC's multiplayer game in Spectator State. I think this should be redrawn, as shown in the first post of this topic. Yes, I would like to experiment with it. 0 Quote Share this post Link to post
Dragonfly Posted July 3, 2023 (edited) I've made a map generator to accompany PNG2WAD. Was a fun little project, though it features a handful of small issues and things to work on. https://www.dfdoom.com/mapgen/ Some examples of its output: If I were to develop further I think making a few more prefab rooms would be a good starting point, as well as a variety of start rooms and additional modifiers. It's a shame PNG2WAD doesn't support additional features such as control over enemy/thing placement, teleporters, sector height variation / stairs, etc. Edited July 3, 2023 by Dragonfly 8 Quote Share this post Link to post
Gibbitudinous Posted July 3, 2023 On 9/20/2020 at 2:54 PM, Dexiaz said: Well...I've already did this (nsfw) many years ago without special converters...shame on me. So since imgur has purged this post, what the heck even was the image? 0 Quote Share this post Link to post
Shepardus Posted July 3, 2023 1 hour ago, Gibbitudinous said: So since imgur has purged this post, what the heck even was the image? Wayback Machine still has it (and yes, the NSFW warning isn't for nothing). 2 Quote Share this post Link to post
david_a Posted July 3, 2023 15 hours ago, Dragonfly said: I've made a map generator to accompany PNG2WAD. Was a fun little project, though it features a handful of small issues and things to work on. https://www.dfdoom.com/mapgen/ Some examples of its output: If I were to develop further I think making a few more prefab rooms would be a good starting point, as well as a variety of start rooms and additional modifiers. It's a shame PNG2WAD doesn't support additional features such as control over enemy/thing placement, teleporters, sector height variation / stairs, etc. Do you have the source for the generator published anywhere? I'm curious about the generation; looks like you might just be generating rectangles next to other rectangles? Have you looked into using a quad tree? Chapter 3 of the free Procedural Content Generation in Games book goes into this. I think if things like height variation get added to PNG2WAD it will start to get out of hand - either the image will have to rely on a ton of subtle shade differences that humans won't perceive very well or it would need multiple images (for layers) and it starts kinda defeating the point, since it would be easier just to fire up a map editor. 1 Quote Share this post Link to post
Dragonfly Posted July 3, 2023 (edited) 4 hours ago, david_a said: looks like you might just be generating rectangles next to other rectangles? Nailed it! :p You can view the source as you would any webpage, it's all there: [edit: linking to a view-source: link on DW becomes broken, probably some link sanitisation going on there - but yes, right click then view page source and you'll see everything] It's not overly sophisticated by any stretch of the imagination, just a fun little weekend project. As it stands I don't feel motivated to go too in-depth and elaborate on this generator when the output will always be flat and there's no control over enemy placement or thing placement - some maps are practically impossible (well, unpleasantly difficult) despite being laid out well simply due to the PNG2WAD tool picking random options. 😅 That said, I do think I could repurpose this generator into a D&D map generator of sorts, if I set up a tileset for it - and that would be worthy of studying better generation methods; Thanks for the link! Edited July 3, 2023 by Dragonfly 1 Quote Share this post Link to post
david_a Posted July 5, 2023 Ah, I didn't realize it was all client-side JavaScript. I've messed around with generating levels for ECWolf since it has a text-based level format similar to UWMF that's not too bad to deal with. My generator was also at the stage of "slapping rectangles together." I found that book which has a lot of interesting ideas for more sophisticated generators, but I think one of my limiting factors is that I barely care about Wolf 3D so it's hard to get motivated. For something like D&D maps the ideas in there would be great. The stuff with "grammars" for describing the flow of a level sounds really neat. The prohibitive effort involved with making a "real" generator led me down the path of trying to use a GAN to generate levels based on user-created maps, but there's just not enough of them. I downloaded all I could find and after filtering out all the absolute garbage I only had something like 5,000. I can't remember if that was before or after I expanded the data (mirroring, rotating, etc). Oh, I remember that I did make a cave level generator using cellular automata. That's also covered by the book I believe; it's a fun rabbit hole to go down! 2 Quote Share this post Link to post
Dragonfly Posted July 5, 2023 1 hour ago, david_a said: Oh, I remember that I did make a cave level generator using cellular automata. That's also covered by the book I believe; it's a fun rabbit hole to go down! On one hand I'm quite excited / interested in the idea of diving deeper... On the other hand I'm rather hesitant, knowing just how much time it'd eat up! 😅 Definitely something I've got some interest in though, so I won't say never! Thanks for your insight, I appreciate it. 0 Quote Share this post Link to post
david_a Posted July 5, 2023 I realized I have a some images on my work machine I can show off. Attached is a generated cave. The pink dots are light sources and the yellow dots are treasure (supposed to be hidden in the shadows). I made a lighting system for ECWolf that relied on a ton of different texture definitions. It was completely fake (items/enemies/etc weren't affected by it) but still looked pretty cool. You can see that just the preview image could probably be pretty useful for D&D. I had moved on to generating caves in Doom instead of Wolf 3D since the limitations were annoying. Far, far harder. I don't have anything on hand to show off, but where I left off was adding height variations. What I tried was very unsatisfying and it didn't feel very cavey. Cellular automata for caves is pretty simple to get going with, but the hardest part will be stopping! 😊 4 Quote Share this post Link to post
Dragonfly Posted July 5, 2023 4 hours ago, david_a said: I realized I have a some images on my work machine I can show off. Attached is a generated cave. The pink dots are light sources and the yellow dots are treasure (supposed to be hidden in the shadows). I made a lighting system for ECWolf that relied on a ton of different texture definitions. It was completely fake (items/enemies/etc weren't affected by it) but still looked pretty cool. You can see that just the preview image could probably be pretty useful for D&D. I had moved on to generating caves in Doom instead of Wolf 3D since the limitations were annoying. Far, far harder. I don't have anything on hand to show off, but where I left off was adding height variations. What I tried was very unsatisfying and it didn't feel very cavey. Cellular automata for caves is pretty simple to get going with, but the hardest part will be stopping! 😊 This is awesome! Yeah, definitely something to get stuck into in the future. The other option I always see thrown about is making use of perlin noise, which I'm not so sure would be good for rooms and such but I know it's a great technique for natural terrrain. I recently watched a video of a talk that took place at Jfokus 2022 on how the Minecraft developers made use of several different sets of Perlin Noise to handle their world generation. I'm sure in practice it's a lot of work to implement but the way it's explained here makes it sound achieveable. Again, another avenue I'd definitely be interested in pursuing. 1 Quote Share this post Link to post
david_a Posted July 6, 2023 (edited) Gradient noise (I think everyone uses Simplex nowadays; also from Ken Perlin) is good if you want to create enormous or perhaps infinite terrain. It's not so great for something like a cave in Wolf 3D / Doom / D&D where you want it to be an enclosed area. Cellular automata excels at that since you can set up the rules so that the empty area will never connect with the border. Chapter 3.4 in that book talks about CA a little, but there are lots of detailed write-ups online. Edit: One more link - if you haven't seen the Red Blob Games tutorials you're in for a treat. He has a ton of interactive explanations for various topics. Edited July 6, 2023 by david_a 2 Quote Share this post Link to post
camper Posted September 1, 2023 (edited) I experimented with converting map images from AC to wad. 1. First you need to remove the distortion of the map, I did this on boxes that are actually cubic in shape and using aspect ratios led the image to ensure that the boxes were square, not rectangular. Then the extra parts of the image were transferred to the alpha channel. 2. Then I reduced the resolution, considering that 1 pixel has a size of 64*64, by the way, the size of the small box in AC is also close to the size of 64*64. Therefore, it is not difficult to choose a reduction factor. 3. The next step is painting. I just painted all the corridors black and outside the sectors white. 4. Next, convert the image to wad using png2wad. And only then there will be a manual edition of the map. Spoiler Edited September 1, 2023 by camper 3 Quote Share this post Link to post
SilverMiner Posted September 1, 2023 (edited) 16 minutes ago, camper said: I experimented with converting map images from AC to wad. 1. First you need to remove the distortion of the map, I did this on boxes that are actually cubic in shape and using aspect ratios led the image to ensure that the boxes were square, not rectangular. Then the extra parts of the image were transferred to the alpha channel. 2. Then I reduced the resolution, considering that 1 pixel has a size of 64*64, by the way, the size of the small box in AC is also close to the size of 64*64. Therefore, it is not difficult to choose a reduction factor. 3. The next step is painting. I just painted all the corridors black and outside the sectors white. 4. Next, convert the image to wad using png2wad. And only then there will be a manual edition of the map. In Doom Builders you can put the image as a background and it should help to draw further geometry Edited September 1, 2023 by SilverMiner 4 Quote Share this post Link to post
camper Posted September 18, 2023 On 9/1/2023 at 12:11 PM, SilverMiner said: In Doom Builders you can put the image as a background and it should help to draw further geometry This is great advice, unfortunately I only appreciated it now that I installed the old doom builder, in addition to the ultimate doom builder. In the ultimate doom builder this doesn't work correctly and it confused me a bit. 1 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.