I'm wondering how one applies a texture to just one face of a meshbox.
Ideally I'd like to put a different texture on each face.
Making Textures on just one surface
- ClayOgre
- Private First Class
- Posts: 227
- Joined: Mon Apr 18, 2005 3:17 am
- Location: Southern Indiana (originally from Alaska)
I haven't messed with it much, but you do it in the matref statement of your meshbox call.
meshbox
name box
position x x x
rotation x x x
size x x x
top matref <material>
end
I think that's the syntax...either that or it is "matref top"
The best way to do it is to make a mesh object and uv-map it, better control of how the texture looks.
below is a direct quote from the bzw man page:
meshbox :=
"divisions" <integer>
| "angle" angle
| "ratio" <float>
| "texsize" <float> <float> <float> <float>
| "phydrv" <physics_driver_name>
| "smoothbounce"
| "flatshading"
| material
| ("top" | "bottom" | "inside" | "outside" | "startside" |
"endside") material
| obstacle
meshbox
name box
position x x x
rotation x x x
size x x x
top matref <material>
end
I think that's the syntax...either that or it is "matref top"
The best way to do it is to make a mesh object and uv-map it, better control of how the texture looks.
below is a direct quote from the bzw man page:
meshbox :=
"divisions" <integer>
| "angle" angle
| "ratio" <float>
| "texsize" <float> <float> <float> <float>
| "phydrv" <physics_driver_name>
| "smoothbounce"
| "flatshading"
| material
| ("top" | "bottom" | "inside" | "outside" | "startside" |
"endside") material
| obstacle
Respectfully,
I Beg to Remain,
Cordially Yours,
Regards....
I Beg to Remain,
Cordially Yours,
Regards....