Apply texture
Apply texture
Is it possible to create model, without texture, load in to the level, and then apply texture to it? Example code would be great.
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.
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.