Rinnegatamante / lpp-vita

Lua Player Plus for PSVITA. Documentation on: http://rinnegatamante.github.io/lpp-vita/
GNU General Public License v3.0
180 stars 27 forks source link

[Feature Request] Projection handling for 3d projects #19

Closed ghost closed 7 years ago

ghost commented 7 years ago

Any plans to add functions to the Render Module for modifying the view matrix? (set 3d projection)

Rinnegatamante commented 7 years ago

A camera instance will come in the near future to handle this but for the moment, such instance can be handled in Lua.

ghost commented 7 years ago

Thanks for the quick reply Rinn, hope the Vacation has been relaxing.

Does lpp-vita accept 'require()' for our own Modules? I've been working on a Module but can't seem to get 'require()' working. (crashes when called. eg. require("core/engine") or require("app0:core/engine"))

dofile() works fine, but i was hoping to creating Modules for a more formal namespace and to avoid duplicates in larger projects.

Rinnegatamante commented 7 years ago

dofile works cause is patched on interpreter boot. Something similar should be done with require in order to get it working (look at luaPlayer.cpp + luaSystem.cpp )

ghost commented 7 years ago

Thanks for the information, i'll have a look into it today.

Rinnegatamante commented 7 years ago

Still not 100% tested but camera instance added with https://github.com/Rinnegatamante/lpp-vita/commit/a228c211fba38d119bd5c753c7cdef1b28be58a8 .

Will be available on next nightly.

ghost commented 7 years ago

(twiddles fingers one at a time) "Eeexcellent!" very much appreciated.