Look Something Shiney ( LuaJIT 2.0.0-beta1 )

Look Something Shiney ( LuaJIT 2.0.0-beta1 )

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Look Something Shiney ( LuaJIT 2.0.0-beta1 )

Post by SinbadEV »

http://lua-users.org/lists/lua-l/2009-10/msg01098.html

I don't know anything about our current implementation etc. but this is supposed to be significant faster then previous implementations.
Master-Athmos
Posts: 916
Joined: 27 Jun 2009, 01:32

Re: Look Something Shiney ( LuaJIT 2.0.0-beta1 )

Post by Master-Athmos »

Any chance of combining that with LuaGL?

Would be cool to give the Lua wizards all the functionalities OpenGL gives so we actually might see things like a new model format with all the fancy stuff like bone animations (while it doesn't seem to be needed as afaik zpock managed to handle stuff just with what Spring's Lua access offers)...
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Look Something Shiney ( LuaJIT 2.0.0-beta1 )

Post by zwzsg »

What is the difference between LuaGL and http://springrts.com/wiki/Lua_OpenGL_Api, Master-Athmos?

Because to me it looks like you're an idiot requesting something that's already in.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Look Something Shiney ( LuaJIT 2.0.0-beta1 )

Post by FLOZi »

zwzsg wrote:What is the difference between LuaGL and http://springrts.com/wiki/Lua_OpenGL_Api, Master-Athmos?

Because to me it looks like you're an idiot requesting something that's already in.
Presumably, the latter is merely a subset of the former.
Master-Athmos
Posts: 916
Joined: 27 Jun 2009, 01:32

Re: Look Something Shiney ( LuaJIT 2.0.0-beta1 )

Post by Master-Athmos »

As FLOZi said - LuaGL offers access to all of OpenGL's commands. What you have on Spring's Wiki page is only a tiny bit of those...

My point of view is that this would make things like shaders, model rendering and their animation more easy to do. As I see it things like that won't be hardcoded into Spring anytime soon while a realization via Lua (despite not really being the better way) is not only more probable but even (partially) was accomplished...

I for example think of Argh's shaders and particle system or zpock's MD5 models and animations (while I cannot remember the amount of Lua used for that)...

That's why I came up with the question if the integration of LuaGL is "unthinkable" or not...
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: Look Something Shiney ( LuaJIT 2.0.0-beta1 )

Post by Kloot »

My point of view is that this would make things like shaders, model rendering and their animation more easy to do.
And you base this on...? Shaders and model rendering are already "easy", and especially wrt. the MD5 animation topic that keeps being brought up again and again, the difficulty is *not* in the rendering part. Moreover, if the existing API does not offer a command for which a need is demonstrable then it can be added with far less work than integrating LuaGL would be.
Post Reply

Return to “Engine”