[fluxus] Object Loader

Dave Griffiths dave at pawfal.org
Tue Jan 2 09:32:54 PST 2007


>>> You wrote:
>>>> It might also be a
>>>> fix for the absurd load times to save out the list created by obj-
>>>> load,
>>> What did you mean by "save out"?
>> something like ...
> I have tested your suggestion. It brings down the loading time of my
> bigger model
> from 70 seconds to 35 seconds. Not so bad! But, compared to the 0.5
> seconds
> that glm.c needs .... :-)
> Maybe incorporating glm.c into fluxus could be the easiest solution?

maybe - I'd be interested to try the obj loader in pltscheme, where it can
be easily profiled and see whats going on with it first. I don't think
there is an interpreted language reason for it to be that much slower -
it's far more likely to be a programmer error on my behalf ;)

>>> PS
>>> As you have guessed correctly, I was about to ask you about using the
>>> OPCODE part of ODE in fluxus ;-) ...
>> I was just going to implement the ode trimesh - probably allowing
>> you to
>> specify a different physics mesh from the renderable one, something
>> like:
>> (active-trimesh primitive collision-mesh-primitive)
> This sounds good!
>
>> I haven't looked much into it yet, but am I right in thinking
>> opcode is
>> the collision detection part of ode?
> Opcode does collision of trimeshes in ODE (it can be enabled in ODE's
> config/user-settings).
> It's a pretty efficient and free collision detection library.
> Only downside is the lousy documentation.
>
>> Would you want a lower level binding
>> to that in fluxus?
>> I can imagine it would be handy to use it to do fast
>> intersections of things etc.
>
> I think that
> (active-trimesh primitive collision-mesh-primitive)
> sounds almost sufficient to me.
> If I remember correctly, opcode can return the list of triangles that
> are intersecting.
> So another function for getting that list might be good.

the physics interface has been a bit neglected by me recently as I don't
use it much. if anyone is interested in having a go at improving the
situation I'd be happy to support with cvs access and help. the code is
quite self contained (only Physics.cpp really)

cheers,

dave




More information about the Fluxus mailing list