As described in the thread, the problem in this call :
get_viewport().get_texture().get_data() is the
On Android, i can call
get_viewport().get_texture() and set the texture successfully on a mesh with the following code:
var retTexture = GetScreengrabAsTexture() //just executing : return get_viewport().get_texture()
#testing setting screen grab to floor
curScene.get_node( myNode ).get_surface_material(0).albedo_texture = retTexture
var img = curScene.get_node( myNode ).get_surface_material(0).albedo_texture.get_data()
with the image line
var img=... failing. Since i am able to make sure the screen grab worked (displays correctly on the mesh) any hack to get the image somehow from it?
I know this is not the optimized way to get a screengrab, but it works for me in case possible...
I tried using,
.duplicate(true) on the texture but not to avail..