I´ve been trying to get the GrassNode working properly but I couldn't get it to work!
The grass is appearing all black.
I don't know if is the 1.4 Irrlicht version that I am using, I tried using other textures (thought it was an alfa or color key problem) but no success.
Can anyone help?
I believe its very simple problem, but I just cant see where is it!
The old code didn't use proper method signatures for Irrlicht 1.4/1.5. Thus, wrong overloads lead to all materials missing. Check the irrExt project, should have working code sometime soon.
Ahh yes... If you can't find working code then try and fix it yourself. Basically check all the functions of the grass node against those in ISceneNode and make sure they have the right parameters and qualifiers. Some functions became const in irrlicht since the grass node was originally written and some functions changed their parameters or return values, such as s32s being changed to u32s.
Ahh yes... If you can't find working code then try and fix it yourself. Basically check all the functions of the grass node against those in ISceneNode and make sure they have the right parameters and qualifiers. Some functions became const in irrlicht since the grass node was originally written and some functions changed their parameters or return values, such as s32s being changed to u32s.
That worked! It was really simple, but hard to see!
There was a "const" missing in the "getMaterialCount()" function, so it was always returning 0.