Hi again.
Having problems with setNodeParamI, dont know how to use it correctly.
I try to change a material of my wall object (called wallNode), to make it transparent.
Code:
int wallNode = h3d.addNodes(h3d.H3DRootNode, wallRes);
transparentWallRes = h3d.addResource((int)h3d.H3DResTypes.Material, "models/transparent_wall.material.xml", 0);
Horde3DUtils.loadResourcesFromDisk(Settings.ContentDir);
// I have tried this
h3d.setNodeParamI(wallNode, (int)h3d.H3DMesh.MatResI, transparentWallRes);
// and this
// h3d.setNodeParamI(wallNode, (int)h3d.H3DMatRes.MatLinkI, transparentWallRes);
// and even this
// h3d.setNodeParamStr(wallNode, (int)h3d.H3DMatRes.MatClassStr, "Translucent");
//( class="Translucent" is the difference with original material and transparent_wall.material.xml)
I always get 'Invalid param in h3dSetNodeParam'.