You cannot with Cube. Cube states that the entire texture goes on each face.
From: "Cindy Reed" <[email protected]> suggests using Texture2Transform
but that seems too easy. :-)
In order to wrap, you need texture coordinates outside of 0..1, so
try this out:
Texture2 { filename "ip.gif" }
Separator {
Coordinate3 {
point [
1 1 1, -1 1 1, -1 -1 1, 1 -1 1,
1 1 -1, -1 1 -1, -1 -1 -1, 1 -1 -1]
}
TextureCoordinate2 {
point [ 3 3, 0 3, 0 0, 3 0, 0 1, 1 1, 1 0, 0 0]
}
IndexedFaceSet {
coordIndex [ 0, 1, 2, 3, -1,
0, 1, 5, 4, -1,
0, 3, 7, 4, -1,
6, 2, 1, 5, -1,
6, 7, 3, 2, -1,
6, 5, 4, 7, -1
]
}
}
Looks pretty strange going from 3x to 1x on the sides, but that's
just so I could tell which end was which.
YON, [email protected], Jan C. Hardenbergh, Oki Advanced Products 508-460-8655
www.oki.com/people/jch/ =|= 100 Nickerson Rd., Marlborough, MA 01752
Imagination is more important than knowledge - Albert Einstein (1879-1955)