saladin
03-06-2007 09:04:52
Hi,
In my project sometimes resources are added to existing resource groups on the fly. This calls for scripts (overlay, material etc) to be parsed manually.
Here's what I did
ds is an ogre.DataStream object. Calling ds.getAsString() seems to be returning the right contents. However if I go on to call
Can someone shine some light please?
In my project sometimes resources are added to existing resource groups on the fly. This calls for scripts (overlay, material etc) to be parsed manually.
Here's what I did
ds = ogre.ResourceManager.openResource("myMaterial.material", "General", True)
ds is an ogre.DataStream object. Calling ds.getAsString() seems to be returning the right contents. However if I go on to call
ogre.MaterialManager.getSingleton().parseScript(ds)
, it returns None. Calling ogre.MaterialManager.getSingleton().getByName() shows that the materials have not been parsed and loaded.Can someone shine some light please?