Search found 62 matches

by nyenye
Fri Dec 02, 2016 10:01 pm
Forum: Support and Development
Topic: Compensate camera position when graphics are scaled. [SOLVED]
Replies: 6
Views: 3363

Re: Camera fustrum changes on resize

That love file is packaged incorrectly. For what I understood, your frutrum happens on the world coordinates, so when you scale how the world is drawn to screen you need to scale your frustrum back to compensate. For example let's say that my world is 2000x2000, my screen is 500x500, I'm scaling my...
by nyenye
Fri Dec 02, 2016 1:55 pm
Forum: Support and Development
Topic: Compensate camera position when graphics are scaled. [SOLVED]
Replies: 6
Views: 3363

Compensate camera position when graphics are scaled. [SOLVED]

Hii! I'm trying to make a game that can adapt to different resolutions, and till now I've manage to cope with the maths involves to scale the objects so they are proportionally equal in most resolutions, but the thing is that the camera frustrum/viewport changes on resize. I guess that the key is on...