[?] Occlusion mesh

Making or wanting help making your own asset? Check in here
Gracler
Posts: 947
Joined: 2009-03-22 05:16

Re: [?] Occlusion mesh

Post by Gracler »

Like this?

Image
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [?] Occlusion mesh

Post by Rhino »

Ye sounds good although I may be inclined to include the roof on the right side too.
Image
Gracler
Posts: 947
Joined: 2009-03-22 05:16

Re: [?] Occlusion mesh

Post by Gracler »

Does it have to be quads or can it have more than 4 edges you think?
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [?] Occlusion mesh

Post by Rhino »

Every face has to be a quad yes. But they don't have to be at right angles.
Image
Psyrus
Retired PR Developer
Posts: 3841
Joined: 2006-06-19 17:10

Re: [?] Occlusion mesh

Post by Psyrus »

Gracler wrote:Does it have to be quads or can it have more than 4 edges you think?
As rhino said, 4 edges are required, but the faces/edges don't have to be welded

Image

I'm not sure about the performance implications as it would make the calculation a little more intense.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [?] Occlusion mesh

Post by Rhino »

I wouldn't do overlapping ones myself, will most likley make it much harder to render. In that one you posted Psyrus I would have just had the big plane and not bothered with the small one.
Image
Gracler
Posts: 947
Joined: 2009-03-22 05:16

Re: [?] Occlusion mesh

Post by Gracler »

What do you think about this?

Image

It consists of 8 planes. I can't decide if I should remove the 2 roof gables or not.

Edit: I'm going to remove them they don't add much anyway.
Last edited by Gracler on 2014-03-14 13:01, edited 2 times in total.
Psyrus
Retired PR Developer
Posts: 3841
Joined: 2006-06-19 17:10

Re: [?] Occlusion mesh

Post by Psyrus »

8 planes is quite a lot, especially for a static that isn't too complex. The smaller the object, the less it will block, so I would probably just have maybe the big /\ section and maaaaybe that box on the right, but it probably wouldn't be worth the overhead, considering not much will be occluded by something that's relatively computationally expensive. Try to aim for under 6 planes :)
Gracler
Posts: 947
Joined: 2009-03-22 05:16

Re: [?] Occlusion mesh

Post by Gracler »

I think the chances are that the box shape will block just as much as the roof triangle since players walking on the ground will not benefit from the roof triangle. It is going to be 6 planes then :)
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [?] Occlusion mesh

Post by Rhino »

Ye that overlapping isn't good news. Would just go back to the 5 planes (doesn't need a bottom one unless there is a chance that the object will be on its side or upside down which this wont).

Although what you can do for the same amount of planes is this:
Image
Image
Gracler
Posts: 947
Joined: 2009-03-22 05:16

Re: [?] Occlusion mesh

Post by Gracler »

hmm okay. I'm getting good results in-game though. I get 10-20 more fps when my buildings starts occluding that nasty overgrowth :) . Goes from 60-80 fps.

I could still adjust the box so it isn't overlapping the roof though, but yes it seems best to go with the 5 sided box shape with an extended roof plane.

Edit: Wow inside the building I get 100 fps and outside 40-60. I never paid close attention to my fps but in these ww2 maps with so much green stuff it seems like it makes a significant difference.
Last edited by Gracler on 2014-03-14 14:47, edited 3 times in total.
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: [?] Occlusion mesh

Post by Outlawz7 »

How do I know if my occ mesh is made of quad planes or not?
Image
Post Reply

Return to “PR:BF2 Community Modding”