feanor91
23-07-2008 14:52:22
Hello
I'm writing an oFusion scene Viewer in VB .Net to learn how to use Mogre, but I found nothing nowhere to help me to identify if an entity or a scene node is a camera, a mesh or a light. As I want to be able to open any type of scene, I assume, that name of camera or lights may change from one scene to another. By now, I get camera by name but if it change ine another scene.... How can I achive that stuff as I want be able to change camera if ther is more than one, hide/unhide object, change light parameters and over stuff like that too.
If someone is interested by my code, I'll be glad to post it somewhere.
For now, I can open scene, move in it, I show a treelist with hierachical scenemanger in it....I use windows event to take care of input because as I have embeded Ogre in a picturebox, I can't use MOIS to handle them. But I'm happy, after a little week of coding and knowing nothing from Ogre before, I have a satisfying result, so thansk to different wikis and pieces of code found here or elsewhere.
I'm writing an oFusion scene Viewer in VB .Net to learn how to use Mogre, but I found nothing nowhere to help me to identify if an entity or a scene node is a camera, a mesh or a light. As I want to be able to open any type of scene, I assume, that name of camera or lights may change from one scene to another. By now, I get camera by name but if it change ine another scene.... How can I achive that stuff as I want be able to change camera if ther is more than one, hide/unhide object, change light parameters and over stuff like that too.
If someone is interested by my code, I'll be glad to post it somewhere.
For now, I can open scene, move in it, I show a treelist with hierachical scenemanger in it....I use windows event to take care of input because as I have embeded Ogre in a picturebox, I can't use MOIS to handle them. But I'm happy, after a little week of coding and knowing nothing from Ogre before, I have a satisfying result, so thansk to different wikis and pieces of code found here or elsewhere.