Forums > Jitter

[ANN] luaGLM model loader for jit.gl.lua

November 15, 2007 | 6:02 pm

Hi peoples,
I’ve uploaded a new Lua module to my C74 share site. It’s an obj
model loader for jit.gl.lua based on the GLM library. It currently
doesn’t support model groups or materials but it does have an option
to draw a model using vertex buffer objects which make it fast for
drawing large model files. I’ve been able to get fast framerates
(60fps) with models tested up to 40 MB in size.

In the download is an example script and patch as well as binaries for
windows and OSX. I’ve also included the source code should anyone
feel inclined to add some features. The code is based on some earlier
work by Bruno Zamborlin in getting GLM into Lua.

best,
wes


January 5, 2008 | 4:02 am

I seem to have completely stumbled over this contribution of yours.
It’s really great with large models. Any chance of a version with
model groups and materials? Any suggestions on implementing it?

Why did no one comment on this awesomeness?

Keith

On Nov 15, 2007 12:02 PM, Wesley Smith wrote:
> Hi peoples,
> I’ve uploaded a new Lua module to my C74 share site. It’s an obj
> model loader for jit.gl.lua based on the GLM library. It currently
> doesn’t support model groups or materials but it does have an option
> to draw a model using vertex buffer objects which make it fast for
> drawing large model files. I’ve been able to get fast framerates
> (60fps) with models tested up to 40 MB in size.
>
> In the download is an example script and patch as well as binaries for
> windows and OSX. I’ve also included the source code should anyone
> feel inclined to add some features. The code is based on some earlier
> work by Bruno Zamborlin in getting GLM into Lua.
>
> best,
> wes
>


January 5, 2008 | 5:51 pm

check out http://jitogre.org. with the jit.ogre external you can even
have animated models.
marius.

keith manlove wrote:
> I seem to have completely stumbled over this contribution of yours.
> It’s really great with large models. Any chance of a version with
> model groups and materials? Any suggestions on implementing it?
>
> Why did no one comment on this awesomeness?
>
> Keith
>
> On Nov 15, 2007 12:02 PM, Wesley Smith wrote:
>> Hi peoples,
>> I’ve uploaded a new Lua module to my C74 share site. It’s an obj
>> model loader for jit.gl.lua based on the GLM library. It currently
>> doesn’t support model groups or materials but it does have an option
>> to draw a model using vertex buffer objects which make it fast for
>> drawing large model files. I’ve been able to get fast framerates
>> (60fps) with models tested up to 40 MB in size.
>>
>> In the download is an example script and patch as well as binaries for
>> windows and OSX. I’ve also included the source code should anyone
>> feel inclined to add some features. The code is based on some earlier
>> work by Bruno Zamborlin in getting GLM into Lua.
>>
>> best,
>> wes
>>
>


January 6, 2008 | 3:53 am

On Jan 5, 2008 11:51 AM, marius schebella wrote:
> check out http://jitogre.org. with the jit.ogre external you can even
> have animated models.
> marius.

I appreciate that, but I’ve been down that road… unfortunately, I’m
still on a PPC. One of these days I’ll join you in Intel world.

Keith


January 6, 2008 | 6:36 am

i’mma try and get the ppc port for jit-ogre done this weekend.
i’ll post back when i do.
-rob


January 6, 2008 | 2:38 pm

On Jan 6, 2008 12:36 AM, Robert Ramirez wrote:
>
> i’mma try and get the ppc port for jit-ogre done this weekend.
> i’ll post back when i do.
> -rob

You’re awesome, Rob. That would be greatly appreciated.

Patiently Waiting,
Keith


January 6, 2008 | 7:50 pm

hey keith, check out the latest jit-ogre thread, and see if you have any success with the Universal external.
don’t expect much if your graphics card is not up to snuff.

-rob


November 8, 2009 | 6:08 pm

hey Wesley: there’s an bug in the source, it tries to find Max5Cycling ’74 instead of Max5/Cycling ’74
Had to create a Max5Cycling ’74 (or couldve stuck it in the root at ./glm.so) otherwise, looks like there is much fun to be had with this! will be looking into glm more extensively…

lua pcall error [string "require("glm")..."]:1: module ‘glm’ not found:
no field package.preload['glm']
no file ‘./glm.lua’
no file ‘/usr/local/share/lua/5.1/glm.lua’
no file ‘/usr/local/share/lua/5.1/glm/init.lua’
no file ‘/usr/local/lib/lua/5.1/glm.lua’
no file ‘/usr/local/lib/lua/5.1/glm/init.lua’
no file ‘./glm.so’
no file ‘/usr/local/lib/lua/5.1/glm.so’
no file ‘/usr/local/lib/lua/5.1/loadall.so’
no file ‘/Applications/Max5Cycling ’74/lua/luamods/glm.so’


November 8, 2009 | 9:43 pm

anyone know if there is an easy way to output OBJ vertices as an array/JitterMatrix using GLM as if it were matrixoutput in a jit.gl.model ? because it would appear the vertices output by jit.gl.model are triangles, and sending jit.gl.model to a mesh works, but then i can’t output the x/y/z values from the mesh. i know there must be a simpler solution out there than trying to hack apart the luaGLM source and write some kind of getvertices() hook…

regards,
brian


Viewing 9 posts - 1 through 9 (of 9 total)