Jump to content
  • Advertisement
Sign in to follow this  
Meshboy

LineStrip Color

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

Iam using Managed C# Direct3D. i use this for drawing my LineStrip. device.DrawUserPrimitives(PrimitiveType.LineStrip,1,test); The problem is that i want the line to be RED and highly visible through out my 3D models. Any idéa of how to change this line into the color red? (right now it has the same color as one of my textures) help pls.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Meshboy
Iam using Managed C# Direct3D.

i use this for drawing my LineStrip.

device.DrawUserPrimitives(PrimitiveType.LineStrip,1,test);

The problem is that i want the line to be RED and highly visible through out my 3D models.
Any idéa of how to change this line into the color red?

(right now it has the same color as one of my textures)

help pls.
Drawing a line is no different to drawing any other primitive type. If your vertex format has texture coordinates in it, then it'll be textures, and if your vertex format has a diffuse colour, that'll be applied too.
As for making them show through 3D models, just disable the Z-buffer (C++ code is pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE), I've no idea about C#).

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!