Jump to content
  • Advertisement
Sign in to follow this  

Fillstyle Pattern and Lines

This topic is 3337 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I'm quite new to Directx just to warn you ^^ The project I'm working on involves lines featuring alpha blending from vertex to vertex, customizable dash/dots and width. Aswell as triangles to create complex geometrical objects featuring alpha blending from vertex to vertex and customizable fillstyles. As for the lines I've been working with D3DXLine which is quite ok but from what I've seen so far its not possible to change the color between 2 vertexes to display an alpha blending. Normal primitive lines don't support width so i canceled them. Then i tried to create lines as D3DXLine does it with triangles but then i dont know how to create customizable dash/dots. That leads to my last problem which is the fillstyles of the triangles. In the finished programm you should be able to fill a matrix of binaries like this 100011010010 110001010001 (1) opaque 010100010100 (0) transparent 101001001001 010101000010 100100100010 and take that as the background of the triangle. The only way I found to do that is to fill the triangle with a lot of D3DXLine's and patterns on which i calculate out of the matrix. But that seems inefficient and it doesn't support the alpha blending. I would appreciate any suggestions you have. Thanks already for reading!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!