Ortho projection and matrices

Started by
1 comment, last by jn_rntkl 17 years, 10 months ago
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?
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

<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ | MVP Profile | Developer Journal ]</small>

Eh, i got this figured out. A typo.[headshake]

This topic is closed to new replies.

Advertisement