addSphereSceneNode draw problem

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
shaim
Posts: 26
Joined: Sun Dec 14, 2008 10:55 am

addSphereSceneNode draw problem

Post by shaim »

Hi
I used this function to draw a checkers sphere player. I download the jpeg file as a texture for it but it is being draw badly, only half of it is draw !!

Please see what i am doing wrong!!

Code:
pCube = PRM_SceneMgr->addSphereSceneNode();
if (pCube)
{
pCube->setPosition(core::vector3df(GET_PLAYER1_POSX(iCube),GET_PLAYER1_POSY(iCube),0));
pCube->setScale(core::vector3df(0.6f,0.6f,0.01f));
pCube->setMaterialTexture(0, PRM_device->getVideoDriver()->getTexture(./white.jpg));
pCube->setMaterialFlag(video::EMF_LIGHTING, false);
pCube->setID(0x1);
}
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, you scale a way half of the sphere, so I guess it's on the backside?!
Post Reply