Cant set texture to Sphere or Cube

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
Obeleh
Posts: 28
Joined: Tue Oct 02, 2007 7:46 am

Cant set texture to Sphere or Cube

Post by Obeleh »

Code: Select all

	
ISceneNode* Sphere = smgr->addSphereSceneNode();
Sphere->setMaterialTexture(0, driver->getTexture("earthmap.tga"));
Still the sphere remains black
the .tga does exist and I get no compiler errors
Cristiano87
Posts: 13
Joined: Wed Oct 03, 2007 9:00 am
Location: Milano, Italia

Post by Cristiano87 »

add

Code: Select all

Sphere->setMaterialFlag(irr::video::EMF_LIGHTING,false);
or create some light node
Obeleh
Posts: 28
Joined: Tue Oct 02, 2007 7:46 am

Post by Obeleh »

Ah ty I didnt expect it to be the light that I was missing :) TY
Post Reply