# CustomProceduralTexture & config.json

**URL:** <https://forum.babylonjs.com/t/customproceduraltexture-config-json/19544>\
**Category:** Bugs\
**Created:** [March 29, 2021, 4:14pm UTC](https://forum.babylonjs.com/t/customproceduraltexture-config-json/19544 "2021-03-29T16:14:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlz](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@mlz](https://forum.babylonjs.com/u/mlz)\
**Post date:** [March 29, 2021, 4:14pm UTC](https://forum.babylonjs.com/t/customproceduraltexture-config-json/19544/1 "2021-03-29T16:14:33Z")

</div>

Hi,

[https://playground.babylonjs.com/#XR2BPU#2](https://playground.babylonjs.com/#XR2BPU#2) is a test for a CustomProceduralTexture.  
It works fine and CPT are great, but I always get an error message in the console about config.json (which I thought was not required when using the ShaderStore).

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [March 29, 2021, 5:31pm UTC](https://forum.babylonjs.com/t/customproceduraltexture-config-json/19544/2 "2021-03-29T17:31:43Z")

</div>

It is expected because the system tries to see if you are using a json file first

---

<div class="post-metadata">

**Author:** ![mlz](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@mlz](https://forum.babylonjs.com/u/mlz)\
**Post date:** [March 30, 2021, 1:12am UTC](https://forum.babylonjs.com/t/customproceduraltexture-config-json/19544/3 "2021-03-30T01:12:32Z")

</div>

The system already has a nice error message when nothing works:  
`Logger.Error("No json or ShaderStore or DOM element found for CustomProceduralTexture");`  
From a user POV, I must admit that I find it a bit confusing to have an error when doing a valid usage. It feels like an error I could never get rid of… 😉

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [March 30, 2021, 4:03pm UTC](https://forum.babylonjs.com/t/customproceduraltexture-config-json/19544/4 "2021-03-30T16:03:21Z")

</div>

We should move it to a simple message you are right 🙂

(I’ll do it :))

---

<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:** [March 30, 2021, 4:32pm UTC](https://forum.babylonjs.com/t/customproceduraltexture-config-json/19544/5 "2021-03-30T16:32:30Z")

</div>

I’m not sure we are responsible for this message: it is the browser that logs this message when the file does not exist on the server… To avoid it, we would need a mode where we tell the texture constructor that the `texturePath` parameter is not a url/file path in the first place so that we don’t attempt to retrieve the file.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [March 30, 2021, 5:37pm UTC](https://forum.babylonjs.com/t/customproceduraltexture-config-json/19544/6 "2021-03-30T17:37:56Z")

</div>

Agree this is the cleaner solution
