Sure! I modified Rendercam’s renderscript to print all values it gets from render. This means the line number of the error is no longer accurate. Please see the first message for a line number that correlates with Rendercam v1.0.2.
The last print before the error:
default 14:00:44.821013+0100 MyGame DEBUG:SCRIPT: rendercam.update() RenderScript: 0x01102df0d0
default 14:00:44.821070+0100 MyGame DEBUG:SCRIPT: render.get_width() 1124
default 14:00:44.821126+0100 MyGame DEBUG:SCRIPT: render.get_height() 2436
default 14:00:44.821182+0100 MyGame DEBUG:SCRIPT: render.get_window_width() 750
default 14:00:44.821630+0100 MyGame DEBUG:SCRIPT: render.get_window_width() 1624
default 14:00:45.816994+0100 MyGame 0x1122ddbd0 - ApplicationStateTracker: UISceneDidEnterBackground
default 14:00:45.817811+0100 MyGame 0x106101e18 - [pageProxyID=6, webPageID=7, PID=383] WebPageProxy::applicationDidEnterBackground: isSuspendedUnderLock? 1
default 14:00:45.818109+0100 MyGame 0x1122dfe80 - ApplicationStateTracker: UISceneDidEnterBackground
default 14:00:45.818252+0100 MyGame 0x1122decb0 - ApplicationStateTracker: UISceneDidEnterBackground
default 14:00:45.818366+0100 MyGame 0x10612c618 - [pageProxyID=22, webPageID=23, PID=388] WebPageProxy::applicationDidEnterBackground: isSuspendedUnderLock? 1
default 14:00:45.818567+0100 MyGame 0x1127d04b0 - ApplicationStateTracker: UISceneDidEnterBackground
default 14:00:45.819294+0100 MyGame 0x10612ea18 - [pageProxyID=28, webPageID=29, PID=389] WebPageProxy::applicationDidEnterBackground: isSuspendedUnderLock? 1
The error:
default 14:01:24.008550+0100 MyGame DEBUG:SCRIPT: rendercam.update_window() RenderScript: 0x01102df0d0
default 14:01:24.008651+0100 MyGame DEBUG:SCRIPT: render.get_window_width() 0
default 14:01:24.008759+0100 MyGame DEBUG:SCRIPT: render.get_window_width() 0
default 14:01:24.008815+0100 MyGame DEBUG:SCRIPT: rendercam.window.x 750
default 14:01:24.008867+0100 MyGame DEBUG:SCRIPT: rendercam.window.y 1624
default 14:01:24.008920+0100 MyGame DEBUG:SCRIPT: rendercam.update_window() 0 0
default 14:01:24.008972+0100 MyGame DEBUG:SCRIPT: vmath.matrix4_orthographic() 0 0 0 0 -1 1
default 14:01:24.009027+0100 MyGame DEBUG:SCRIPT: rendercam.update_window() RenderScript: 0x01102df0d0
default 14:01:24.009079+0100 MyGame DEBUG:SCRIPT: render.get_window_width() 0
default 14:01:24.009135+0100 MyGame DEBUG:SCRIPT: render.get_window_width() 0
default 14:01:24.009190+0100 MyGame DEBUG:SCRIPT: rendercam.window.x 0
default 14:01:24.009243+0100 MyGame DEBUG:SCRIPT: rendercam.window.y 0
default 14:01:24.009298+0100 MyGame DEBUG:SCRIPT: rendercam.update_window() 0 0
default 14:01:24.009351+0100 MyGame DEBUG:SCRIPT: vmath.matrix4_orthographic() 0 0 0 0 -1 1
default 14:01:24.009406+0100 MyGame DEBUG:SCRIPT: rendercam.update() RenderScript: 0x01102df0d0
default 14:01:24.009524+0100 MyGame DEBUG:SCRIPT: render.get_width() 1124
default 14:01:24.009666+0100 MyGame DEBUG:SCRIPT: render.get_height() 2436
default 14:01:24.009728+0100 MyGame DEBUG:SCRIPT: render.get_window_width() 0
default 14:01:24.009780+0100 MyGame DEBUG:SCRIPT: render.get_window_width() 0
default 14:01:24.010005+0100 MyGame ERROR:SCRIPT: custom/rendercam.render_script:61: argument #1 contains one or more values which are not numbers: vmath.matrix4(nan, 0, 0, nan, 0, nan, 0, nan, 0, 0, -1, -0, 0, 0, 0, 1)
stack traceback:
[C]: in function 'set_projection'
custom/rendercam.render_script:61: in function <custom/rendercam.render_script:46>
default 14:01:24.010180+0100 MyGame ERROR:GRAPHICS: OpenGLClear(1108): gl error 1286
default 14:01:24.012115+0100 MyGame Resetting scope = 1, element = 0
It looks like you’re right! What’s the next step?