I am doing XNA and as heading states, I am trying to see if there is a way to fill A 2D area defined by the corner archive on an aircraft. I want to fill in a color, not file-based texture
For example, take a square rectangle, whose corners are defined by four quarter-triangle fans. Triangles are defined by creating a collection of triangles, but the triangle can not be adjacent.
In addition to that, I would like to fill it with more than one color - that is to divide the bound area into four vertical bands and each one has a different color. You do not have to provide me the code, I Pointing will help in a great deal. I can work with Google (which I tried earlier but failed miserably).
This is an exploration as "what is suitable for XNA" as it is an implementation of it. Being very new to XNA, I also want to learn what can be done and what can not be done. -Text "itemprop =" text ">
Not very much but here's the beginning:
A shader is used by coloring. There is a great resource on the subject. / P>
You need to calculate the geometry and create top buffer to catch it. Note that all the vector geometry in XNA are in 3D, but using a fixed camera in 2D Will be simulated
different colors To add to c-separated triangles, you must basically put the geometry of the group in the top buffer. Then, using a shader with a color parameter for each buffer, buffer Alternatively, you can use, which basically gives you a color on each header.
Comments
Post a Comment