SceneView / sceneform-android

Sceneform Maintained is an ARCore Android SDK with Google Filament as 3D engine. This is the continuation of the archived Sceneform
https://sceneview.github.io/sceneform-android/
Apache License 2.0
627 stars 147 forks source link

Is it possible to load obj file in SceneformMaintained ? #192

Closed monsterbrain closed 2 years ago

monsterbrain commented 2 years ago

I would like to load an OBJ file in sceneform. Partly because, this obj file is created dynamically (text related).

I've seen that it might be possible with sfa/sfb file with model defined, but the support has been dropped as I read in migration notes.

The Mesh data is obtained dynamically, so if it's possible to directly load Mesh data to a modelRenderable.

RGregat commented 2 years ago

Sceneform has no OBJ-Parser/Loader, but you could take a look into ShapeFactory how to build your own Renderable with just vertices, uvs and indices. I would say the makeCube function is the easiest one to understand the process.