Hellooo! :D
I seem to be having Getsurface problems ... it's like this:
I have a model with two materials/brushes called Material01 and Material02. I change the texture of Material02 with:
o11=GetSurface(p\model,1)
x11=GetSurfaceBrush(o11)
BrushTexture(x11,face)
PaintSurface o11,x11
FreeBrush x11
FreeTexture face
But sometimes, this textures Material01 instead! Not content with that, it seems to vary between machines too!
I'm guessing then, that the getsurface doesn't actually work in any particular heirarchy so I guess I need to check the name of the texture to make sure that it's the right one instead .. BUT .. TextureName returns a filepath, doesn't it? Does that mean I have to parse it to get just the filename of the texture (without the path)?? If so, is this the only way to texture individual materials/brushes??
It's all a bit nasty, if you ask me!
Oops .. forgot to mention this is on an animmesh loaded b3d model :)
Thanks in advance for any help.
I seem to be having Getsurface problems ... it's like this:
I have a model with two materials/brushes called Material01 and Material02. I change the texture of Material02 with:
o11=GetSurface(p\model,1)
x11=GetSurfaceBrush(o11)
BrushTexture(x11,face)
PaintSurface o11,x11
FreeBrush x11
FreeTexture face
But sometimes, this textures Material01 instead! Not content with that, it seems to vary between machines too!
I'm guessing then, that the getsurface doesn't actually work in any particular heirarchy so I guess I need to check the name of the texture to make sure that it's the right one instead .. BUT .. TextureName returns a filepath, doesn't it? Does that mean I have to parse it to get just the filename of the texture (without the path)?? If so, is this the only way to texture individual materials/brushes??
It's all a bit nasty, if you ask me!
Oops .. forgot to mention this is on an animmesh loaded b3d model :)
Thanks in advance for any help.