- Edited
So, it need to be returning an image, but its retuning null
And we can se in the simples sprite, that indded there is texture generated. Code:
extends Node
func _ready(): caos_64(100,100) pass
func caos_64(var1,var2): var imag = Image.new() var caosR = NoiseTexture.new() var sprite = Sprite.new() add_child(sprite) caosR.noise = OpenSimplexNoise.new() caosR.height = var1 caosR.width = var2 imag.create(var1,var2,false,Image.FORMAT_BPTC_RGBA) sprite.texture = caosR print("as reference, this is a image: ", imag) print("This should be a Object Image: ", caosR.get_data())
So, this is a bug, right? Or something wrong doing on my part?
Thanks.