BillboardTextSN and position update

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
DarkMarkZX
Posts: 10
Joined: Sat Nov 20, 2010 10:48 pm
Location: Poland, Europe
Contact:

BillboardTextSN and position update

Post 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.
Image
CuteAlien
Admin
Posts: 9716
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: The latest SVN bugs thread

Post 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.
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
DarkMarkZX
Posts: 10
Joined: Sat Nov 20, 2010 10:48 pm
Location: Poland, Europe
Contact:

Re: The latest SVN bugs thread

Post 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.
Image
CuteAlien
Admin
Posts: 9716
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: The latest SVN bugs thread

Post by CuteAlien »

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
DarkMarkZX
Posts: 10
Joined: Sat Nov 20, 2010 10:48 pm
Location: Poland, Europe
Contact:

Re: BillboardTextSN and position update

Post by DarkMarkZX »

It doesn't move at all.
Image
Post Reply