screenshot01032017_233404150

Today, a lot of bug fixes on the basic classes of the polymorph packages.

New: it is now possible to declare the resources folders in the XML! The common resources.cfg of Ogre can be replaced by a configuration.xml, placed in the same folder as the exec.

The resources.cfg was looking like this:

[Essential]
Zip=../media/packs/PolymorphTrays.zip

[General]
FileSystem=../media
FileSystem=../media/materials/scripts
FileSystem=../media/materials/textures
FileSystem=../media/models

In the XML, it’s converted to this, with control over recursivity and read access.

    <resources>
        <group name=”Essential”>
            <resource path=”../media/packs/PolymorphTrays.zip” type=”Zip”/>
        </group>
        <group name=”General”>
            <resource path=”../media/models” type=”FileSystem” recursive=”1″ readonly=”0″/>
            <resource path=”../media/materials” type=”FileSystem” recursive=”1″ readonly=”0″/>
            <resource path=”../media/materials/textures” type=”FileSystem” recursive=”1″ readonly=”0″/>
        </group>
    </resources>

The sreenshot comes from an evolution of the XML example, see Dynamic scenes loading