Font engine issue. Diagonal crop of vertices

Started by
-1 comments, last by Alex24 8 years, 4 months ago

Hello people,

I'm facing a strange issue with my font engine in my D3D11 app. I've created the font texture and font configuration (which provides a layout of the texture) and loading it works fine. When rendering the plane with a glyph on top of it using the model-view-projection matrix works also fine. A screenshot showing this can be seen below:

1vAGlTe.jpg

Now when I use the new vertex shader for the font, the only change is instead of multiplying the position with the mvp matrx, I only multiply it with the model (world) matrix and for a strange reason only half of the model (hence the diagonal crop) is visible. Screenshot below:

OGPW65C.jpg

Does anyone have any idea of what's going on here? Don't hesitate for any code snippet you think might be necessary and I'll be uploading it as soon as I can.

Thanks a lot!

(EDIT) The problem is fixed. For anyone happening to have the same issue, the problem was in the texture coord calculation. Make sure all vertex information

is correct first before attempting to debug your game further.

This topic is closed to new replies.

Advertisement