[WF-Protocols] Proposals on common format
Alan Kemp
alan at alankemp.com
Tue Jul 1 10:28:55 PDT 2003
> Miguel Guzmán wrote:
>
> > Cal3D also has this, in the concept of "Core": CoreModel, CoreMesh,
> > CoreSubMesh... I don't know up to which point is a real difference
> > that the engine itself maintains only one copy of the geometry and
> > then instantiates other objects for the differences, instead of
> > instantiating each time the whole geometry, because that wouldn't
> > imply that the model is different.
> >
> > In other words, the factory pattern can be used independantly of
> > the model format used, or am I wrong? An application could load an
> > Open Model Format and instantiate it 3 times, and another one could
> > make a Factory and grab instances from it. Would it have an effect on
> > the model format itself?
>
> It wouldn't make a difference for the actual definition of the model.
> But it would make
> a difference for a level using that model.
Forgive me if I have missed the point, but couldn't the factory definition
just include a model filename instead of the raw data inline? With the
current method if a model appears on two different levels, don't you end up
duplicating data?
Alan
More information about the Protocols
mailing list