Jump to content
  • Advertisement

Recommended Posts

Heya. I am currently developing a 2D game engine using OpenGL and Java (LWJGL). I didn't follow any tutorials for this cause I have seen enough and want to implement this my self. I am currently at the font rendering stage. I used normal font texture atlases and fnt files to format the alignment of my text. It worked fine untill I scaled up or down the text. The texture was either blurry or pixelated. Thats when I found ThinMatrix tutorial on sign distanced fields and I implemented it and it works fine but... If you have watched it you know that he uses two floats (width and edge) which we can alter in order improve the anti aliasing of the font characters. The problem is he hardcoded in those values. That is what I don't want to do. I want those width and edge values to adjust according to font size. I have tried many formulas with it but none seem to work. If anyone can help me I will be glad to say thank you in return 👽👽

 

Thanks in advance

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 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!