Apply texture

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
Jefis
Posts: 3
Joined: Sun Jun 04, 2006 2:09 pm

Apply texture

Post by Jefis »

Is it possible to create model, without texture, load in to the level, and then apply texture to it? Example code would be great.
deesine
Posts: 104
Joined: Fri May 12, 2006 9:19 am

Post by deesine »

Sure, a model always have UV-coordinates.

The first tutorial shows this, where the mesh is loaded without texture, which is later loaded with a call to getTexture if the mesh node was loaded successfully.

Though, if you pay no attention to setting up the UVs of your mesh manually while modelling, you might end up with a garbled mess when applying a texture later in Irrlicht, unless you use planar-mapping or other mapping methods to setup your UVs.
Post Reply