k. I'm making a skybox from scratch(vertices) because I want to use different brushes for each surface. But when I use the brush on the surface, it paints the surface a solid color, instead of the texture file that I was using. I tried to use that same brush on a normal cube and it worked just fine. is there something wrong with my surface creating code? here's the snipet:
mesh = CreateMesh()
brush = LoadBrush("tex.jpg")
surf = CreateSurface(mesh)
AddVertex surf, -1,-1, 1
AddVertex surf, -1, 1, 1
AddVertex surf, 1, 1, 1
AddVertex surf, 1,-1, 1
AddTriangle surf, 0, 1, 2
AddTriangle surf, 2, 3, 0
PaintSurface surf, brush
Thanks.
mesh = CreateMesh()
brush = LoadBrush("tex.jpg")
surf = CreateSurface(mesh)
AddVertex surf, -1,-1, 1
AddVertex surf, -1, 1, 1
AddVertex surf, 1, 1, 1
AddVertex surf, 1,-1, 1
AddTriangle surf, 0, 1, 2
AddTriangle surf, 2, 3, 0
PaintSurface surf, brush
Thanks.