OpenAWE-Project / OpenAWE

A reimplementation of Remedy Entertainments Alan Wake Engine, in later iterations known as the Northlight Engine
GNU General Public License v3.0
159 stars 13 forks source link

Incorrect boundaries of instanced foliage #38

Closed maaxxaam closed 7 months ago

maaxxaam commented 7 months ago

Ever since foliage started using instanced rendering in commit d7306490c0b7047ede1e2b9c2be5897b1db15ec1, it gets culled away too agressively, causing trees and bushes to pop in and out of frame. It could be happenning because an instanced object does not aggregate foliage boundaries but uses properties of a random foliage instead.

Nostritius commented 7 months ago

I will take a look on that

Nostritius commented 7 months ago

I have changed the way, the bounding spheres are combined, and it should now work again. Could you test this?

maaxxaam commented 7 months ago

Thank you for the quick reply! Commit bc622b9f50be61133260846e48a04ca5e519741b seems to resolve the issue - foliage looks fine now.