Frictional Games Forum (read-only)

Full Version: How to use Clip Planes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi all;
I'm trying to figure out how to use clip planes in level editor. Official maps use them to optimize the levels and prevent engine to render places.

Two of my levels are getting bigger and whenever I look at the some places, my FPS drops drastically. I can't reconstruct the level at this rate.

Any help would be appreciated Smile
Add it by clicking the plus sign. Click the XZ, YZ, or XY button, whichever it is. This changes the orientation of the plane. Next change the height of it. The height corresponds to the discluded letter in the orientation. An XY plane will move horizontally along the Z axis, and the YZ plane will move horizontally along the X axis, but a XZ plane will move vertically.

Clicking the Pos or Neg button changes which side of the plane is culled. Any objects that aren't fully crossing the plane on the side which is to be culled are not shown. If an object passes that point even slightly it will still be shown. It has to be completely past it to be hidden.

I'd suggest putting your clip plane in the middle along a YZ or XY plane, then swapping between positive and negative culling as needed. This way you don't clutter your map with clip planes Smile

Good luck Smile
Thanks palistov. I'm working on them and hopefully I'll manage to optimize things Smile
Yeah they seem very handy. Hopefully FG will add more optimization features like that in HPL3, like hiding certain object types in the viewport or something.
Well, I though Clip Planes could be used to optimize in game too, however it turns out to be for only Level Editor optimization :/
So my FPS drop cannot be helped...
(07-18-2011, 12:48 AM)Tanshaydar Wrote: [ -> ]Well, I though Clip Planes could be used to optimize in game too, however it turns out to be for only Level Editor optimization :/
So my FPS drop cannot be helped...

Sorry for the delayed reply. Busy past few days Big Grin

Use a culling FogBox under Level Settings.

so that does not let you to see the whole map because of performance issues when everything is shown?
Clip planes are only for the level editor, so you can hide certain things to help its performance and make it easier to edit the level (hiding the ceiling for example). It doesn't do anything in-game.
yes I know that, for the leveleditor of course I meant.
(07-20-2011, 02:55 PM)palistov Wrote: [ -> ]
(07-18-2011, 12:48 AM)Tanshaydar Wrote: [ -> ]Well, I though Clip Planes could be used to optimize in game too, however it turns out to be for only Level Editor optimization :/
So my FPS drop cannot be helped...

Sorry for the delayed reply. Busy past few days Big Grin

Use a culling FogBox under Level Settings.

Hmm, that sounds very logical. However I'm not that good with fog using. I'll try to see what happens Smile
Pages: 1 2