Re: Multiple reference to an object in a Database !!

New Message Reply Date view Thread view Subject view Author view

Marcus Barnes (marcus++at++multigen.com)
Thu, 10 Oct 1996 09:56:21 -0700


On Oct 9, 1:26pm, ram munjulur wrote:
> Subject: Multiple reference to an object in a Database !!
> Hi guys :
>
> If we have a forest full of trees in the database, and all trees
> being the same *.flt (tree.flt) file, is there a LOADER that doesn't
> load each tree.flt, instead creates instances from the first
> tree.flt that was loaded ??

The OpenFlight loader already does instancing of external references in this
way. The first external reference to a .flt file is remembered and
arrangements are made to correctly pfClone any subsequent references during the
_same_ invokation of pfdLoadFile_flt().

The only way a subsequent reference will be loaded from disk again is if the
referencing file overrides one or more of its palettes in a unique combination.

If you set your pfNotifyLevel to PFNFY_DEBUG, the loader will tell you when it
loads or references a file.

PS: It may appear that each instance is real because pfFlatten is called in the
loader by default (disable with pfdConverterMode( "flt", PFFLT_FLATTEN, FALSE
))

Regards.

--
   ____ ___  ____  _    Marcus Barnes, Member Technical Staff
  / __ `__ \/ __ `( )   MultiGen Inc. 550 S. Winchester Blvd. STE 500
 / / / / / / /_/ / /    San Jose CA 95128 WEB: http://www.multigen.com
/_/ /_/ /_/\__, /_/     PH:1-408-556-2654 FX:1-408-261-4102
          /____/        EMAIL: marcus++at++multigen.com
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:45 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.