Jump to content
  • Advertisement

Archived

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

switching between wireframe and texture rendering in dx8

This topic is 6025 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 have this d3d application that renders a simple terrain using the wireframe fill mode, and then I wanted to add som text for displaying data to render text I use textured tringlestrips so I had to change many render states when rendering the text but I figured as long as I changed every one back it wouldn''t be any problem but after I call the IDirect3DDevice8::SetTexture to set my font texture the terrain gets all screwed up and looks more like a collection of blinking dots do I have to reset the texture or something?

Share this post


Link to post
Share on other sites
Advertisement
You need to do

      
DXDisplay->SetTexture( 0, NULL);


This sets DX to use no texture, otherwise your wireframe mesh will be textured with the font texture (last texture set). Which is why it looks all weird!

[The views stated herein do not necessarily represent the view of the company Eurocom ]

Eurocom Entertainment Software
www.Eurocom.co.uk

The Jackal

Edited by - Mark Duffill on November 22, 2001 8:28:46 AM

Edited by - Mark Duffill on November 22, 2001 8:29:35 AM

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!