# How to dig a hole in planar geometry

**URL:** <https://discourse.threejs.org/t/how-to-dig-a-hole-in-planar-geometry/53082>\
**Category:** Questions\
**Tags:** alpha-map, geometry\
**Created:** [June 21, 2023, 8:23am UTC](https://discourse.threejs.org/t/how-to-dig-a-hole-in-planar-geometry/53082 "2023-06-21T08:23:43Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![Lawrence3DPK](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/lawrence3dpk/32/29184_2.png) [@Lawrence3DPK](https://discourse.threejs.org/u/Lawrence3DPK)\
**Post date:** [June 28, 2023, 3:29pm UTC](https://discourse.threejs.org/t/how-to-dig-a-hole-in-planar-geometry/53082/21 "2023-06-28T15:29:20Z")

</div>

😵 that’s ingenious, a really clever use of the transparent property and `renderOrder` 👍

> [@PavelBoytchev](#):
>
> The canvas also works with just 1 pixel, but I’m ashamed of using such a small texture

is there a reason for using a transparent png at all here? it’s also possible to use opacity: 0 right?

```javascript
var geometry = new THREE.CircleGeometry( 1, 64 ),
  material = new THREE.MeshLambertMaterial({
    // map: texture,
    transparent: true,
    opacity:0
  });

```

---

<div class="post-metadata">

**Author:** ![PavelBoytchev](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pavelboytchev/32/38639_2.png) [@PavelBoytchev](https://discourse.threejs.org/u/PavelBoytchev)\
**Post date:** [June 28, 2023, 3:37pm UTC](https://discourse.threejs.org/t/how-to-dig-a-hole-in-planar-geometry/53082/22 "2023-06-28T15:37:27Z")

</div>

You are absolutely correct!

With 0 opacity there is no need for a texture. Initially I wanted to set RGBA value for color, but it appears `THREE.Color` has no alpha. So I slipped into transparent texture instead of transparent color.

---

<div class="post-metadata">

**Author:** ![Vanter](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/vanter/32/37353_2.png) [@Vanter](https://discourse.threejs.org/u/Vanter)\
**Post date:** [June 29, 2023, 1:54am UTC](https://discourse.threejs.org/t/how-to-dig-a-hole-in-planar-geometry/53082/23 "2023-06-29T01:54:12Z")

</div>

Wow! awesome! Your ideas always solve my problems elegantly!  
I’m ashamed of my ignorance, thank you so much for your help!  
Worship!

[Previous page](https://discourse.threejs.org/t/how-to-dig-a-hole-in-planar-geometry/53082.md?page=1)
