Avatar

Richard Bamford

About

Second year Computer Science student at the University of Hull. Interested in maths, physics and graphics.

Blog posts

C++ naming conventions

C++ Naming ConventionsFrom the book "Code Complete - 2nd Edition" Entity ClassName TypeName EnumeratedTypes localVariable routineParameter RoutineName() m_ClassVariable g_GlobalVariable CONSTANT MACRO Base_EnumeratedType Read more →


C++ Game Project - 1 - Rendering Fonts

Figured out how to render fonts using FreeType and OpenGL.OpenGL, C++ and FreeTypeLearning Points:Orthographic projections and the device coordinate system.Font metrics and FreeType library.Resource Pools and Factory designs.GLM library.References:https://www.freetype.org/freetype2/docs/tutorial/step2.htmlhttps://open.gl/https://learnopengl.com/In-Practice/Text-Rendering Read more →


C++ Game Project - 1 - Rendering Fonts

Figured out how to render fonts using FreeType and OpenGL.OpenGL, C++ and FreeTypeLearning Points:Orthographic projections and the device coordinate system.Font metrics and FreeType library.Resource Pools and Factory designs.GLM library.References:https://www.freetype.org/freetype2/docs/tutorial/step2.htmlhttps://open.gl/https://learnopengl.com/In-Practice/Text-Rendering Read more →


Programming Adventures 2 - Unity3D Translation

Programming Adventures 2 - Unity3D Translate When moving objects using gameObject.transform.translate(x,y,z), its direction is based on the object's local transformation.That means that a square object rotated 90 degrees right will translate +Y when translated by (10, 0, 0).This bug happens when trying to translate objects using world space vectors. SolutionThe solution is to use gameObject.transf… Read more →


Programming Adventures 2 - Unity3D Translation

Programming Adventures 2 - Unity3D Translate When moving objects using gameObject.transform.translate(x,y,z), its direction is based on the object's local transformation.That means that a square object rotated 90 degrees right will translate +Y when translated by (10, 0, 0).This bug happens when trying to translate objects using world space vectors. SolutionThe solution is to use gameObject.transf… Read more →


Programming Tricks 1 - PHP and JS/CSS

Programming Tricks 1PHPWhen creating PHP scripts, there is a funny error that if there are spaces before the first Read more →


Programming Tricks 1 - PHP and JS/CSS

Programming Tricks 1PHPWhen creating PHP scripts, there is a funny error that if there are spaces before the first Read more →