Is there any way to have the texture of a model loaded from a Png ?
I have a simple prism to test it on, but i just want to be able to edit an image and have the model's texture change.
Thanks!
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this communityIs there any way to have the texture of a model loaded from a Png ?
I have a simple prism to test it on, but i just want to be able to edit an image and have the model's texture change.
Thanks!
You can use a png as a texture. First you have to add it to the game project content :
http://msdn.microsoft.com/en-us/library/dd282477(v=XNAGameStudio.40).aspx
And then you call Load method of ContentManager :
http://msdn.microsoft.com/fr-FR/library/bb197848(v=XNAGameStudio.40).aspx
You can access the ContentManager through the Content properties of Game class :