Page 1 of 1

BillboardTextSN and position update

Posted: Tue Aug 30, 2011 11:35 am
by DarkMarkZX
I've just updated from official 1.7.2 to SVN revision 3903 and found out that now I have to call updateAbsolutePosition() for every BillboardTextSceneNode after changing it's position. I was wondering if it's a bug, or perhaps I'm just doing something wrong?
Thanks in advance.

Re: The latest SVN bugs thread

Posted: Tue Aug 30, 2011 12:34 pm
by CuteAlien
Your BillboardTextSceneNode is in the scene and SceneManager::drawAll is still called? Because that's where it should get updated... don't see right now how it can't happen.

Re: The latest SVN bugs thread

Posted: Tue Aug 30, 2011 2:58 pm
by DarkMarkZX
Yes, it is in the scene and drawAll() is being called all the time. Here's how I create it:

Code: Select all

Conversation conversation;
conversation.exclamationInner = smgr->addBillboardTextSceneNode(fontBig, L"!", 0, core::dimension2d<f32>(1.8f,7.5f), core::vector3df(0,0,0), -1, video::SColor(255, 255,220,0),video::SColor(255, 255,220,0));
And i move it like this:

Code: Select all

conversation.exclamationInner->setPosition(core::vector3df(camera->getTarget().X, camera->getTarget().Y-20.1f, camera->getTarget().Z));
conversation.exclamationInner->updateAbsolutePosition(); //wasn't necessary in 1.7.2
Also, here's a fragment of the Conversation class:

Code: Select all

class Conversation
{
public:
        scene::IBillboardTextSceneNode* exclamationInner;
}
No idea why the problem occurs. I've tried changing the font, id, text, dimensions and some of the driver settings, also checked every available driverType, but it didn't help.

Re: The latest SVN bugs thread

Posted: Tue Aug 30, 2011 3:36 pm
by CuteAlien
What happens if you don't call that - does it not move at all or does it move delayed?

Re: BillboardTextSN and position update

Posted: Tue Aug 30, 2011 5:05 pm
by DarkMarkZX
It doesn't move at all.