Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualHeadkaze

Posted 11 July 2013 - 03:49 AM

I'm having a problem rendering an X model. When I use the DirectX ModelView app it renders the model correctly.

 

I have tried various different lighting but no matter how I rotate the model the edges are always black when they should be green.

 

I'm wondering if it's my vertex format which is:

VertexFormat.Position | VertexFormat.Normal | VertexFormat.Texture1

I've attached the X model to this post along with screenshots showing ModelView's rendering and my own engine rendering.

 

Any ideas what it could be?

 

EDIT: I tried adding VertexFormat.Diffuse but no difference.


#1Headkaze

Posted 11 July 2013 - 03:03 AM

I'm having a problem rendering an X model. When I use the DirectX ModelView app it renders the model correctly.

 

I have tried various different lighting but no matter how I rotate the model the edges are always black when they should be green.

 

I'm wondering if it's my vertex format which is:

 

VertexFormat.Position | VertexFormat.Normal | VertexFormat.Texture1

 

I've attached the X model to this post along with screenshots showing ModelView's rendering and my own engine rendering.

 

Any ideas what it could be?


PARTNERS