Stupid question
Stupid question
Hi, I'm the noobiest person in the world and I got a super-dumb question, I've been the whole day trying to make this work. Well... don't laugh.
I'm trying to set a texture to a model I downloaded but doesn't work, I use as base tutorial 4 Movement from the SDK.
scene::IAnimatedMesh* gun = smgr->getMesh("media/mygun.x");
scene::ISceneNode* node = 0;
node = smgr->addAnimatedMeshSceneNode(gun);
node->setMaterialTexture(0, driver->getTexture("guntext.bmp"));
node->setMaterialFlag(video::EMF_LIGHTING, false);
I tried the texture with the cube from de tutorial and worked perfectly.
The .x shows kind of blue.
Well I hope I haven't bother you too much, thanks.
I'm trying to set a texture to a model I downloaded but doesn't work, I use as base tutorial 4 Movement from the SDK.
scene::IAnimatedMesh* gun = smgr->getMesh("media/mygun.x");
scene::ISceneNode* node = 0;
node = smgr->addAnimatedMeshSceneNode(gun);
node->setMaterialTexture(0, driver->getTexture("guntext.bmp"));
node->setMaterialFlag(video::EMF_LIGHTING, false);
I tried the texture with the cube from de tutorial and worked perfectly.
The .x shows kind of blue.
Well I hope I haven't bother you too much, thanks.
Code: Select all
node->setMaterialTexture(0, driver->getTexture("guntext.bmp"));
Code: Select all
node->setMaterialTexture(0, driver->getTexture("media/guntext.bmp"));
Thanks
Thank you a lot for the answer but... no, it's not that I tried that but it's the same, I also tried with .3ds but still the same, oh and I just downloaded another model and seems like work but the texture looks green, but besides this model no other model work.
Thanks again
Thanks again, well I check the DOS windows and says that the texture and models are ok.
how many textures has the gun have? ( in the model self? )
i guess it has something to do with the texture coordinates
i guess it has something to do with the texture coordinates
Compete or join in irrlichts monthly screenshot competition!
Blog/site: http://rex.4vandorp.eu
Company: http://www.islandworks.eu/, InCourse
Twitter: @strong99
Blog/site: http://rex.4vandorp.eu
Company: http://www.islandworks.eu/, InCourse
Twitter: @strong99
Re: Stupid question
Well noone is perfect. Noone born with all knowledge. Plz respect yourself and dont say that againMercyful wrote:Hi, I'm the noobiest person in the world and I got a super-dumb question
THANKS
Well thanks again, uv mapping??? that means that I should do something with the model when I am making it? so I can't use models I download, I tried use the makePlanarTextureMapping from Special_FX tutorial but nothing happens, also tried the same models in the meshviewer, in irrsed, and in visualeditor and can't load any textures neither, at exception of one only model that is able to load textures, how I suppose to load a model in irrlicht if i don't know if is't gonna load the texture or not