Hey pjcast and the rest of the VisualOgreStudio crew,
Skumancer and I are working together for this project. I'm having some issues with the VOS and I thought I'd just post it in this thread instead of making a new one.
Just to keep you updated as to where we are, we've now ported over our changes to VOS using Ogre using 1.4 to VOS using Ogre 1.4.5. Another one of our coders successfully added a .scene file created in VOS into his Ogre application. Thanks for the help with the upgrading guys!
I'm trying to get particle systems added to the scene. Need help! This is what I've figured out so far. Choosing either to create a particle system or a billboardset opens up the same form currently, as there is currently no .cs file to handle the adding billboardset dialog. So let's put billboardset on hold in this discussion, though I assume the form will look very similar to the one you created for adding particle systems (copy/paste! Yay!). Correct me if I'm wrong.
Now, in NewParicleSystem.cs you've iterated through the ParticleSystemManager singleton to fill up the Template dropdown menu. However, nothing is being added to the dropdown so I assume the singleton instance has no templates. Hence, on clicking the create button, mContext gets set to null and everything goes to hell.
Also, in OgreProject.cs, I came accross the following comment:
// TODO: If the project is re-opened, parsing the .particle templates throws exception because they are not unloaded
// when the resource group is unloaded
// (it seems there is not way to make Ogre unload the particle templates ?!?)
ResourceGroupManager.Singleton.InitialiseAllResourceGroups();
I'm guessing this is a related particle system template issue? Could you shed some light on this and can you tell me why the templates aren't being added to the singleton instance of ParticleSystemManager? And where that code would go if I were to go ahead with it?
Another thing, what exactly does your function ExpandMaterialResource in OrgeProject.cs do? And why is its only usage commented out? If uncommented, one gets an error on loading a project. Can you please tell me what you intended to do with this function?
Thanks in advance!