jnsmalm / pixi3d

The 3D renderer for PixiJS. Seamless integration with 2D applications.
https://pixi3d.org
MIT License
752 stars 43 forks source link

Support of LODs and map level geometry culling #196

Open ex opened 7 months ago

ex commented 7 months ago

Hello, nice project! I was quickly looking at your Desert Racing demo and your API and I don't see any support for LODs and culling optimizations, is this implemented or is it in the plans?

Best

jnsmalm commented 7 months ago

Hi there! The Desert Racing demo uses a very simple type of culling where objects are not rendered if they too far from the car. General LOD's and culling is not in the plans.

ex commented 7 months ago

Hi there! The Desert Racing demo uses a very simple type of culling where objects are not rendered if they too far from the car. General LOD's and culling is not in the plans.

Oh I see, Yes, I saw the simple culling when changed the camera projection, but I was not sure if that was the only one and if there was plans to implement it more generally. Regarding LODs, it's only changing models at runtime based on size over screen, any tips about what classes can I use for implementing this? My initial idea is loading all the model LODs at startup and just making visible/invisible the ones I want but would need a way to know how much pixel space is using a model over the screen, or using a distance/bounding box approach.