What is the use and how to use User Interface 3D Screen?

What is the use User Interface 3d Screen ? How to use? Any available documentation?

Documentation https://developer.playcanvas.com/en/user-manual/user-interface/screens/

1 Like

@yaustar I understand how 2d screens work and after looking at that documentation I thought I’d just select a 3d screen and it would work in the same way but displaying 3d objects… but that doesn’t seem to be the case?

I would have expected to see a cube in front of Bill Murray on this project (https://playcanvas.com/project/1210918/overview/blank-project) but the cube doesn’t render… am I missing the point?

Thanks for all the help you give on here it is much appreciated :+1:

3D screens are for UI in World space. Not for rendering 3D objects in UI.

The way I consider rendering 3D objects in UI is via render textures as shown here: https://developer.playcanvas.com/tutorials/render-3d-world-to-ui/

Thanks @yaustar - that’s a shame, my brief is to have a 3d model on a desk which has a clickable button next to it. When clicked the ‘current world’ would lose its interaction and something similar to a 2d screen would appear with a 3d model (with hotspots) that can be rotated. I did find the example you gave but it looked quite complicated to achieve so I wondered if there was an easy way to do this that I was missing…

Any way I can think of doing that requires some sort of workaround/technique similar to rendering to a texture to work. There’s no ‘easy’ way of doing this as you are trying to render a 3D object in the screen space of where a UI element would be.

Well… wish me luck then :sweat_smile: