[Suggestion] Allowing people to access OpenGL/SDL functions

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Jsin
Prole
Posts: 4
Joined: Mon Jul 31, 2017 2:03 pm

[Suggestion] Allowing people to access OpenGL/SDL functions

Post 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.
User avatar
ivan
Party member
Posts: 1911
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

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

Post 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.
drunken_munki
Party member
Posts: 134
Joined: Tue Mar 29, 2011 11:05 pm

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

Post 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
Jsin
Prole
Posts: 4
Joined: Mon Jul 31, 2017 2:03 pm

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

Post 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.
User avatar
erasio
Party member
Posts: 118
Joined: Wed Mar 15, 2017 8:52 am
Location: Germany

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

Post 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.
User avatar
ivan
Party member
Posts: 1911
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

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

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 47 guests