New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed the default mode for the PlaneRenderer. #39
Changed the default mode for the PlaneRenderer. #39
Conversation
…ates clearly that this mode is very expensive.
Great found @RGregat !!! |
Won't adding and removing many
I think we can only generate the polygons at runtime. |
Is the sceneview-android/arsceneview/src/main/kotlin/io/github/sceneview/ar/scene/PlaneRenderer.kt Line 156 in 7ad2ec4
|
Before moving the |
Yes it should sceneview-android/arsceneview/src/main/kotlin/io/github/sceneview/ar/scene/PlaneRenderer.kt Lines 134 to 162 in 3140b34
|
You are probably right even if it would bring some great Node features we can use directly here.
Would you mind doing the move from RenderableDefinittion to Filament direct mesh creation? |
Big subject here even if I'm conviced that most of the |
We just need to make sure that we aren't missing any important features that Sceneform provided for mesh creation. I actually only used the direct Filament approach. |
Is this an example for the filament way to create a mesh? https://github.com/google/filament/blob/main/samples/hellotriangle.cpp |
This is the C++ version. |
PlaneRenderMode.RENDER_ALL was set as the default mode but the doc states clearly that this mode is very expensive. A short check on the Profile verified this statement with 500ms spikes. The default mode is now set to PlaneRenderMode.RENDER_TOP_MOST.