Jump to content
The Dark Mod Forums

What is the ultimate maximum size possible - the editor dimension limits?


Komag

Recommended Posts

I'm wondering what the largest possible world size it, in something like square miles.

 

I see in DarkRadiant (and I think it's the same in DoomEd) the units for the editor max out at 65,536 in each direction from the origin 0,0,0 (that's 2 to the 16 power, by the way).

 

So, for example, from the extreme north end to the extreme south end there are 131,072 units.

 

My question then is, do we have a clear conversion rate for these units to feet or meters? To my untrained eyes, it appears to me that about 16 units looks like a foot.

 

If that's the case, then the north-to-south max distance is 8192 feet, or about 1.5 miles (2.5 kilometers), making the whole flat plane about 2.5 square miles (6.25 square kilometers).

 

If that's accurate, it means that although we have a pretty dang large area to work in, if we REALLY wanted to recreate a full scale medieval London for instance, we would be quite limited space-wise.

 

Am I close on these figures, or have I completely missed something?

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

  • Replies 64
  • Created
  • Last Reply

Top Posters In This Topic

One DoomUnit is considered an inch. With an inch = 2.54 cm you'll get 3329 meters, so the total area of a plain map would be more than 10 km².

 

And don't forget you can build your map 3.3 km high. :P

Link to comment
Share on other sites

You can't create a full-size medieval London? That's it, I'm giving up on this crappy engine right away.

 

The co-ordinates are actually floating point so they do not max out at 65536 (although the editor grid may well be limited to this). However, floating point has a limited precision so once you start getting a long way from the origin, you will find that rounding errors become more of a problem.

Link to comment
Share on other sites

Hmm, are these floating point rounding errors something that will bite us in the butt if we build wide?

 

And I've looked at more stuff with the 1 unit = 1 inch measure, and I just don't think it's accurate.

 

An 8 unit thick wall looks only around 6 inches thick to me, a 120 unit wide hallway looks only around 7 or 8 feet wide to me (not 10 feet), and the desk model we have sits with the top about 40 units off the floor, whereas my desk and also my wife's desk are measured at about 30 inches off the floor, not 40.

 

All that points back to my original estimate of 16 units = 1 foot (not 12 units = 1 foot)

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

Hmm, are these floating point rounding errors something that will bite us in the butt if we build wide?

 

It will become a problem if you try to create fine detail at a very large distance from the origin, but probably not during ordinary mapping.

 

Imagine that the brush coordinates have a fixed number of significant figures (not strictly true, since they are using binary not decimal, but the approximation is good enough). If you place a brush from 8.0 to 16.0 there is no problem, but try to place once from 1000008.0 to 1000016.0 and they will both get rounded to 1000000.0.

Link to comment
Share on other sites

Does Doom 3 still use floats? We upgraded DarkRadiant to use doubles instead just to address this issue, haven't we?

 

edit: Just looked through the SDK map parser, it does indeed use floats. idVec3 is also using floats.

Link to comment
Share on other sites

Is it easy to set up loadzones?

I would think if you really want to make that massive of a city, you could just have a wall & gate (or series of them) at one far end of a map that bottlenecks the area and put loadzones to the other half of the city that's just a completely new map, and it really wouldn't be so bad ... as long as the open playable area itself were massive. So you'd only run into a loadzone after hours of play, and only once, and then you're in another massive open playing area for hours.

Edited by demagogue

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

Even if someone did make a really large map that took up all the available space in the editor, it would take a really long time for Doom3 to load it into memory, which would make it a bad idea because it would be so much easier to just use level endings.

Link to comment
Share on other sites

Maybe you could do some sort of secret teleport system to warp the player back to the other side of the editing world but down a few thousand units without noticing anything, and you can thus create "layers" of city stacked up. The player would get the illusion that he is just continuing to move in the same direction further and further and further and further....

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

With mass cloning it might not be too 'difficult' to make a very large bland and repeating test map with about 50 stacks of 2 x 2 miles each about 200 foot high that's 100 x 100 miles or 10,000 square miles. Big enough for ya? Problem as said is handling the file size but it illustrates that the only limit is labour, imagination, RAM size and so on.

 

[EDIT] Plus I don't know if there's a pathfinding limit like in T2

Link to comment
Share on other sites

Yeah, I'm also wondering what other limits we might find (other than the number of objects limit which can be raised, but how much?)

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

If you place a brush from 8.0 to 16.0 there is no problem, but try to place once from 1000008.0 to 1000016.0 and they will both get rounded to 1000000.0.

Umm, ahem. 1000008.0 is, you may have noticed, an integer. Even with only single-precision floats you can precisely represent any integer all the way up to 16,777,216.

Link to comment
Share on other sites

Umm, ahem. 1000008.0 is, you may have noticed, an integer. Even with only single-precision floats you can precisely represent any integer all the way up to 16,777,216.

 

I know, it was just an hypothetical example to illustrate the concept.

 

In reality, the problems will probably not occur with simple axis-aligned brushes at nice rounded intervals; the errors happen when you start using the clipper tool or vertex editing to produce angled edges. Because each brush is represented as the intersection of a number of planes, each of which uses a plane equation, angled surfaces can end up with some very ugly floating-point coordinates even if every one of the vertices is grid-aligned.

Link to comment
Share on other sites

Maybe you could do some sort of secret teleport system to warp the player back to the other side of the editing world but down a few thousand units without noticing anything, and you can thus create "layers" of city stacked up. The player would get the illusion that he is just continuing to move in the same direction further and further and further and further....

 

Or you guys could just switch over to PREY and use those huge visual teleporters and build the whole city in mutliple Layers... ;);)

Link to comment
Share on other sites

Speaking of floating points, when you create a func_static does it "offset" the brushes/patches from it's origin or does it still use world coordinates? I know it would use world coordinates for the origin of the static but what about brushes within the static? If it does offset from it's origin, then it would mean that anything detailed could be grouped into statics (I do this now anyway) and would avoid the large floating point value errors.

Link to comment
Share on other sites

All child primitives are measured relatively to the origin of the parent func_* entity. Whether this is a workaround or not depends on the way things are handled within the engine. If the children are translated at map loading time, this would resolve nothing. If it is handled by a world2entity transformation matrix this could help a bit.

 

Although there are other things to consider like the collision model generation and such, which would still need to be performed in world coordinates, I reckon.

Link to comment
Share on other sites

All child primitives are measured relatively to the origin of the parent func_* entity. Whether this is a workaround or not depends on the way things are handled within the engine. If the children are translated at map loading time, this would resolve nothing. If it is handled by a world2entity transformation matrix this could help a bit.

 

Although there are other things to consider like the collision model generation and such, which would still need to be performed in world coordinates, I reckon.

 

Hmm, that's true. Well it does'nt matter really, the grid itself is much more then what we need. Currently my mansion map has expanded to about 1/800th of the grid. Around that anyways, and it's about 4 times as big as what is currently on SVN, so yeah, we can make huge missions. Funnily enough, however, I am at 2397 entities and I expecting that number to almost double. So I probably will reach or go over the 4096 entity limit. Time will tell I suppose :)

Link to comment
Share on other sites

I read it somewhere, but again why not set the entity limit right now up to like 100,000 or whatever? It takes up some memory or something?

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

Is it something we can change on our own? I can guarantee that it will become necessary pretty soon, especially if our small beta-maps are already approaching it!

 

But I guess if you don't want to mess with it right now then you can just wait until someone is getting really close and requests the increase at that time.

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recent Status Updates

    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 3 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
×
×
  • Create New...