Hi,
I am trying to determine how much space an object takes in 2D using the following method. But it doesn't seem to return the correct value.
float[] BoundingBox = 3DOBJECT.getMesh().getBoundingBox();
SimpleVector SV3D, SV2D;
SV3D.set(BoundingBox[1], BoundingBox[3], BoundingBox[5]);
SV3D.matMul(3DOBJECT.getWorldTransformation());
SV2D = Interact2D.project3D2D(WORLDOBJECT.getCamera(), FRAMEBUFFER, SV3D).normalize();
I expected SV2D.x to have the correct 2D width as displayed on screen, but it doesn't seem to give that.
Thanks for sharing this great engine!