Tile a texture on a cube mesh

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
thilo5
Posts: 1
Joined: Tue May 13, 2014 7:52 pm

Tile a texture on a cube mesh

Post by thilo5 »

Hello everybody,

I have the following problem:
A LUA-script sends the vector of the size of a cube to Irrlicht (so I don't know how big the cube is like). When the cube is created, then I want to add a texture to it, which should be tiled on it.
But the texture is scaled by Irrlicht and NOT tiled.

Sorry for my bad english, but it would be very nice if someone could answer my question :D

thilo5
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Tile a texture on a cube mesh

Post by hybrid »

Well, depends on the cube you use I'd say. If it uses (0..1) texture coords it won't tile - why should it. But if it creates a new cube with scaled coords it will definitely tile the textures. IN the first case you could still use texture matrices (or manipulate the coords manually). But textures are in no way position dependent or something like that by default.
Post Reply