1.8 bug? Material problem with OpenGL (1.7 works fine)

Problems building or running the engine, queries about how to use features etc.
Sord
Kobold
Posts: 30
Joined: Mon Mar 21, 2011 1:29 am

1.8 bug? Material problem with OpenGL (1.7 works fine)

Post by Sord »

1.7.4: DirectX / OpenGL and 1.8.0 DirectX
Image

1.8.0 OpenGL
Image

Used latest SDK. No errors on material loading.

Code: Select all

material MyMaterials/StencilFog
{
	technique
	{
		pass
		{
            lighting off
            depth_write off
            depth_check on
            scene_blend alpha_blend

            texture_unit
            {
                colour_op_ex source1 src_manual src_current 0 0 0
                alpha_op_ex source1 src_manual src_current 0.30
            }

		}
	}
}
pyrrhula
Gnoblar
Posts: 17
Joined: Wed Jan 25, 2012 11:47 pm

Re: 1.8 bug? Material problem with OpenGL (1.7 works fine)

Post by pyrrhula »

I'm seeing a similar issue, posted about it yesterday: http://www.ogre3d.org/forums/viewtopic.php?f=2&t=70493

Seems like the materials turn white if there is no texture defined in the texture_unit block.
Sord
Kobold
Posts: 30
Joined: Mon Mar 21, 2011 1:29 am

Re: 1.8 bug? Material problem with OpenGL (1.7 works fine)

Post by Sord »

Thanks for forwarding. So blank blended color must defined with image file or by code... Still I am glad to know is it bug or "property".
pyrrhula
Gnoblar
Posts: 17
Joined: Wed Jan 25, 2012 11:47 pm

Re: 1.8 bug? Material problem with OpenGL (1.7 works fine)

Post by pyrrhula »

It looks like it's a bug after all, see the other topic :-)
http://www.ogre3d.org/forums/viewtopic.php?f=2&t=70493