VERC: Polygon Reduction Methods Last edited 17 years ago2002-03-04 18:27:00 UTC by Penguinboy Penguinboy

This article was recovered from an archive and needs to be reviewed

  1. The formatting may be incorrect as it was automatically converted to WikiCode from HTML, it needs to be revised and reformatted
  2. Some information may be out of date as it was written before Half-Life was available on Steam
  3. After the article is re-formatted and updated for Steam HL, remove this notice
  4. Please do not remove the archive notice from the bottom of the article.
  5. Some archive articles are no longer useful, or they duplicate information from other tutorials and entity guides. In this case, delete the page after merging any relevant information into other pages. Contact an admin to delete a page.

Polygon Reduction Methods: A quick and dirty guide.

This article originally started out as an email to someone, but it kept going on and on and on. So, here it is. I'm not claiming this is a complete guide to low polygon counts, but its some quick advice that's good to know.

There are a number of things to keep in mind concerning r_speeds / polygon count. That is, if you have a 10 sided cylinder that makes contact with a flat brush, that flat brush will be broken into many pieces (polygons). This can affect both how the brush looks and how many polygons are required to be drawn. There are two main ways to work around this problem
Below are some screenshots of the above concepts in action. I used columns as examples but the concept is applicable to many different things.

| (Link: rspeeds1.jpg)

This picture shows a normal column with no polygon
reduction efforts made. Click to see a larger picture.

| (Link: rspeeds2.jpg)

This picture shows a normal column with the above mentioned
polygon reduction methods. Click to see a larger picture.

The above two pictures were taken in software mode with r_drawflat turned on. This will draw the world in flat/solid polygons (similar to Worldcraft's flat-shaded view). This is an excellent way of checking out your level for areas that may be causing problems with high polygon counts.

Note: To turn on r_drawflat, type r_drawflat 1 in the Half-Life console. You need to have run Half-Life with the -dev and -console parameters for this to work (but then, you should use those parameters anyway when you're testing maps).

| (Link: rspeeds3.jpg)

This picture shows a normal in-game shot of both columns.

There isn't a heck of alot of diffence between the two columns, except that the column on the right has a much lower polygon count.

Another thing to keep in mind is texture scale. If you change the scale of the the texture to X*2 and Y*2, the wall will be split into half as many polygons (and so on, and so on). The scale of a texture can have a big effect on the the number of polygons. Whenever possible, when it wont be visually negative, increase the scale of a texture (this isn't that often, mind you, but for outdoor areas or areas the player can't see, it can be handy).

Note: You can access the scale properties of a texture in Worldcraft by pressing shift+A to bring up the Texture Application Tool, then clicking on a brush face to select it. Modify its scale and press the Apply button to change the brush face.

You'll notice in the included pictures that the walls and ceiling/floor are single polygons. What I've done is stretched them to X*300 Y*300 scale. In the in-game shot, you'll see that this produces a flat shaded texture. The only time you would do this in a real map would the stretched texture wouldn't be visible. Current versions of Zoner's compile tools set the maximum X and Y scale at 316.1 times the normal scale.

Last, remember that the game engine isn't as smart as you. Or maybe its a whole lot smarter. It can see through doors (and any other brush entity), and can see somewhat around corners. Make sure you have world brushes sufficiently blocking sight into other areas, otherwise the engine will be drawing those areas too.
This article was originally published on the Valve Editing Resource Collective (VERC).
TWHL only archives articles from defunct websites. For more information on TWHL's archiving efforts, please visit the TWHL Archiving Project page.


You must log in to post a comment. You can login or register a new account.