Feature to display rendered lines on the automap

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is ON
[img] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Feature to display rendered lines on the automap

Re: Feature to display rendered lines on the automap

by RockstarRaccoon » Thu May 17, 2018 11:25 am

Ok, so, I have it clearing off the "AM_MAPPED" flag and putting in an "AM_REVEALED" flag after it draws every line, so it only properly renders what the player can see and leaves the rest grayed out.
[imgur]https://imgur.com/gallery/fMsHzvA[/imgur]

I just need to put in a CVAR here:

Code: Select all

if (true) { // insert CVAR here
	line.flags &= ~ML_MAPPED;
	line.flags |= ML_REVEALED;
}

Re: Feature to display rendered lines on the automap

by RockstarRaccoon » Thu May 17, 2018 9:38 am

Ok, I'll implement that and see how it looks. What should I use for the internal condition to do this?

Re: Feature to display rendered lines on the automap

by Graf Zahl » Thu May 17, 2018 9:12 am

That's exactly what I had in mind. Adding something complex is out because this is a time critical loop. But clearing ML_MAPPED before starting the renderer is definitely an option.

Re: Feature to display rendered lines on the automap

by RockstarRaccoon » Thu May 17, 2018 8:08 am

Since you were asking me on the Discord, I might be able to implement a cheat code which causes the automap to remove all of the lines after every frame or possibly just highlight them. I'm already screwing with the automap code in my experimental build, but I'd have to look at the code for setting ML_MAPPED to see if there is an efficient way to do this.

Re: Feature to display rendered lines on the automap

by Rip and Tear » Thu May 17, 2018 7:36 am

You can disable wall rendering with gl_render_walls false, that might help.

Feature to display rendered lines on the automap

by Jaxxoon R » Thu May 17, 2018 12:35 am

From reading the BOA thread and trying to troubleshoot my own maps, a quick way to tell if a portal or area of the level is being occluded would make the process of tweaking performance on wide-open maps a little easier.

Top