Is it possible to create a simple 3D model (for example in 3DS MAX) and then import it to Android?
3D models are imported as subsymbols, ready to be used multiple times in a project if need be. Once you have named your model symbol, select OK. An Import 3D modal will then appear allowing you to preview your model and tweak some of the settings to ensure your model is imported correctly.
Scene Viewer is an immersive viewer that enables 3D and AR experiences from your website or Android app. It lets users of Android mobile devices easily preview, place, view, and interact with web-hosted 3D models in their environment. Most Android browsers support Scene Viewer.
To import an OBJ, select File -> Import... from the menu bar. Select the OBJ you wish to import. You can also drag and drop your OBJ into the Resources panel. Once the OBJ is imported into Lens Studio, you should see it listed in your Objects panel as a new object added to the scene.
That's where I got to:
int vertices[] = context.getResources().getIntArray(R.array.vertices);
gl.glDrawElements(GL10.GL_TRIANGLES, 212*6, GL10.GL_UNSIGNED_SHORT, mIndexBuffer);
- you can find that number (212 in this case) on top of the OFF fileHere you can find my project page, which uses this solution: Github project > vsiogap3d
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With