[WF-Protocols] Proposals on common format
Miguel Guzmán
miguelg at tid.es
Tue Jul 1 15:55:09 PDT 2003
I suppose we could use models factories like you use CSS styles to
define a style for an HTML element: you define them elsewhere, then you
instantiate the model assigning its class to the model factory defined
elsewhere, but being able to override some parameters of it. Parameters
defined for the instance would be mandatory, then parameters defined for
the document (i.e. "current map") then parameters defined on the
external file (where the definitions on the factories are stored).
Aglanor
Jorrit Tyberghein wrote:
> 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.
>
> Greetings,
>
More information about the Protocols
mailing list