Jump to content
  • Advertisement
Sign in to follow this  
Alex24

Font engine issue. Diagonal crop of vertices

This topic is 1075 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:

 

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.

Edited by Alex24

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!