Texture on CustomSceneNode glitch

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.
kornwaretm
Competition winner
Posts: 189
Joined: Tue Oct 16, 2007 3:53 am
Location: Indonesia
Contact:

Re: Texture on CustomSceneNode glitch

Post by kornwaretm »

nice solution. the down side is this solution force us to make bigger texture. well the way mip maps works is by creating texture at half of the texture dimension , half again, until somewhere around 2 x 2 pixels that is why the texture must folow the power of two rule (correct me if i'm wrong). so from that math, padding size must be 50% of the texture's dimension. if the tile dimension is 512 x 512 we must trick the size become twice as big, so the 512 x 512 tile are "surrounded by it self", or resize the tile 256 x 256 put it at the center and surround it again by it self.
Post Reply