Copies

Parent: objects

Is unlimited number of sceneobject with extra attribute of 'name' where name is linked to 'copyof' in object.

Allows a GLScene objects to copy an existing GLScene Objects. An example is if you are trying to provide numerous actors with primitive shadows using a disk. Rather than define a disk for every actor such as:


<OBJECT name="citizen">

<ACTOR filename="citizen.ms3d"/>
<DISK radius="0.2" texture="@transparent"/>

</OBJECT>
<OBJECT name="citizen3">

<ACTOR filename="citizen3.ms3d"/>
<DISK radius="0.3" texture="@transparent"/>

</OBJECT>

you could instead reference a disk in copies:


<OBJECT name="citizen">

<ACTOR filename="citizen.ms3d"/>
<DISK copyof="shadow"/>

</OBJECT>
<OBJECT name="citizen3">

<ACTOR filename="citizen3.ms3d"/>
<DISK copyof="shadow" radius="0.3"/>

</OBJECT>

<COPIES>

<DISK name="shadow" radius="0.2" texture="@transparent"/>

</COPIES>