# How to position mesh in the corner of viewport

**URL:** <https://forum.babylonjs.com/t/how-to-position-mesh-in-the-corner-of-viewport/46769>\
**Category:** Questions\
**Tags:** camera\
**Created:** [December 27, 2023, 8:56pm UTC](https://forum.babylonjs.com/t/how-to-position-mesh-in-the-corner-of-viewport/46769 "2023-12-27T20:56:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarredcm](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@jarredcm](https://forum.babylonjs.com/u/jarredcm)\
**Post date:** [December 27, 2023, 8:56pm UTC](https://forum.babylonjs.com/t/how-to-position-mesh-in-the-corner-of-viewport/46769/1 "2023-12-27T20:56:53Z")

</div>

Hello,

I am having issues positioning my minimap at the very top right corner of the screen. My minimap is a plane with a render target texture. I have tried doing something similar to [this playground](https://playground.babylonjs.com/#9310J2#2), but I want my minimap to have a fixed size on all devices. I read about position the mesh using the camera’s frustum, but I’m not exactly sure how to do that.

Playground: [https://playground.babylonjs.com/#V3UXRH#8](https://playground.babylonjs.com/#V3UXRH#8)

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [December 28, 2023, 11:15am UTC](https://forum.babylonjs.com/t/how-to-position-mesh-in-the-corner-of-viewport/46769/2 "2023-12-28T11:15:35Z")

</div>

You can do it like this, using the technique shown in your first PG:

> **[Babylon.js Playground](https://playground.babylonjs.com/#V3UXRH%239)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![jarredcm](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@jarredcm](https://forum.babylonjs.com/u/jarredcm)\
**Post date:** [December 28, 2023, 3:11pm UTC](https://forum.babylonjs.com/t/how-to-position-mesh-in-the-corner-of-viewport/46769/3 "2023-12-28T15:11:14Z")

</div>

How do I prevent the plane from resizing when the screen resizes though? That was my issue with the first playground.

EDIT: Nevermind, I just removed the scaling and everything worked nicely. Thanks!
