sceneview-android icon indicating copy to clipboard operation
sceneview-android copied to clipboard

Create simple shape

Open Yare-Yare-Daze opened this issue 3 years ago • 0 comments

Hello, can i create simple shape from class ShapeFactory?

I tried this one, but com.google.ar.sceneform.rendering.Color is deprecated: val material = MaterialFactory.makeTransparentWithColor(this@MainActivity, lifecycle, com.google.ar.sceneform.rendering.Color(1f, 0f, 0f, 0.5f)) val modelTest = ShapeFactory.makeCube(lifecycle, Vector3(1f, 1f, 1f), Vector3(0f, 0f, 0f,), material.get())

How can i create simple half transparent cube? Thanks in advance!

Yare-Yare-Daze avatar Oct 02 '22 14:10 Yare-Yare-Daze