Textbox, label, selectbox on metal 3d

Hi, I don’t find anywhere even on metal by tutorial how to manage textbox or label to add them on 3d metal ? is there any existing lib or we must create them ?
or maybe we can used 2d from swift to incoporated them on screen but I prefers able to have them on 3d metal because they will be use on 3d models if it’s possible.

Hi @levanlong

I’m not exactly sure what you want to do.

If you want to have text on a 3D model, then it’s better to create the text on the model’s texture in another app such as Photoshop or Gimp.

You render your 3D models into a CAMetalLayer in a view. You can always add views on top of the Metal view, if you want to have UIKit labels or use NSViews.

I haven’t had experience with creating dynamic text and rendering it to a texture to use on a 3D model. Warren Moore wrote an article about creating 3D text that might help: Rendering 3D Text with Core Text and libtess2 – Metal by Example