TextureCanvas: A texture for drawing textures onto

Hi @NRA,

The used readPixels function is now asynchronous because of

Here is an updated PG with async/await:

1 Like

@Gijs,

Thanks a lot again!

1 Like

Hi @Gijs,

Excuse me for asking your help again! I saw in a earlier post you teaching how to adjust the getUV() for a new plane. I am trying to do that but for a non square one, and I do not figure out how to apply the scale on separated element at “vec”. Do you have a clue?

Thanks

Hi @NRA, no problem, this works in the PG:

Uncomment line 30 for right scaling.

Is this what you were looking for?

By the way, GroundMesh has a getNormalAtCoordinates, but no getUVAtCoordinates, this would be useful to add.

1 Like

Awesome @Gijs, that is what I am looking for!
Thanks you so much! Merry Christmas and a Happy New Year!!!

2 Likes

@NRA
You too :smile:

Hey this seems to be broken with 5.x, the playground examples are giving a blank texture.
Works fine on 4.2.

Yes, there is already a thread : Texture Canvas does not work with Babylon 5 - #4 by Cedric