Lua and jit.gl.camera

Pis Pas's icon

How is the camera supposed to work when I have a mesh in Lua and a jit.gl.camera in the main patch (outside Lua)?
Putting the camera outside Lua is not working for me.
Thanks!

Rob Ramirez's icon

make sure the camera and the internal Lua objects are bound to the same context or sub-context (meaning there drawto attributes or context argument are all the same). if that doesn't work, please send along a patch and i'll take a look.

Pis Pas's icon

Thanks Rob.

In the attached example you can see that the camera has the same render context but it's not responding as expected.

Pis Pas's icon

another try...

Pis Pas's icon

and another...

Lua-cam-test.zip
zip
Rob Ramirez's icon

use mesh:drawraw() instead of mesh:draw()