• Advertisement
Sign in to follow this  

Font engine issue. Diagonal crop of vertices

This topic is 809 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

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:






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:



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.

Edited by Alex24

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement