Page 1 of 1

ITextSceneNode Issues Produces Darkened Screen.

Posted: Mon Aug 14, 2006 5:07 pm
by Zeuss
Its easier to screenshot my issue than explain. I'm using Irrlicht 1.0 (1.1 has giving me offet models and stuff, will upgrade later)

Scene without the ITextSceneNode:
Image

Scene with the ITextSceneNode:
Image

Example Code I have tried with no success:

Code: Select all

m_PlayerText = CGame::Instance()->smgr->addTextSceneNode( CGame::Instance()->GetFont(), ms_PlayerName, video::SColor(0, 0, 255, 0 ) );

m_PlayerText = CGame::Instance()->smgr->addTextSceneNode( CGame::Instance()->GetFont(), ms_PlayerName, video::SColor(255, 0, 255, 0 ) );

m_PlayerText = CGame::Instance()->smgr->addTextSceneNode( CGame::Instance()->GetFont(), ms_PlayerName, video::SColor(0, 0, 255, 0 ) );
m_PlayerText->setMaterialFlag(EMF_LIGHTING, false );

m_PlayerText = CGame::Instance()->smgr->addTextSceneNode( CGame::Instance()->GetFont(), ms_PlayerName, video::SColor(255, 0, 255, 0 ) );
m_PlayerText->setMaterialFlag(EMF_LIGHTING, false );

With varying fonts to no avail. What am I doing wrong?

Posted: Tue Aug 15, 2006 8:36 pm
by Zeuss
whenever I seem to ask a question rarely get answers :P

nevermind, I fixed it myself, this morning. Simple really, shadow issue. I just turned off shadow color and it was fixed.

smgr->setShadowColor(video::SColor( 0,0,0,0 ) );

Posted: Tue Aug 15, 2006 9:14 pm
by Eternl Knight
Well, the image links do not seem to work - so I cannot see the problem let alone reply to fix it.

--EK

Posted: Tue Aug 15, 2006 10:20 pm
by hybrid
However, this means that you have a shadow node completely over your camera, so remove it. There is definitely no place where this color is used except for drawing shadow nodes.

Posted: Wed Aug 16, 2006 3:15 am
by Mikenoworth
Zuess, it takes time. I'd rather wait two days and get one good answer than wait half an hour and get (off the top of my head) "what?".

But ya, shadows - those buggers. I wish I knew more about stencil buffer shadows in ogl/dx to work on irrlichts shadow issues and to implement shadow filters. *sigh*