# What's the most effective method to ascertain if a vertex is within the camera's field of view (Front View)?

**URL:** <https://forum.babylonjs.com/t/whats-the-most-effective-method-to-ascertain-if-a-vertex-is-within-the-cameras-field-of-view-front-view/44886>\
**Category:** Questions\
**Tags:** mesh, ray, picking, vertex, free-camera\
**Created:** [October 13, 2023, 12:33pm UTC](https://forum.babylonjs.com/t/whats-the-most-effective-method-to-ascertain-if-a-vertex-is-within-the-cameras-field-of-view-front-view/44886 "2023-10-13T12:33:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SNM](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/snm/32/34046_2.png) [@SNM](https://forum.babylonjs.com/u/SNM)\
**Post date:** [October 13, 2023, 12:33pm UTC](https://forum.babylonjs.com/t/whats-the-most-effective-method-to-ascertain-if-a-vertex-is-within-the-cameras-field-of-view-front-view/44886/1 "2023-10-13T12:33:03Z")

</div>

I’m searching for a method to determine whether a vertex lies within the camera’s field of view. Specifically, I want to identify vertices positioned on the visible front side while excluding the backside (backside view) and lateral views (Side Views)."

Here’s what I’ve attempted:

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

Used `scene.pickWithRay()` function to check if the ray intersects with any other objects in the scene, **but it didn’t yield the expected results**.  
The idea was… If the ray hits something, it means that the vertex is not in the camera’s front view, and if it doesn’t hit anything, the vertex is in the camera’s front view.  
**However, the method mentioned above proved to be ineffective** , as it falsely identified all vertices as hits.

Any help on this issue would be greatly appreciated.

---

<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:** [October 13, 2023, 4:54pm UTC](https://forum.babylonjs.com/t/whats-the-most-effective-method-to-ascertain-if-a-vertex-is-within-the-cameras-field-of-view-front-view/44886/2 "2023-10-13T16:54:19Z")

</div>

I think Vector3.Project would be the way to go as in would give you screen space positions ?

---

<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:** [October 13, 2023, 4:56pm UTC](https://forum.babylonjs.com/t/whats-the-most-effective-method-to-ascertain-if-a-vertex-is-within-the-cameras-field-of-view-front-view/44886/3 "2023-10-13T16:56:52Z")

</div>

duplicate of [How to ascertain if a vertex is within the camera's field of view (Front View)? - #3 by SNM](https://forum.babylonjs.com/t/how-to-ascertain-if-a-vertex-is-within-the-cameras-field-of-view-front-view/44889/3)

---

<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:** [October 13, 2023, 4:57pm UTC](https://forum.babylonjs.com/t/whats-the-most-effective-method-to-ascertain-if-a-vertex-is-within-the-cameras-field-of-view-front-view/44886/4 "2023-10-13T16:57:01Z")

</div>

Closed on October 13, 2023, 4:57pm UTC


