# Dynamically subdivide faces in a geometry to have multi-colored faces

**URL:** <https://discourse.threejs.org/t/dynamically-subdivide-faces-in-a-geometry-to-have-multi-colored-faces/18883>\
**Category:** Questions\
**Tags:** materials, geometry\
**Created:** [September 21, 2020, 10:05am UTC](https://discourse.threejs.org/t/dynamically-subdivide-faces-in-a-geometry-to-have-multi-colored-faces/18883 "2020-09-21T10:05:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srinivas\_Prabhu](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/srinivas_prabhu/32/12002_2.png) [@Srinivas\_Prabhu](https://discourse.threejs.org/u/Srinivas_Prabhu)\
**Post date:** [September 21, 2020, 10:05am UTC](https://discourse.threejs.org/t/dynamically-subdivide-faces-in-a-geometry-to-have-multi-colored-faces/18883/1 "2020-09-21T10:05:27Z")

</div>

Hi,

Using the solution from here I created a custom buffer geometry.

> <https://stackoverflow.com/questions/59448382/threejs-transparent-png-textures-black>

Right now I use a static pink texture to be rendered on every face (where the outside of this texture is transparent) and the background is orange.

My final solution ended up looking like this:

> **[Gyazo](https://gyazo.com/e4f256d2f3117e87ca3f3f6e864fc362)**

The actual problem I wanted to solve was to have multi-coloured sub-square faces in every face. In future I could have 4 colors on one face. (Right now it is 2, ie pink and orange but in future there could be a red box inside the pink one and another green box inside the red) The static texture approach will fail here as I would have to manually create these textures externally.

What other alternative could I use so that I can dynamically have multi-colored subdivided faces in every cube face here ?

Any help would be invaluable.

Thanks  
Srinivas
