Scene
From Gnoll's Wiki
Contents |
Description
A Scene is represent by :
- A current camera
- A focus page
- A sky (dome or cube)
Features
- Partitioning (see Page)
- Infinite terrain
- No time loading besides the first initialization
Page
- The scene is partitioned due to the infinite terrain in N pages.
- Its to avoid to load all the scene in memory.
- All page are link with their neighboring.
- The current page is define by the position of the current camera.
- All entities (character, object or others) are defined in the page.
Examples
gSceneManager
<dynamicobject instance="gSceneManager">
<attribute name="currentCamera">
<string value="camera.camfreefly"/>
</attribute>
<attribute name="focusedPage">
<string value="initialPage"/>
</attribute>
<attribute name="skyMaterial">
<string value="Examples/CloudySky"/>
</attribute>
<attribute name="skyType">
<string value="dome"/>
</attribute>
</dynamicobject>
Pages
<dynamicobject instance="initialPage">
<attribute name="PageRenderer">
<CMeshPageRenderer meshName="page.mesh"/>
</attribute>
<attribute name="northLink">
<string value="northPage"/>
</attribute>
<attribute name="size">
<float value="256"/>
</attribute>
</dynamicobject>
