Jump to content
  • Advertisement
Sign in to follow this  
panface

Colored Edges or Lines in direct3d

This topic is 4327 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

I am using MDX direct3d. I was wondering what would be the best way to render colored edges or lines? I used the Line class, but I was having problems getting them to propagate into the z direction. What I am doing is creating an axis tripod for my application. Right now I am using a LineList and the tripod looks good, but what I really want is each axis to be a different color. Any suggestions, ideas, or thoughts? thanks!

Share this post


Link to post
Share on other sites
Advertisement
Well the the LineList primitive is created from a CustomVertex.PositionColored[].
This currently only has a Color attribute.

If you have any suggestions to use something else that has a diffuse attribute/member then I would use that.

Thanks for the reply!

Share this post


Link to post
Share on other sites
Quote:
Original post by panface
Well the the LineList primitive is created from a CustomVertex.PositionColored[].
This currently only has a Color attribute.


Yeah that's what I was talking about, change the Color attribute of the vertices and the lines will also change color. Just make sure lighting is turned off.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!