I created a custom image class that uses a quad and loads a buffered image from the awt loader. So far I’ve been able to load the image draw it and translate the quad but I’m having trouble with the scale.
geometry.setLocalScale(new Vector3f(dimensions.width, dimensions.height, 1f));
This is the same code used in the picture class and theoretically it should scaled the quad to be equal to screen size in pixels for example 200,400 should make it 200 pixels wide by 400 pixels tall. However when I apply the scale the quad blows up to huge proportions covering the entire screen and more.
What am I doing wrong here ?