Jump to content
The Dark Mod Forums

dmap and LOD implementation


motorsep

Recommended Posts

Ok, apparently there is some tricky hardcoded total polycount limit in BFG engine. Instead of going all crazy with 13M tris, I reduced polycount per entity (highest LOD iteration) to ~2900 (since it's just suppose to be rocks and foliage) and now I have no issues. Having LOD is still twice faster than bruteforce rendering, so I assume engine still batches surfaces in runtime based on matching materials.

 

The sad truth that idTech 4 / BFG is definitely not an outdoor engines. I tested my massive outdoor map with LOD entities and issue with corrupted surfaces popped up again. Maybe splitting terrain into smaller enclosed sections, connected with tunnels and having vizportals should do the trick.

 

Did Splash Damage made big modifications to idtech4 for Quake Wars? Afaik they and John Carmack only updated the Mega Textures tech? About your engine it is known that floating point problems come if very far from the origin in big maps, perhaps is that? If you haven't already you can try moving the world origin to the player origin dynamically? Yes cutting the terrain in small and manageable pieces does help performance.

Link to comment
Share on other sites

Did Splash Damage made big modifications to idtech4 for Quake Wars? Afaik they and John Carmack only updated the Mega Textures tech? About your engine it is known that floating point problems come if very far from the origin in big maps, perhaps is that? If you haven't already you can try moving the world origin to the player origin dynamically? Yes cutting the terrain in small and manageable pieces does help performance.

 

ETQW engine was a significant step ahead of idTech 4 in Doom 3. That's why I was in line to be released next as GPL. Maps are still not big there. Even RAGE had maps which had walkable surface withing +/-32k (or that's what I was told by ID). Moving world's origin at player's coordinate won't fix any issues. Player needs to be always at 0 0 0 and the world needs to "scroll" under. Or the world needs double float, which is not trivial to implement in idTech 4, and not only because everything uses common matrices (rendering and physics and coordinate system do at least).

 

Anyhow, rendering was improved, megatextures were improved, networking, multithreading got better, AAS was reworked, etc.

Edited by motorsep
Link to comment
Share on other sites

Well, I already tried it:

 

http://forums.thedar...post__p__243243

 

:)

 

The models are cloned dynamically, then combined into larger models automatically. On LOD changes, the model is recompiled.

 

You (or someone else?) said SEED is _slow_ :( Did you implement actual instancing to clone models?

 

Supposedly RAGE does it the same way, but on a separate thread. The issue that I have with this is that the engine culls on per surface basis. So if you have one massive surface and part of it is in the view - it won't be culled. So it will be drawn even if you don't see most of it. That's why I question the need to merge surfaces into one. My test case with ~13M tris shows that LOD is twice as fast than no LOD. And I am not doing any merging. It would be nice to investigate what's really happening with culling and batching in idTech 4 :/

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

    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 2 replies
    • 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
       
      · 5 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
×
×
  • Create New...