Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

yanuart

Troubles with lines primitives

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

Sometimes my lines have color but sometimes they''re rendered in black ?? This is happened when I rotate my scene couple of times and when I rendered another pirimitives (i.e spheres with their own texture).. I used vertex color for the format and turned off all the lighting.. I don''t know the answer.. is there any way that I can make sure that my lines show their color ? render states.. something like that ??

Share this post


Link to post
Share on other sites
Advertisement
Be careful about what material is active when rendering your lines. If you haven''t set a material you might get random results.

You''ve disabled your lights, that''s a step...
SetRenderState( D3DRS_LIGHTING, FALSE ); right?
also make sure you just use your vertex color info in the texture Stage.
pDevice->SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_DIFFUSE);
pDevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_SELECTARG1);

That should do it, hopefully.

Share this post


Link to post
Share on other sites

  • 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!