Jump to content
The Dark Mod Forums

Tweak proposal: r_showPortals colours


SteveL

Recommended Posts

the player's view doesn't touch it, so it's not drawn

 

 

Huh, I didn't realize that. I thought if a leaf were open everything in it was drawn. Does this apply to worldspawn too?

Link to comment
Share on other sites

Sounds good to me. Nice work.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

 

Huh, I didn't realize that. I thought if a leaf were open everything in it was drawn. Does this apply to worldspawn too?

 

Not really. When DMAP converts worldspawn into visible models, all the worldspawn in one visleaf becomes a single model, so if any part of it is visible, the gpu will be told to draw it all.

 

The GPU does know which bits of a model can be seen through the portal(s), so it can in theory disregard tris and parts of tris before doing the expensive step (colouring them in by lights). I'm not sure whether our old shader programs are taking advantage of that or not. They definitely discard those unseen parts before they get written to the screen, but I should put it on the to-do list to make sure that they don't get their lighting calculated before being discarded.*

 

* To say the same thing in OpenGL speak: we do use a scissor test to discard parts of models that fall outside the view, but I'm not sure whether our old ARB shaders allow the GPU to use a early scissor test -- before shading -- or not. The answer might differ between GPUs, and it's almost certainly not documented anywhere by the manufacturers. We'll be able to make sure of it when we switch to GLSL shaders for drawing our light interactions.

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

    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
×
×
  • Create New...