Jump to content
  • Advertisement
Sign in to follow this  
jn_rntkl

Ortho projection and matrices

This topic is 4351 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 set up an orthographic projection in dx8 by calling D3DXMatrixOrthoOffCenterLH and setting the projection transform. World and view transforms are set as identity matrices. I did this as suggested here, though i'm using vb. I was kinda hoping to see the set texture when drawing, but what i got was a black primitive. The good thing is that it was on the right place, though. [rolleyes] Everything works fine when not using matrices, with D3DFVF_XYZRHW flag instead of D3DFVF_XYZ. So what could possibly be the problem?

Share this post


Link to post
Share on other sites
Advertisement
We'd need more details.

D3DFVF_XYZRHW is a pre-transformed format, thus minimal processing is done and you get to specify the colour.

Depending on the rest of your vertex format and pipeline configuration you can get very different results with regular XYZ geometry. A simple example would be that it's now expecting lighting/material configuration. Are you including a D3DFVF_DIFFUSE component?

hth
Jack

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.

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

Sign me up!