Jump to content
  • Advertisement
Sign in to follow this  
noturno

Loading a Mesh

This topic is 4230 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 having trouble to load a mesh using directx. the problem is that i'm using the diretx examples, I don't have any experince in directx, and when a load it it cames with the texture and material, i just want to take it of!!! Why I cant take of the materials and textures? thanks!! noturno.

Share this post


Link to post
Share on other sites
Advertisement
Maybe you should try commenting out the relevant calls to IDirect3DDevice9::SetMaterial and SetTexture. Realise that asking people to 'give you a fish' won't get you very far. If you want to do any real work, you'll have to familiarise yourself with the API.

Admiral

Share this post


Link to post
Share on other sites
Yep, i know that, but I tried to start with DiretX tutorials, but right now I don't think that was a good idea. You know online tutorial to learn the DiretX API?

thanks a lot.
noturno.

Share this post


Link to post
Share on other sites
When I take of the materials and the texture it only show a black figure and I want to see it lake a wireframe. how to do it?

have and parameter that is missing????

thanks.
noturno.

Share this post


Link to post
Share on other sites
How did you go about removing the textures and materials? With code removal or by actually removing them with a modeler? There are actually a few different ways to make a mesh appear as wireframe, but it depends on if you want just the mesh to appear that way or the entire scene, etc.

In the code for setting the D3D device render states, you can change the fill mode to wireframe...

p_d3dDevice->SetRenderState( D3DRS_FILLMODE, D3DFILL_WIREFRAME );



but this will affect the entire scene. If you want just the mesh object to be wireframe and nothing else, then you'll need to handle it differently. It really depends on what you want to do. I would check out the documentation for the API, as TheAdmiral said.

Scorp

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!