Applying custom textures to imported OBJ models
How to import an OBJ model with its textures correctly in Starfall
See the texture variable in mesh_3d.lua example - set the material's basetexture (and bumpmap) via URL. It works as long as the UV wrap mode is repeat; some symmetrical models have mirrored UVs which adds difficulty. The OBJ parser only reads v/vt/vn/f lines - extra lines (e.g. 'L ...') can be safely removed. Texture must be 1024x1024 to fit the rendertarget.