Hello,
I am currently attempting to make use of the schemes in the ogre materials.
I have setup the viewports to switch between the material schemes and added the scheme into the RTShaders handleSchemeNotFound method.
However the model just disappears when I switch it from the default to "Wireframe" as I've called it.
It seems that the second technique is never parsed, I added a listener to the resources and on resourceComplete there is only one technique on the resource.
Have I missed something?
Hoping it's something simple
Carl
Last edited by Carlyone on Tue Feb 04, 2014 4:35 pm, edited 1 time in total.
Update:
Ok the resource does parse correctly, I checked it further up the chain in my Ogre::MaterialManager::Listener in the handleSchemeNotFound method and there are definitely two supported techniques.
The model is still completely disappearing when switched to the "Wireframe" viewport material scheme and that has me stumped.
If you're using RTSS have you logged what the created techniques look like? I use Ogre::MaterialSerializer so I can see what RTSS has done since it gets a bit confusing for me to keep track of
Looking to find experienced Ogre & shader developers/artists. PM me with a contact email address if interested.
Hi,
Thanks for the response.
I have created a subclass of Ogre::MaterialSerializer::Listener but I'm not really sure how I go about adding it to the material serialiser, I read the comments in the code but it's still not really clear. Would you mind providing a bit of guidance on adding the listener?