Jump to content
The Dark Mod Forums

Visibility/culling debug command


Recommended Posts

I'm not sure if I'm misremembering it, but is there a console command to "pause" the engine update of visibility/culling?

With the primary purpose of letting you noclip around and see exactly what is being rendered/not rendered when the player is at a given location. I could've sworn I've used this command before, but I just spent the last hour trying to find it to no avail, so maybe I imagined it!

Link to post
Share on other sites

Don't know of such cmd but if it exists I would love to know it has well!  

But browsing the engine cvars I see this one, r_lockSurfaces it says "allow moving the view point without changing the composition of the scene, including culling" sounds very similar to what you want but I tested the cmd on my end and it just caused a black screen. 

Link to post
Share on other sites

There is g_stopTime which stops game from moving, but it does not stop light updates.

As for freezing culling, I think I have seen something like that. r_lockSurfaces is probably what you need, but it seems it is broken now 😥

Link to post
Share on other sites

in my case g_stopTime totally froze the game including the player and the game window, making me unable to interact with the game, so I don't think is very useful in this case.

r_lockSurfaces was broken in all idtech 4 engines versions I tested, I didn't tested the BFG version of the engine tho. Is a petty that such a convenient debug tool was released broken.

Btw doesn't r_showTris 2 could be useful here? This option seem to take portals clip into account and only show triangles that are visible through portals, if there's no portals it shows the triangles of everything, including of those behind solid objects, so I think this does tell us " what is being rendered/not rendered when the player is at a given location", i'm I wrong?

Edited by HMart
Link to post
Share on other sites
1 hour ago, HMart said:

in my case g_stopTime totally froze the game including the player and the game window, making me unable to interact with the game, so I don't think is very useful in this case.

You can fly noclipped in this mode.

Link to post
Share on other sites

Ok, thanks all! I think I just totally misremembered this feature being in the doom3 engine, my mistake : )

@HMart - yup, r_showTris 2 is what I've been using for verifying visibility stuff. It works well, but becomes a little difficult to visually parse when the level reaches a certain complexity, so I was looking around for possible alternatives.

Link to post
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.

×
×
  • Create New...