Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Is there a possibiltiy to create a texture from a meshpart in xna. By getting a flat version of the mesh. So I can create a texture for it and edit that texture(via rendertarget)? I need to get the texture(wich is not yet a texture) so I can put another texture on it.

I can create a texture and put it on a certain mesh. But I just cant figure out how I can create a texture with the right size.

I also already found out i can use text2dproj in hlsl. But when i do this i get a gray stripe in the look.

Is there a better solution?

share|improve this question
    
I'm not sure I understand your question correctly. Do you have a model where there are UV-coordinates assigned? Or have you generated a model and wonder how to get UV-coordinates? –  Mikael Högström Sep 7 '12 at 14:11
    
I'm also confused. Are you trying to apply a texture, or extract one? –  Fibericon Sep 10 '12 at 7:14
add comment

1 Answer 1

up vote 0 down vote accepted

I was trying to put an image over my model. I have finally done this with text2dproj. I was going wrong with the matrixes :$ But i finaly made it right.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.