Page 1 of 1

[Suggestion] Allowing people to access OpenGL/SDL functions

Posted: Sun Sep 17, 2017 7:26 pm
by Jsin
Hello. I have wanted to make a 3D game, but most 3D engine that use lua are too complicated and the engines I do understand (UE4 and unity, ik they dont use lua but I understand them) don't run well enough on my computer. I was planning to use Love2D to make a 3D game by calling Dll functions using FFI, but I could never find a good way to do that. So, I have a suggestion; Allow people to access native OpenGL or SDL functions, as this would mean you could still focus on 2D but also allow hardware accelerated 3D. Thanks in advance.

Re: [Suggestion] Allowing people to access OpenGL/SDL functions

Posted: Mon Sep 18, 2017 5:34 am
by ivan
What you are looking for is a OpenGL/SDL bindings for Lua.
Love2D without its abstraction layer would not be useful at all.

Re: [Suggestion] Allowing people to access OpenGL/SDL functions

Posted: Mon Sep 18, 2017 8:27 am
by drunken_munki
I don't know how to answer your qustion, but have you taken a look at some Love3D projects out there? Not sure what the status is on these sort of things these days:

https://love2d.org/forums/viewtopic.php?f=5&t=78943

I think the latest stuff is here now:

https://github.com/excessive/love3d-demos

Re: [Suggestion] Allowing people to access OpenGL/SDL functions

Posted: Fri Sep 22, 2017 6:53 pm
by Jsin
ivan wrote: Mon Sep 18, 2017 5:34 am What you are looking for is a OpenGL/SDL bindings for Lua.
Love2D without its abstraction layer would not be useful at all.
I'm not meaning remove the abstraction layer, but instead allow people to get below it.

Re: [Suggestion] Allowing people to access OpenGL/SDL functions

Posted: Fri Sep 22, 2017 11:08 pm
by erasio
I mean. The source is open. You can get below it.

Bloating the focus and start supporting 3D properly is not necessarily a good way to go. There are 3D projects which work fair enough and fast enough for basic 3D.

Love is an amazing tool for 2D. That's what it does.

Reappropriating something isn't a terribly good idea anyway. You should probably look for a 3D engine that suits your needs.

OGRE, Torque3D, XNA, MonoGame, jMonkeyEngine, etc.

There's a ton of them around.

Re: [Suggestion] Allowing people to access OpenGL/SDL functions

Posted: Sat Sep 23, 2017 8:34 am
by ivan
love2d already has a nice api (namely, love.graphics) that allows you to access OGL using a efficient Lua interface. Direct access to the low-level OGL/SDL functions in Lua would be missing the point. Like erasio said, you're really looking for a different kind of tool.