Page 2 of 2

Re: [?] Occlusion mesh

Posted: 2014-03-12 18:20
by Gracler
Like this?

Image

Re: [?] Occlusion mesh

Posted: 2014-03-12 18:27
by Rhino
Ye sounds good although I may be inclined to include the roof on the right side too.

Re: [?] Occlusion mesh

Posted: 2014-03-12 18:59
by Gracler
Does it have to be quads or can it have more than 4 edges you think?

Re: [?] Occlusion mesh

Posted: 2014-03-12 19:36
by Rhino
Every face has to be a quad yes. But they don't have to be at right angles.

Re: [?] Occlusion mesh

Posted: 2014-03-13 04:33
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.

Re: [?] Occlusion mesh

Posted: 2014-03-13 14:50
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.

Re: [?] Occlusion mesh

Posted: 2014-03-14 12:04
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.

Re: [?] Occlusion mesh

Posted: 2014-03-14 13:14
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 :)

Re: [?] Occlusion mesh

Posted: 2014-03-14 13:23
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 :)

Re: [?] Occlusion mesh

Posted: 2014-03-14 13:44
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

Re: [?] Occlusion mesh

Posted: 2014-03-14 13:55
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.

Re: [?] Occlusion mesh

Posted: 2015-11-20 19:55
by Outlawz7
How do I know if my occ mesh is made of quad planes or not?