BabylonJS / BabylonNative

Build cross-platform native applications with the power of the Babylon.js JavaScript framework
MIT License
753 stars 129 forks source link

Dynamic Texture update does not consider invertY argument values #1186

Open SergioRZMasson opened 1 year ago

SergioRZMasson commented 1 year ago

Overview

When calling DynamicTexture.update with values given to the invertY argument nothing happens in Babylon Native. The invertY arguments get completely ignored by the NativeEngine.

From forum issue: https://forum.babylonjs.com/t/react-native-dynamic-texture-update-inverty-parameter-is-not-working-as-expected/36916

Describe the bug When calling DynamicTexture.update we always get the same results no matter if we give true or false to the invertY argument.

To Reproduce The following Playground does not render properly in Babylon Native: https://playground.babylonjs.com/#FU0ES5#32

Expected behavior Texture should be flipped on the Y axis when invertY is set to true.

SergioRZMasson commented 9 months ago

The API works for the default case (when invertY is not specified) so instead of considering this a bug it will be considered a missing feature. Adding Y flipping in bgfx has proven to be very time consuming.