I’ve been working on a terrain system that use a texture that contains the height + normals in a single texture by packing the data together to save memory. Our artist wants to be able to streamline the process of creating the texture through ZBrush if possible.
So I’ve been trying to write a plugin that would generate the texture from the canvas. The interface stuff has been easy, and retrieving the data from the canvas should be easy too through the PixolPick function, but I’ve hit a roadblock when it comes to writing the data to a texture and then exporting. I’ve looked through the forums and I haven’t been able to find an example of data being written to a texture and then being exported.
If anyone has an example of this, or even a snippet of code or an explanation of how it can be done, I would really be grateful, thanks.