Jump to content
Sign in to follow this  
tpw

Standalone object with geometric occluder

Recommended Posts

Howdy all

 

I've got some ideas I'd like to try out with improving FPS by spawning simple geometric occluder objects around the player to reduce the amount of rendering in busy scenes. May or may not be naive bullshit, but the problem is that  I am simply unable to generate a simple geometric occluder object to test my ideas out with.

 

So, based on this page: https://community.bistudio.com/wiki/Geometric_Occluders , I fired up object builder, created a simple 5x5x5m object with only a view geometry LOD, selected the cube, converted it to convex using Structure->Convexity->Component Convex Hull and renamed the selection  from Component01 to occluder_01 as per the page. I saved the p3d and wrote a very simple config packaged it up using BinPbo to give an object which can be placed in the editor.  So far so good. However when I preview the mission, the placed object does not occlude a single bloody thing.

 

So am I missing something obvious here? Is there in fact a way to make a standalone object which will prevent rendering of the other objects it obscures? Any info appreciated, thanks!

 

 

 

 

Share this post


Link to post
Share on other sites

Here are the p3d, config.cpp and final pbo files I've been working on, if anyone would care to take a look (a dev would be great).  

 

https://dl.dropboxusercontent.com/u/481663/test/tpw_test.p3d

https://dl.dropboxusercontent.com/u/481663/test/config.cpp

https://dl.dropboxusercontent.com/u/481663/test/tpw_test.pbo

Share this post


Link to post
Share on other sites

Or you could try different approach - use the house sample as base, add occluder to where it is obvious that it works, then reduce the unnecessary files that you think you don't need (LOD) step by step, until you have removed enough, or until it doesnt work anymore...

I dont think an object with exclusively vieGeo is going to be liked by the engine.

Share this post


Link to post
Share on other sites

afaik geometric occluders only work on terrain placed objects, no spawned via mission or script

Share this post


Link to post
Share on other sites
On 2/24/2017 at 3:13 PM, lappihuan said:

afaik geometric occluders only work on terrain placed objects, no spawned via mission or script

so you actulaly need to bake it to terrain first to see it in action ?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×