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.
BillboardTextSN and position update
-
- Posts: 10
- Joined: Sat Nov 20, 2010 10:48 pm
- Location: Poland, Europe
- Contact:
Re: The latest SVN bugs thread
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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 10
- Joined: Sat Nov 20, 2010 10:48 pm
- Location: Poland, Europe
- Contact:
Re: The latest SVN bugs thread
Yes, it is in the scene and drawAll() is being called all the time. Here's how I create it:
And i move it like this:
Also, here's a fragment of the Conversation class:
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.
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));
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
Code: Select all
class Conversation
{
public:
scene::IBillboardTextSceneNode* exclamationInner;
}
Re: The latest SVN bugs thread
What happens if you don't call that - does it not move at all or does it move delayed?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 10
- Joined: Sat Nov 20, 2010 10:48 pm
- Location: Poland, Europe
- Contact: