Not logged in, Join Here! or Log In Below:  
 
News Articles Search    
 

 Home / 3D Theory & Graphics / ID3DXMesh Account Manager
 
Archive Notice: This thread is old and no longer active. It is here for reference purposes. This thread was created on an older version of the flipcode forums, before the site closed in 2005. Please keep that in mind as you view this thread, as many of the topics and opinions may be outdated.
 
oybl

April 04, 2005, 04:48 PM

Hi there!

I want to render a subset from an optimized ID3DXMesh. So I call GetAttributeTable and render from TD3DXAttibuteRange:

DrawIndexedPrimitive(D3DPT_TRIANGLELIST,0,VertexStart,VertexCount,FaceStart,FaceCount)

The problem is, it renders all distorted. Can anyone help me to correctly call DrawIndexedPrimitive function?

Thanx in advance.

 
Reedbeta

April 04, 2005, 06:58 PM

It's very hard to know what the problem is without being able to see it. Can you post a screenshot?

From the word "distorted" sounds like it might be a projection matrix problem.

 
oybl

April 06, 2005, 11:43 AM

Ok, I've found the problem:

DrawIndexedPrimitive(D3DPT_TRIANGLELIST,0,VertexStart,VertexCount,3*FaceStart,FaceCount)

 
This thread contains 3 messages.
 
 
Hosting by Solid Eight Studios, maker of PhotoTangler Collage Maker.