Skip to content

Draw models as lines instead of fill - wireframe like #147

Answered by ThomasGorisse
rrocav3 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

It sounds possible within Filament and Sceneform gives you access to the FilamentAsset directly.
Filament only provides a wireframe representation for the bounding box.

So this Filament PR: google/filament#942 by @prideout shouldshould not match your need.
You can then get the bounding box Wireframe Renderable from your gltf object.

The only thing missing is the java link to this cpp function inside FilamentAsset.java:

/**
 * Lazily creates a single LINES renderable that draws the transformed bounding-box hierarchy
 * for diagnostic purposes. The wireframe is owned by the asset so clients should not delete it.
*/
utils::Entity getWireframe() noexcept;

Could you make a little quick PR …

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ThomasGorisse
Comment options

@prideout
Comment options

@rrocav3
Comment options

@prideout
Comment options

@rrocav3
Comment options

Answer selected by ThomasGorisse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants