Page 1 of 1

3D text over head of Quake 2 model

Posted: Thu Apr 23, 2009 6:01 pm
by rakkar
How would one go about displaying 3D text, positioned over the head of a Quake 2 model?

Posted: Thu Apr 23, 2009 6:25 pm
by Eigen

Code: Select all

virtual ITextSceneNode* irr::scene::ISceneManager::addTextSceneNode(
  gui::IGUIFont *  font,  
  const wchar_t *  text,
  video::SColor  color = video::SColor(100, 255, 255, 255),
  ISceneNode *  parent = 0,
  const core::vector3df &  position = core::vector3df(0, 0, 0),
  s32  id = -1 
 ) 
The text node should be parented to the node .. position should be core::vector3df(0, 10, 0) or something like that.

Posted: Thu Apr 23, 2009 6:47 pm
by Acki
maybe you want to use addBillboardTextSceneNode(...) !?!?! ;)

Posted: Thu Apr 23, 2009 7:31 pm
by Eigen
Oh, right.

Posted: Fri Apr 24, 2009 2:05 am
by rakkar
Thanks, Irrlicht is awesome :)

Posted: Fri Apr 24, 2009 2:08 am
by tempuser2
I second that!