As far as I'm aware the current .3ds loader for irrlicht doesn't support textures. The reason for this likely because 3ds files handle materials and texture paths poorly. There are other issues with 3ds also.
You have two options:
1. Write a new / modify the 3ds loader
2. Use a different format
Unless anything's changed recently then the 3ds loader certainly does support textures, i think the only one that doesn't load them whilst loading the model is md2.. but even then still allows you to set them afterwards.
maranek, using another format won't solve your problem, the model clearly has the texture applied because it's got a green colour and presumably your grass is green... the problem is the texture is not applied properly because you haven't done the texture mapping on it in your modelling program so each vertex has a texture coordinate of 0,0 so one pixel of your texture is used to cover the entire model, hence it's a single green colour all over.
Unless anything's changed recently then the 3ds loader certainly does support textures, i think the only one that doesn't load them whilst loading the model is md2.. but even then still allows you to set them afterwards.
Hmmmm... in that case then, ignore me.
Why I was led to believe the 3ds loader does not support textures I do not know... yes, I'm an idiot.
Still, 3ds isn't the nicest of formats. I.e. normals have to be calculated at runtime since 3ds does not store normal data. The performance hit is pretty much negligible in most applications but yeh.
Last edited by SwitchCase on Fri Dec 19, 2008 2:17 pm, edited 1 time in total.
JP,thank you for your view on this problem...ill do something about it...
im not good at modeling...it will take time but i will edit this post, and tell what helped me, later...
SwitchCase-we cant know everything mistakes happen
i guess you might be able to texture map this simple model in irrlicht. If it's just a quad with the texture applied over the whole quad then you can use IMeshManipulator::makePlanarTextureMapping to do that.
eh strange....
before in 1.4.2 the obj didnt work...
now i downloaded 1.5 and it loads the mesh in obj..
but only it loads the uv textures...
but it WORKS!!!
i think i will do all the mapping with UVs..
I really thank you guys...
my first impressions of this forum are very good..
keep on your good work