Author Topic: Guide: Understanding the VIS'ing Process  (Read 15149 times)

KnacK

  • Global Moderator
  • Autococker
  • Posts: 3039
Guide: Understanding the VIS'ing Process
« on: January 07, 2008, 10:56:08 AM »
Doc,

I didn't think you'd mind if I made this a sticky as it was written in a way that even I could understand it.

####

Understanding the VIS'ing process can be quite hard, so I'll do my best to try and explain it to you.

Ideally, the game engine doesn't want to have to draw parts of the map it can't see - this is to save on the resources needed to render the game world for the player. To do this, when you make a map, the VIS compiler calculates how to carve up the map, and what area can 'see' into another. for example, if you were stood in a certain spot near a window, you could 'see' the area beyond the window, so the compiler would know that. When you make walls and obstacles out of brushes in the map maker, the compiler treats these like they are solid and can't be seen through. So if you bare this in mind, if you have a map that's very open, there won't be many obstacles blocking your line of sight - so the r_speeds will be very high as the game is having to draw lots and lots of the map all at once, as the compiler has decided that you can 'see' everything.

The Quake 2 engine that DP is based on isn't optimised for open maps, so r_speeds become a very big problem with open large maps.

So, the upshot for you is to:

a) fix the leaks so you can get an accurate measurement of what the r_speeds will be like (at the moment, you can't because the VIS compiler's calculations will all be strange beause of the leaky gaps.
b) look at where you can put some 'VIS blockers'. VIS blockers are just solid obstacles which will block your view, and if done properly should hopefully stop the game drawing parts of the map you don't want it to. These can change the gameplay of your map, however - adding something players will have to jump round, etc... so think carefully about how to use them.
c) redesign parts of your map that are causing VIS problems that can't be solved with VIS blockers. This might mean altering the floorplan of your tunnels, etc... so they don't expose too much of the next area when you are walking down them.
d) using Hint Brushes. Read this for information on Hint Brushing: http://www.gamedesign.net/node/52

for you, I think the mid will cause a lot of problems due to the ice being transparent.

For more info, check http://www.gamedesign.net/node/53 for techniques on lowering the r_speeds. Also, consider taking the water out as that will double your r_speeds.

Hope this helps,

- Dagless MD
« Last Edit: July 09, 2012, 09:39:22 AM by Chef-Killer »

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049

Pajama-Sam

  • Stingray
  • Posts: 52
Re: Understanding the VIS'ing Process by The Doctor
« Reply #2 on: April 04, 2009, 11:55:13 AM »
I have a question on exporting the map to .bsp format...

My map is relatively big, and has lots of textures and shapes and sizes, etc.
But when I go to export and click on "final compile.bat" it will load, but it will stop at the 2...
and will stay there with out going on. And it has sat for at least 12 hours just sitting at 1...2...

So any tips or an explanation why this might be?
Thanks

_burnt

  • Autococker
  • Posts: 698
Re: Understanding the VIS'ing Process by The Doctor
« Reply #3 on: April 04, 2009, 12:09:01 PM »
Have you placed detail flag to every detail like brush? Have you placed hint brushes? Also your computer may not have the power to compile it, if so, ask Spook to compile for you. He has compiled Lost for me.

Pajama-Sam

  • Stingray
  • Posts: 52
Re: Understanding the VIS'ing Process by The Doctor
« Reply #4 on: April 04, 2009, 12:25:07 PM »
is that detail flag in the entity box?

Pajama-Sam

  • Stingray
  • Posts: 52
Re: Understanding the VIS'ing Process by The Doctor
« Reply #5 on: April 04, 2009, 12:25:58 PM »
i mean in the surface property window?


_burnt

  • Autococker
  • Posts: 698
Re: Understanding the VIS'ing Process by The Doctor
« Reply #6 on: April 04, 2009, 12:49:47 PM »
Yes it is in the surface properties. Put it to every barrel, crate and that kind of stuff, but NOT on walls and other VIS blockers. Just telling you this so you don't need to ask if you don't know it.

Pajama-Sam

  • Stingray
  • Posts: 52
Re: Understanding the VIS'ing Process by The Doctor
« Reply #7 on: April 04, 2009, 12:52:07 PM »
ok.... ty and how do you make the ammo spawns a certain amount, and the gun spawns a certain gun, and the player spawns to deathmatch, etc.?

_burnt

  • Autococker
  • Posts: 698

Pajama-Sam

  • Stingray
  • Posts: 52
Re: Understanding the VIS'ing Process by The Doctor
« Reply #9 on: April 04, 2009, 01:12:36 PM »
ok thanks jeejee, srry if I've been a pest or annoying, posting so many times about the same thing

_burnt

  • Autococker
  • Posts: 698
Re: Understanding the VIS'ing Process by The Doctor
« Reply #10 on: April 04, 2009, 01:13:21 PM »
No problem. Just glad that i could help