Re: pfCopy or pfClone? What happen to pfCopyGSet?

New Message Reply Date view Thread view Subject view Author view

John Rohlf (jrohlf++at++tubes)
Wed, 23 Aug 95 17:54:16 PDT


>
>
> Hi,
>
> I am considering options to copy or clone a terrain database to have
> one on the top of the other. The purpose of this is to attach two
> different textures to the two separate but geometrically equal terrains.
> Its nice to be able to pfClone the whole group and/or dcs of the terrain
> and move it a few meters up or down. Once I've cloned it can I change
> the terrain texture of one without changing the texture on the other? Can I
> get at the gset and gstate to do this?

        pfClone() is currently intended for instancing and does not
duplicate objects below pfGeodes, e.g, pfGeoSets. I suggest you
write your own traversal which clones the scene graph including
pfGeoSets and pfGeoStates.

> How about the option of using pfCopy? I can copy the Geode and the
> group but again how can I get the gstate to change the texture? Granted
> that this is possible, if I change the texture of the copy will it change
> the texture of the original?

        pfCopy is not yet implemented for pfNodes.

> Last one. I noticed that in the Performer 1.2 manual there is a brief
> reference to the the pfCopyGSet (pg 243) which it says that it can "Make a
> copy" of the GSet. However, online man pages does not have any
> reference to it. I suspect that this was omitted from the library but
> not the hardcopy manual pages. It sure would be nice to be able to copy
> the geometry sets so as to be able to create a new geode with a new
> gstate and thus a new texture. I tried to pfCopy the geometries but got
> a core dump.

        pfCopy will copy geosets but will not recursively copy
that which the geoset references.


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:51:49 PDT

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