[RTSS]BaseWhiteNoLighting material not working correctly

Problems building or running the engine, queries about how to use features etc.
Post Reply
JDX_John
Gnome
Posts: 397
Joined: Sat Nov 08, 2008 1:59 pm
x 2

[RTSS]BaseWhiteNoLighting material not working correctly

Post by JDX_John »

I use this material quite a lot for debug-drawing and HUD-type stuff. In RTSS-FFP, it does render, but only in white - my vertex coloring is ignored. My code will look a bit like this:

Code: Select all

		m_render = sceneManager.createManualObject(moName);
		m_render->setDynamic(true);
		m_render->estimateVertexCount(6);
		m_render->begin("BaseWhiteNoLighting",Ogre::RenderOperation::OT_LINE_LIST);
		m_render->position(p);		m_render->colour(ColourValue::Green);
		m_render->position(p+x);	m_render->colour(ColourValue::Green);

		m_render->position(p);		m_render->colour(ColourValue::Blue);
		m_render->position(p+y);	m_render->colour(ColourValue::Blue);

		m_render->position(p);		m_render->colour(ColourValue::Red);
		m_render->position(p+z);	m_render->colour(ColourValue::Red);
		m_render->end();
I wondered if maybe this material uses colour_op_ex, which I heard isn't working properly in RTSS? Has anyone perchance created a shader-based material which could be dropped in instead of "BaseWhiteNoLighting"?

Thanks.
JDX_John
Gnome
Posts: 397
Joined: Sat Nov 08, 2008 1:59 pm
x 2

Re: [RTSS]BaseWhiteNoLighting material not working correctly

Post by JDX_John »

Bump... Any ideas?
scrawl
OGRE Expert User
OGRE Expert User
Posts: 1119
Joined: Sat Jan 01, 2011 7:57 pm
x 216

Re: [RTSS]BaseWhiteNoLighting material not working correctly

Post by scrawl »

JDX_John
Gnome
Posts: 397
Joined: Sat Nov 08, 2008 1:59 pm
x 2

Re: [RTSS]BaseWhiteNoLighting material not working correctly

Post by JDX_John »

Thanks for the link. However it's 2.5 years old - nobody added vertex color support to RTSS this whole time?
al2950
OGRE Expert User
OGRE Expert User
Posts: 1227
Joined: Thu Dec 11, 2008 7:56 pm
Location: Bristol, UK
x 157

Re: [RTSS]BaseWhiteNoLighting material not working correctly

Post by al2950 »

RTSS does support vertex colour, however you have to tell it explicitly to use it. So in the material you must put "diffuse vertexcolour" I doubt "BaseWhiteNoLighting" has that defined, infact I just checked and it does not.
Post Reply