Hi! I’m new to Xenko, but i like this engine and going to write some additional features.
Now i’m doing terrain rendering for my tasks. I’ve already understand how to create geometry from vertex/index buffers and setup materials. Now i want to load texture of height map from script properties and get height data from greyscale texture. I don’t understand now how to get color data or height data from texture object.
Can anyone help? I’m understanding i need CommandList to work with texture data, i used GraphicsContext.CommandList, but how to proceed then?
P.S. I see some properties and methods from Texture, i see texture.GetDataAsImage, and i see in Image data pointers, but how to get real data, there could be different data representation, so now i’m stuck!
Thank you in advance!