0
\$\begingroup\$

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?

\$\endgroup\$
2
  • \$\begingroup\$ 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? \$\endgroup\$ Sep 7, 2012 at 14:11
  • \$\begingroup\$ I'm also confused. Are you trying to apply a texture, or extract one? \$\endgroup\$
    – Fibericon
    Sep 10, 2012 at 7:14

1 Answer 1

0
\$\begingroup\$

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.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .