Hi there.
I’ve been playing around with Defold for quite some time now. The engine is great and this forum is very informative, so I was able to solve most of the problems I’ve encountered so far.
But I have a problem understanding the camera and rendering process. To illustrate it, I’ve created a small test project (included as a zip file) from the Linker example.
Let’s say, I want to test it with resolution of my phone (1080x1920). I’ve changed the ‘game.project’ file, setting width/height to 540/960.
If I use default render script then everything works as expected. Yes, the stretching behaviour is not the best choice for many cases, but at least I understand how it works.
Then, I want to use Rendercam. I’m changing the default render script to the one shipped with rendercam. I understand how to change input logic to use the correct coordinates of the objects.
Now, if I build a project from the editor, everything works as I expect. But when I create an android bundle, I see that the whole thing is scaled down. And I don’t really understand why.
Hope my description is clear. I would appreciate any help.
test-linker-game.zip (1023.0 KB)
Haven’t had a chance to look at the project yet, but my guess is, you need to check “Use View Area” on the camera and set your view area to 540x960. If that’s turned off, it uses the current window resolution to scale, which on mobile gets forced to your device resolution before anything else.
2 Likes
Thank you, it really helped. Looks a lot better now.