(SOLVED)[2.1] no text Colour

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Post Reply
User avatar
Kohedlo
Orc
Posts: 435
Joined: Fri Nov 27, 2009 3:34 pm
Location: Ukraine, Sumy
x 32
Contact:

(SOLVED)[2.1] no text Colour

Post by Kohedlo »

there also bug is no correct text colouring or invisible colour in OgreOverlay.dll. working only white default colour. this also applying to the materials datablocks. among red new ogre shows green.

Code: Select all

      Ogre::HlmsMacroblock m4u111;
	//m.mPolygonMode = Ogre::PolygonMode::PM_WIREFRAME;
//HlmsMacroblock macroblockOptions;
	m4u111.mCullMode = CULL_NONE;
	m4u111.mDepthCheck = false;
	m4u111.mDepthBiasConstant = 1.0f;
	m4u111.mDepthBiasSlopeScale = 1.0f;
	m4u111.mDepthWrite = true;


	Ogre::String datablockName61 = "red_widget";
    Ogre::HlmsUnlitDatablock *datablock61 = static_cast<Ogre::HlmsUnlitDatablock*>(
                hlms2->createDatablock( datablockName61,
                                          datablockName61,
                                          m4u111,
                                          Ogre::HlmsBlendblock(),
                                          Ogre::HlmsParamVec() ) );
    Ogre::HlmsTextureManager::TextureLocation texLocation61 = hlmsTextureManager->createOrRetrieveTexture("EditorCore.Red.bmp",
	Ogre::HlmsTextureManager::TEXTURE_TYPE_DIFFUSE);
	datablock61->setTexture(0, texLocation61.xIdx, texLocation61.texture );


this material among red shows green
c++ game developer.
current project: Imperial Game Engine 2.5
Image
User avatar
Kohedlo
Orc
Posts: 435
Joined: Fri Nov 27, 2009 3:34 pm
Location: Ukraine, Sumy
x 32
Contact:

Re: (SOLVED)[2.1] no text Colour

Post by Kohedlo »

for solving need reCMAKE build vs project
c++ game developer.
current project: Imperial Game Engine 2.5
Image
Post Reply