Has anyone successfully used RenderCam for fixed aspect ratio HTML5 games in full screen mode?
I keep running into issues where it crops the game. Doesn’t do it in the Defold debugger, does do it in a Windows .exe build or HTML 5 build.
Happy to pull code apart, just wanted to see if someone had this working somewhere before I invested the time.
Live example here: http://functionallyimmortal.com/Game/index.html
(At least till I change it)
Put it in full screen mode with a odd aspect ratio, a phone in portrait orientation should do the trick.
Best example is probably this:
RenderCam settings:
go.property("active", true)
go.property("orthographic", true)
go.property("nearZ", -1)
go.property("farZ", 1)
go.property("viewDistance", 0)
go.property("fov", -1)
go.property("orthoScale", 1)
go.property("fixedAspectRatio", true)
-- Using a vector property to set aspectRatio so it can be more accurate.
-- This way you don't end up with 800 x 599.9994812093 px view areas.
go.property("aspectRatio", vmath.vector3(5, 3, 0)) -- only used with a fixed aspect ratio
go.property("useViewArea", false)
go.property("viewArea", vmath.vector3(1280, 768, 0))
go.property("expandView", false)
go.property("fixedArea", true)
go.property("fixedWidth", false)
go.property("fixedHeight", false)