Editing Vis From Quake Wiki Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits. Anti-spam check. Do not fill this in! ==What Vis Does== '''Vis''' is one of the stages of [[map compiling]]. It calculates visibility (or [[PVS]]) data for a [[Quake file formats|bsp file]] previously generated by [[QBSP]]. With PVS data, the engine need only draw those parts of the level (and those entities) that might be visible from the current player location. This performance optimization was necessary to allow levels as large and as complex as Quake's on the computers of the day. And even today, most games use equivalent systems to allow levels, props, and NPCs to be as detailed as possible. ==How Vis Does It== Vis uses the [[portal|portals]] from the [[Quake file formats|prt file]] generated by [[QBSP]] to calculate visibility. For each [[visleaf]], it calculates which other visleafs are potentially visible from any point within that visleaf. It does this using the portal data, as each visleaf can only see into other visleafs by looking through one or more portals. The final data, which is a series of bits representing whether or not each pair of visleafs can see each other, is then compressed down and saved in the bsp file. In addition, there are four hard-coded ambient sounds in Quake; one each for [[sky]], [[water]], [[slime]], and [[lava]]. Using the PVS data, Vis calculates the appropriate volume level for each of these ambient sounds based on the proximity and visibility of nearby sky and liquid surfaces. ==Using Vis== Vis is a command-line tool, generally named vis.exe. You can invoke it from a command prompt, via a shortcut or batch file, or from the "compile" or "build" menus of some [[level editor|level editors]]. ===Command-line options=== This is for you if you're struggling finding out how to use the command line tools from tyrutils on linux due to lack of information and guides out there. The only ones I've even read about are focused on the windows GUI version with the three tools in one package. You can find QBSP, Light and Vis already compiled for you in the bin folder. To find out any of their options, just execute them in the terminal. "./qsbp" "./vis" "./light" These will echo out a bunch of options for you to choose from. Works just like the windows version, you convert the .map with QSBP first and then light. You only need Vis for debugging and larger levels so if you're starting out, don't worry about it for now. Sorry for lack of explanation, I covered it as briefly as I could and it's not at all that difficult. ===Error Messages and Warnings=== TODO ===Updated Versions=== In addition to [[id Software]]'s official Vis, there have been various unofficial versions that improve on the original or add additional features. For a list of Vis variants, see [[mapping tools]]. Summary: Please note that all contributions to Quake Wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see Quake Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here. You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission! To edit this page, please answer the question that appears below (more info): Who created the Quake Soundtrack (Hint: In three uppercase letters)? Cancel | Editing help (opens in new window) Retrieved from "http://quakewiki.org/wiki/Vis"