After downloading version 0.4, I recompiled my simple demo with the new libs. Now it doesnt renders nothing, just got an empty window and CPU use boost to 100%. I noticed something funny, althoug I cant see the widgets, they receive events. Here is the rendering code:
while(device->run() )
if (device->isWindowActive())
{
driver->beginScene(true, true, SColor(0,122,65,171));
rendermap(sx,sy,sx+16, sy+16);
if (rot==RRIGHT) rotation++;
else if (rot==RLEFT) rotation--;
float angle= (3.14*rotation)/180;
//Get a perfect circular movement
float xd= radius * sinf(angle); //Now we get the x position of the camera
float zd= radius * cosf(angle); //Get the z position
cam->setRelativePosition(vector3df(xd,80,zd));
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
Another strange issue is that if I remove the line if (device->isWindowActive())
I got a segmentation fault.
render problem with 0.4 (not render at all)
setRelativePosition was removed in 0.4.cam->setRelativePosition(vector3df(xd,80,zd));
Now, there is only setPosition.
Code: Select all
cam->setPosition(vector3df(xd,80,zd));
Crud, how do I do this again?