Convert meters to pixels

How can I know the size in pixels that an entity takes on the device knowing it’s size in absolute units (meters).

So you mean how much space it occupies on screen per frame?

Not sure if there is an easy way of doing this. One way would be to use the camera worldToScreen method from each side of the model bounding box.

So you will get screen points that form a bounding rect on screen, from where you can extract pixel metrics.

Thanks @Leonidas, let me try that and see if it works for me…

1 Like