# Bugs appeared recently in the last hour

**URL:** <https://forum.babylonjs.com/t/bugs-appeared-recently-in-the-last-hour/28503>\
**Category:** Bugs\
**Created:** [March 17, 2022, 12:22pm UTC](https://forum.babylonjs.com/t/bugs-appeared-recently-in-the-last-hour/28503 "2022-03-17T12:22:15Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathus1](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mathus1/32/8535_2.png) [@mathus1](https://forum.babylonjs.com/u/mathus1)\
**Post date:** [March 17, 2022, 12:22pm UTC](https://forum.babylonjs.com/t/bugs-appeared-recently-in-the-last-hour/28503/1 "2022-03-17T12:22:15Z")

</div>

the command new BABYLON.CubeTexture.CreateFromImages(files, scene);  
And  
new BABYLON.Vector3.Zero()  
functions, are not working

It was working one hour ago

---

<div class="post-metadata">

**Author:** ![trueshot](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@trueshot](https://forum.babylonjs.com/u/trueshot)\
**Post date:** [March 17, 2022, 12:26pm UTC](https://forum.babylonjs.com/t/bugs-appeared-recently-in-the-last-hour/28503/2 "2022-03-17T12:26:43Z")

</div>

Me too. On preview branch.

> particle.color = new BABYLON.Color4.FromHexString(‘#f44336’)  
> Uncaught TypeError: BABYLON.Color4.FromHexString is not a constructor

---

<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:** [March 17, 2022, 12:46pm UTC](https://forum.babylonjs.com/t/bugs-appeared-recently-in-the-last-hour/28503/3 "2022-03-17T12:46:15Z")

</div>

cc @RaananW

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [March 17, 2022, 12:51pm UTC](https://forum.babylonjs.com/t/bugs-appeared-recently-in-the-last-hour/28503/4 "2022-03-17T12:51:13Z")

</div>

Whole Playground seems to be down at the moment. However both

BABYLON.CubeTexture.CreateFromImages(files, scene);  
and  
BABYLON.Vector3.Zero()

are static functions and do not require a new command. If they used to work with new and no longer do then this is a bug correction.

---

<div class="post-metadata">

**Author:** ![Censor](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@Censor](https://forum.babylonjs.com/u/Censor)\
**Post date:** [March 17, 2022, 12:51pm UTC](https://forum.babylonjs.com/t/bugs-appeared-recently-in-the-last-hour/28503/5 "2022-03-17T12:51:42Z")

</div>

I’m also getting 404 for textures from [https://www.babylonjs-playground.com/textures](https://www.babylonjs-playground.com/textures)

---

<div class="post-metadata">

**Author:** ![trueshot](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@trueshot](https://forum.babylonjs.com/u/trueshot)\
**Post date:** [March 17, 2022, 12:57pm UTC](https://forum.babylonjs.com/t/bugs-appeared-recently-in-the-last-hour/28503/6 "2022-03-17T12:57:55Z")

</div>

This showAxis function is used pretty widely. Can you elaborate on what is obsolete in it?

```auto
var showAxis = function (size) {
   var makeTextPlane
   var dynamicTexture
   var plane
   var axisX
   var axisY
   var xChar
   var yChar
   var axisZ
   var zChar
   makeTextPlane = function (text, color, size) {
      dynamicTexture = new BABYLON.DynamicTexture(
         'DynamicTexture',
         50,
         localBase.explain.scene,
         true
      )
      dynamicTexture.hasAlpha = true
      dynamicTexture.drawText(
         text,
         5,
         40,
         'bold 36px Arial',
         color,
         'transparent',
         true
      )
      plane = new BABYLON.Mesh.CreatePlane(
         'TextPlane',
         size,
         localBase.explain.scene,
         true
      )
      plane.material = new BABYLON.StandardMaterial(
         'TextPlaneMaterial',
         localBase.explain.scene
      )
      plane.material.backFaceCulling = false
      plane.material.specularColor = new BABYLON.Color3(0, 0, 0)
      plane.material.diffuseTexture = dynamicTexture
      return plane
   }

   axisX = BABYLON.Mesh.CreateLines(
      'axisX',
      [
         new BABYLON.Vector3.Zero(),
         new BABYLON.Vector3(size, 0, 0),
         new BABYLON.Vector3(size * 0.95, 0.05 * size, 0),
         new BABYLON.Vector3(size, 0, 0),
         new BABYLON.Vector3(size * 0.95, -0.05 * size, 0),
      ],
      localBase.explain.scene
   )
   axisX.color = new BABYLON.Color3(1, 0, 0)
   xChar = makeTextPlane('X', 'red', size / 10)
   xChar.position = new BABYLON.Vector3(0.9 * size, -0.05 * size, 0)
   axisY = BABYLON.Mesh.CreateLines(
      'axisY',
      [
         new BABYLON.Vector3.Zero(),
         new BABYLON.Vector3(0, size, 0),
         new BABYLON.Vector3(-0.05 * size, size * 0.95, 0),
         new BABYLON.Vector3(0, size, 0),
         new BABYLON.Vector3(0.05 * size, size * 0.95, 0),
      ],
      localBase.explain.scene
   )
   axisY.color = new BABYLON.Color3(0, 1, 0)
   yChar = makeTextPlane('Y', 'green', size / 10)
   yChar.position = new BABYLON.Vector3(0, 0.9 * size, -0.05 * size)
   axisZ = BABYLON.Mesh.CreateLines(
      'axisZ',
      [
         new BABYLON.Vector3.Zero(),
         new BABYLON.Vector3(0, 0, size),
         new BABYLON.Vector3(0, -0.05 * size, size * 0.95),
         new BABYLON.Vector3(0, 0, size),
         new BABYLON.Vector3(0, 0.05 * size, size * 0.95),
      ],
      localBase.explain.scene
   )
   axisZ.color = new BABYLON.Color3(0, 0, 1)
   zChar = makeTextPlane('Z', 'blue', size / 10)
   zChar.position = new BABYLON.Vector3(0, 0.05 * size, 0.9 * size)
}

```

Thanks

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [March 17, 2022, 1:06pm UTC](https://forum.babylonjs.com/t/bugs-appeared-recently-in-the-last-hour/28503/7 "2022-03-17T13:06:56Z")

</div>

There is now a built in method to display axes

```auto
const axes = new BABYLON.AxesViewer(scene, length_of_axes)

```

> **[Display Axes | Babylon.js Documentation](https://doc.babylonjs.com/toolsAndResources/utilities/World_Axes)**
>
> Helpful feature for displaying world axes in Babylon.js.

Also BABYLON.Mesh.CreatePlane and BABYLON.Mesh.CreateLines, used several times in the showAxis function, are now depreciated. However because of the importance of backwards compatability within Babylon.js you can continue to use the showAxis function as it is if you wish to.

---

<div class="post-metadata">

**Author:** ![trueshot](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@trueshot](https://forum.babylonjs.com/u/trueshot)\
**Post date:** [March 17, 2022, 1:10pm UTC](https://forum.babylonjs.com/t/bugs-appeared-recently-in-the-last-hour/28503/8 "2022-03-17T13:10:14Z")

</div>

Very cool. Thanks John.

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [March 17, 2022, 2:06pm UTC](https://forum.babylonjs.com/t/bugs-appeared-recently-in-the-last-hour/28503/9 "2022-03-17T14:06:43Z")

</div>

Those are not constructors, so new is actually incorrect.

The playground should be online and working. is it still offline for you?

---

<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:** [March 17, 2022, 6:01pm UTC](https://forum.babylonjs.com/t/bugs-appeared-recently-in-the-last-hour/28503/11 "2022-03-17T18:01:51Z")

</div>

same this should not have a new in from of it, this is just a function call not an instantiation.

---

<div class="post-metadata">

**Author:** ![brianzinn](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/brianzinn/32/28013_2.png) [@brianzinn](https://forum.babylonjs.com/u/brianzinn)\
**Post date:** [March 17, 2022, 6:55pm UTC](https://forum.babylonjs.com/t/bugs-appeared-recently-in-the-last-hour/28503/13 "2022-03-17T18:55:01Z")

</div>

I could be wrong here as there could be exceptions to the rule, but the general convention is:  
BABYLON.ClassName

BABYLON.ClassName.method (camelCase)

BABYLON.ClassName.FactoryMethod (ProperCase)

You need new for ClassName and don’t need “new” for FactoryMethod(…) to create new classes.

---

<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:** [March 17, 2022, 7:20pm UTC](https://forum.babylonjs.com/t/bugs-appeared-recently-in-the-last-hour/28503/14 "2022-03-17T19:20:34Z")

</div>

Yup and currently @RaananW is working on pushing our previous way of building in es5 which was a weird side effect alllowing the syntax (despite not being correct) hence the regression.

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [March 17, 2022, 7:21pm UTC](https://forum.babylonjs.com/t/bugs-appeared-recently-in-the-last-hour/28503/15 "2022-03-17T19:21:07Z")

</div>

it should be deployed in a few minutes. Having said that, I would recommend you not to use this syntax 🙂
