Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use Clip Planes
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#1
How to use Clip Planes

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

07-17-2011, 07:21 PM
Website Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: How to use Clip Planes

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

(This post was last modified: 07-17-2011, 07:29 PM by palistov.)
07-17-2011, 07:25 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#3
RE: How to use Clip Planes

Thanks palistov. I'm working on them and hopefully I'll manage to optimize things Smile

07-17-2011, 07:26 PM
Website Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#4
RE: How to use Clip Planes

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.

07-17-2011, 07:34 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#5
RE: How to use Clip Planes

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...

(This post was last modified: 07-18-2011, 06:31 AM by Tanshaydar.)
07-18-2011, 12:48 AM
Website Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#6
RE: How to use Clip Planes

(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.


(This post was last modified: 07-20-2011, 02:55 PM by palistov.)
07-20-2011, 02:55 PM
Find
plutomaniac Offline
Super Moderator

Posts: 6,368
Threads: 45
Joined: May 2011
Reputation: 183
#7
RE: How to use Clip Planes

so that does not let you to see the whole map because of performance issues when everything is shown?
07-20-2011, 04:26 PM
Find
nofsky Offline
Senior Member

Posts: 423
Threads: 13
Joined: Sep 2008
Reputation: 1
#8
RE: How to use Clip Planes

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.
07-20-2011, 04:57 PM
Find
plutomaniac Offline
Super Moderator

Posts: 6,368
Threads: 45
Joined: May 2011
Reputation: 183
#9
RE: How to use Clip Planes

yes I know that, for the leveleditor of course I meant.
07-20-2011, 06:33 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#10
RE: How to use Clip Planes

(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

07-20-2011, 11:27 PM
Website Find




Users browsing this thread: 1 Guest(s)