# Clamp a plane to the right bottom corner of the camera

**URL:** <https://forum.babylonjs.com/t/clamp-a-plane-to-the-right-bottom-corner-of-the-camera/29534>\
**Category:** Questions\
**Tags:** documentation, tutorial, camera, typescript\
**Created:** [April 20, 2022, 10:23am UTC](https://forum.babylonjs.com/t/clamp-a-plane-to-the-right-bottom-corner-of-the-camera/29534 "2022-04-20T10:23:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubham](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/shubham/32/22838_2.png) [@Shubham](https://forum.babylonjs.com/u/Shubham)\
**Post date:** [April 20, 2022, 10:23am UTC](https://forum.babylonjs.com/t/clamp-a-plane-to-the-right-bottom-corner-of-the-camera/29534/1 "2022-04-20T10:23:49Z")

</div>

hey, there I am new to Babylon,

I am trying to create a mini-map, I have achieved to render the top camera on a plane, but I am not able to clap it to the right bottom corner of the camera. whenever the size of the window changes the position of the plane gets disturbed. is there any way to clamp it to the right bottom of the camera.

---

<div class="post-metadata">

**Author:** ![PolygonalSun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/polygonalsun/32/2704_2.png) [@PolygonalSun](https://forum.babylonjs.com/u/PolygonalSun)\
**Post date:** [April 20, 2022, 10:06pm UTC](https://forum.babylonjs.com/t/clamp-a-plane-to-the-right-bottom-corner-of-the-camera/29534/2 "2022-04-20T22:06:44Z")

</div>

Hey @Shubham, if you’re trying to make some kind of mini-map set up, you might be able to have some luck with using a multiview set up with viewports: [Layer Masks and Multi-Cam Textures | Babylon.js Documentation (babylonjs.com)](https://doc.babylonjs.com/divingDeeper/cameras/layerMasksAndMultiCam). If you look at the picture in picture example, that might be close to what you’re looking to do.

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [April 21, 2022, 12:09pm UTC](https://forum.babylonjs.com/t/clamp-a-plane-to-the-right-bottom-corner-of-the-camera/29534/3 "2022-04-21T12:09:07Z")

</div>

There some thread open in the forum related to minimaps like this 1:

> [@Minimap with functionality](https://forum.babylonjs.com/t/minimap-with-functionality/19291):
>
> Hi again, I have another challenge that I’m facing. We want to improve our virtual tour functionality on this page: [https://leasing.skanska.ro/projects/equilibrium/spaces/8](https://leasing.skanska.ro/projects/equilibrium/spaces/8) As you can see if you activate the Virtual Tour view mode we created a svg minimap of the floor. What I’m trying to achieve is to swap out the svg with a real minimap of the current floor. I’m using the same technique from here to create the minimap: [https://www.babylonjs-playground.com/#1WROZH#124](https://www.babylonjs-playground.com/#1WROZH#124) What I’m struggling wi…

I second @PolygonalSun if you could provide screenshots of, even better, a playground, it would help us figure it out.

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [May 20, 2022, 10:02am UTC](https://forum.babylonjs.com/t/clamp-a-plane-to-the-right-bottom-corner-of-the-camera/29534/4 "2022-05-20T10:02:37Z")

</div>

Hello, just checking in, was your question answered? @Shubham

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [May 20, 2022, 11:29am UTC](https://forum.babylonjs.com/t/clamp-a-plane-to-the-right-bottom-corner-of-the-camera/29534/5 "2022-05-20T11:29:54Z")

</div>

@carolhmj Whilst browsing some topics prior to a sunny WE 😃 I have to say (and wanted to state here that) your follow-up on topics is really impressive and dedicated to the BJS culture ❤ @Deltakosh . I don’t think I’ve ever seen anything like this in any other forum. I wish you have an awesome WE 🕶

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [May 20, 2022, 4:14pm UTC](https://forum.babylonjs.com/t/clamp-a-plane-to-the-right-bottom-corner-of-the-camera/29534/6 "2022-05-20T16:14:45Z")

</div>

![View 27 Molang Thank You Gif Cute](https://i0.wp.com/thumbs.gfycat.com/CoolFirmAmethystsunbird-size_restricted.gif)

it’s a pleasure to help with what I can! ❤

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [May 20, 2022, 8:33pm UTC](https://forum.babylonjs.com/t/clamp-a-plane-to-the-right-bottom-corner-of-the-camera/29534/7 "2022-05-20T20:33:33Z")

</div>

@carolhmj is the best !!! So glad she is part of the community 🙂
