I wasn’t sure which section of the forum to put this in, but my current method falls mostly into this category I think.
In the program I’m making I’m trying to dynamically create a image file based on input from the user. So basically if they were to hit an arrow key it would draw a line in the direction of that arrow. I would then display a picture of their drawing back to them in the program. The method I’m trying to use right now is modifying a tutorial I found on Render Targets to accomplish this. I get the approximate middle of the render target and draw set sized lines based on the user input. This is being done through calls to draw material to the canvas on the render target. I just chose a starter content render material for what is being drawn. That all is working fine and shows up in game. I then export that as a file to disk (ExportRenderTarget) and re-import it as a Texture2D (Import File as Texture 2D). I display the picture, but anything drawn is not there. It’s just the set backcolor of the render target. I’m very new to this, so I’m guessing that I’m lacking some understanding when it comes to the difference between the texture and the material. I’m guessing that I’m just exporting the texture whereas what’s being drawn is stored in the material? When I open the .png file that is created on my computer the drawing is there, but not in the color shown in the game.
Thanks for any guidance.
Just for some more clarification as I’m working on this more. If I import the file into the editor and I go into the texture viewer I see the drawing there. However if alpha channel is check its showing up as transparent. If I uncheck alpha it shows up as black. Now I’m a bit worried that it actually is there, but is just transparent so I can’t see it…